|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.util.UpdateListener
public abstract class UpdateListener
Convenience listener class that implements ExpressionListener,
TupleSetListener, and ComponentListener and routes all the
callbacks into a generic update(Object)
method. For the
case of ComponentListener, only the resize event is funneled into
the update method.
Constructor Summary | |
---|---|
UpdateListener()
|
Method Summary | |
---|---|
void |
componentHidden(java.awt.event.ComponentEvent e)
Does nothing. |
void |
componentMoved(java.awt.event.ComponentEvent e)
Does nothing. |
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
Does nothing. |
void |
expressionChanged(Expression expr)
Notification that an Expression instance has been modified in some way. |
void |
tupleSetChanged(TupleSet tset,
Tuple[] added,
Tuple[] removed)
Notification that a TupleSet has changed. |
abstract void |
update(java.lang.Object source)
Generic update routine triggerred by any of the other callbacks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateListener()
Method Detail |
---|
public abstract void update(java.lang.Object source)
source
- a source object, either the Expression, TupleSet,
or Component that triggered this update event.public void expressionChanged(Expression expr)
ExpressionListener
expressionChanged
in interface ExpressionListener
expr
- the modified expressionExpressionListener.expressionChanged(prefuse.data.expression.Expression)
public void tupleSetChanged(TupleSet tset, Tuple[] added, Tuple[] removed)
TupleSetListener
tupleSetChanged
in interface TupleSetListener
tset
- the TupleSet that has changedadded
- an array (potentially zero-length) of added tuplesremoved
- an array (potentially zero-length) of removed tuplesTupleSetListener.tupleSetChanged(prefuse.data.tuple.TupleSet, prefuse.data.Tuple[], prefuse.data.Tuple[])
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
ComponentListener.componentResized(java.awt.event.ComponentEvent)
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
ComponentListener.componentHidden(java.awt.event.ComponentEvent)
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
ComponentListener.componentMoved(java.awt.event.ComponentEvent)
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
ComponentListener.componentShown(java.awt.event.ComponentEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |