|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.algorithms.layout.LayoutDecorator<V,E>
edu.uci.ics.jung.visualization.layout.ObservableCachingLayout<V,E>
public class ObservableCachingLayout<V,E>
A LayoutDecorator that 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
|
protected Map<V,Point2D> |
locationMap
|
| Fields inherited from class edu.uci.ics.jung.algorithms.layout.LayoutDecorator |
|---|
delegate |
| Constructor Summary | |
|---|---|
ObservableCachingLayout(Layout<V,E> delegate)
|
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener l)
|
void |
clear()
clear cache |
boolean |
done()
Returns true if this iterative process is finished, and false otherwise. |
void |
fireStateChanged()
|
ChangeListener[] |
getChangeListeners()
Returns an array of all the ChangeListeners added
with addChangeListener(). |
void |
init()
ititialize resources for a cache |
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,
Point2D location)
set the location of a vertex |
void |
step()
Advances one step. |
Point2D |
transform(V v)
|
| Methods inherited from class edu.uci.ics.jung.algorithms.layout.LayoutDecorator |
|---|
getDelegate, getGraph, getSize, isLocked, lock, reset, setDelegate, setInitializer, setSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ChangeEventSupport changeSupport
protected Map<V,Point2D> locationMap
| Constructor Detail |
|---|
public ObservableCachingLayout(Layout<V,E> delegate)
| Method Detail |
|---|
public void step()
IterativeContext
step in interface IterativeContextstep 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 boolean done()
IterativeContext
done in interface IterativeContextdone in class LayoutDecorator<V,E>IterativeContext.done()
public void setLocation(V v,
Point2D 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 ChangeEventSupportpublic void removeChangeListener(ChangeListener l)
ChangeEventSupport
removeChangeListener in interface ChangeEventSupportl - the listener to be removedpublic ChangeListener[] getChangeListeners()
ChangeEventSupportChangeListeners added
with addChangeListener().
getChangeListeners in interface ChangeEventSupportChangeListeners added or an empty
array if no listeners have been addedpublic void fireStateChanged()
fireStateChanged in interface ChangeEventSupportpublic void setGraph(Graph<V,E> graph)
Layout
setGraph in interface Layout<V,E>setGraph in class LayoutDecorator<V,E>public void clear()
Caching
clear in interface Cachingpublic void init()
Caching
init in interface Cachingpublic Point2D transform(V v)
transform in class LayoutDecorator<V,E>edu.uci.ics.jung.algorithms.layout.Layout#transform(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||