|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.visualization3d.layout.LayoutDecorator<V,E> edu.uci.ics.jung.visualization3d.layout.LayoutEventBroadcaster<V,E>
public class LayoutEventBroadcaster<V,E>
A LayoutDecorator the fires ChangeEvents when certain methods are called. Used to wrap a Layout so that the visualization components can be notified of changes.
LayoutDecorator
Field Summary | |
---|---|
protected ChangeEventSupport |
changeSupport
|
Fields inherited from class edu.uci.ics.jung.visualization3d.layout.LayoutDecorator |
---|
delegate |
Constructor Summary | |
---|---|
LayoutEventBroadcaster(Layout<V,E> delegate)
|
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
|
void |
fireStateChanged()
|
ChangeListener[] |
getChangeListeners()
Returns an array of all the ChangeListener s added
with addChangeListener(). |
void |
initialize()
Initializes fields in the node that may not have been set during the constructor. |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener. |
void |
setGraph(Graph<V,E> graph)
setter for graph |
void |
setLocation(V v,
javax.vecmath.Point3f location)
set the location of a vertex |
void |
step()
Advances one step. |
Methods inherited from class edu.uci.ics.jung.visualization3d.layout.LayoutDecorator |
---|
done, getDelegate, getGraph, getSize, isLocked, lock, reset, setDelegate, setInitializer, setSize, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ChangeEventSupport changeSupport
Constructor Detail |
---|
public LayoutEventBroadcaster(Layout<V,E> delegate)
Method Detail |
---|
public void step()
IterativeContext
step
in interface IterativeContext
step
in class LayoutDecorator<V,E>
edu.uci.ics.jung.algorithms.layout.Layout#step()
public void initialize()
Layout
initialize
in interface Layout<V,E>
initialize
in class LayoutDecorator<V,E>
Layout.initialize()
public void setLocation(V v, javax.vecmath.Point3f location)
Layout
setLocation
in interface Layout<V,E>
setLocation
in class LayoutDecorator<V,E>
v
- location
- Layout.setLocation(java.lang.Object, java.awt.geom.Point2D)
public void addChangeListener(ChangeListener l)
addChangeListener
in interface ChangeEventSupport
public void removeChangeListener(ChangeListener l)
ChangeEventSupport
removeChangeListener
in interface ChangeEventSupport
l
- the listener to be removedpublic ChangeListener[] getChangeListeners()
ChangeEventSupport
ChangeListener
s added
with addChangeListener().
getChangeListeners
in interface ChangeEventSupport
ChangeListener
s added or an empty
array if no listeners have been addedpublic void fireStateChanged()
fireStateChanged
in interface ChangeEventSupport
public void setGraph(Graph<V,E> graph)
Layout
setGraph
in interface Layout<V,E>
setGraph
in class LayoutDecorator<V,E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |