|
||||||||||
| 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>
public abstract class LayoutDecorator<V,E>
a pure decorator for the Layout interface. Intended to be overridden to provide specific behavior decoration
| Field Summary | |
|---|---|
protected Layout<V,E> |
delegate
|
| Constructor Summary | |
|---|---|
LayoutDecorator(Layout<V,E> delegate)
Creates an instance backed by the specified delegate layout. |
|
| Method Summary | |
|---|---|
boolean |
done()
Returns true if this iterative process is finished, and false otherwise. |
Layout<V,E> |
getDelegate()
Returns the backing (delegate) layout. |
Graph<V,E> |
getGraph()
Returns the full graph (the one that was passed in at construction time) that this Layout refers to. |
Dimension |
getSize()
Returns the current size of the visualization's space. |
void |
initialize()
Initializes fields in the node that may not have been set during the constructor. |
boolean |
isLocked(V v)
Returns true if the position of vertex v
is locked. |
void |
lock(V v,
boolean state)
Sets a flag which fixes this vertex in place. |
void |
reset()
|
void |
setDelegate(Layout<V,E> delegate)
Sets the backing (delegate) layout. |
void |
setGraph(Graph<V,E> graph)
setter for graph |
void |
setInitializer(
provides initial locations for all vertices. |
void |
setLocation(V v,
Point2D location)
set the location of a vertex |
void |
setSize(Dimension d)
|
void |
step()
Advances one step. |
Point2D |
transform(V v)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Layout<V,E> delegate
| Constructor Detail |
|---|
public LayoutDecorator(Layout<V,E> delegate)
| Method Detail |
|---|
public Layout<V,E> getDelegate()
public void setDelegate(Layout<V,E> delegate)
public void step()
IterativeContext
step in interface IterativeContextIterativeContext.done()public void initialize()
Layout
initialize in interface Layout<V,E>Layout.initialize()public void setInitializer(initializer)
Layout
setInitializer in interface Layout<V,E>initializer - edu.uci.ics.jung.algorithms.layout.Layout#setInitializer(org.apache.commons.collections15.Transformer)
public void setLocation(V v,
Point2D location)
Layout
setLocation in interface Layout<V,E>v - location - Layout.setLocation(java.lang.Object, java.awt.geom.Point2D)public Dimension getSize()
Layout
getSize in interface Layout<V,E>Layout.getSize()public Graph<V,E> getGraph()
Layout
getGraph in interface Layout<V,E>Layout.getGraph()public Point2D transform(V v)
edu.uci.ics.jung.algorithms.layout.Layout#transform(Object)public boolean done()
IterativeContext
done in interface IterativeContextIterativeContext.done()
public void lock(V v,
boolean state)
Layout
lock in interface Layout<V,E>v - vertexLayout.lock(Object, boolean)public boolean isLocked(V v)
Layouttrue if the position of vertex v
is locked.
isLocked in interface Layout<V,E>Layout.isLocked(Object)public void setSize(Dimension d)
setSize in interface Layout<V,E>Layout.setSize(Dimension)public void reset()
reset in interface Layout<V,E>Layout.reset()public void setGraph(Graph<V,E> graph)
Layout
setGraph in interface Layout<V,E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||