|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.visualization3d.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)
|
|
| Method Summary | |
|---|---|
boolean |
done()
Returns true if this iterative process is finished, and false otherwise. |
Layout |
getDelegate()
getter for the delegate |
Graph<V,E> |
getGraph()
Returns the full graph (the one that was passed in at construction time) that this Layout refers to. |
javax.media.j3d.BoundingSphere |
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)
setter for the delegate |
void |
setGraph(Graph<V,E> graph)
setter for graph |
void |
setInitializer(org.apache.commons.collections15.Transformer<V,javax.vecmath.Point3f> initializer)
provides initial locations for all vertices. |
void |
setLocation(V v,
javax.vecmath.Point3f location)
set the location of a vertex |
void |
setSize(javax.media.j3d.BoundingSphere d)
|
void |
step()
Advances one step. |
javax.vecmath.Point3f |
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 getDelegate()
public void setDelegate(Layout<V,E> delegate)
delegate - the new delegatepublic void step()
IterativeContext
step in interface IterativeContextedu.uci.ics.jung.algorithms.layout.Layout#step()public void initialize()
Layout
initialize in interface Layout<V,E>Layout.initialize()public void setInitializer(org.apache.commons.collections15.Transformer<V,javax.vecmath.Point3f> initializer)
Layout
setInitializer in interface Layout<V,E>initializer - Layout.setInitializer(org.apache.commons.collections15.Transformer)
public void setLocation(V v,
javax.vecmath.Point3f location)
Layout
setLocation in interface Layout<V,E>v - location - edu.uci.ics.jung.algorithms.layout.Layout#setLocation(java.lang.Object, java.awt.geom.Point3f)public javax.media.j3d.BoundingSphere getSize()
Layout
getSize in interface Layout<V,E>edu.uci.ics.jung.algorithms.layout.Layout#getCurrentSize()public Graph<V,E> getGraph()
Layout
getGraph in interface Layout<V,E>Layout.getGraph()public javax.vecmath.Point3f transform(V v)
transform in interface org.apache.commons.collections15.Transformer<V,javax.vecmath.Point3f>edu.uci.ics.jung.algorithms.layout.Layout#getLocation(edu.uci.ics.jung.graph.ArchetypeVertex)public boolean done()
IterativeContext
done in interface IterativeContextedu.uci.ics.jung.algorithms.layout.Layout#done()
public void lock(V v,
boolean state)
Layout
lock in interface Layout<V,E>v - vertexedu.uci.ics.jung.algorithms.layout.Layout#lockVertex(edu.uci.ics.jung.graph.Vertex)public boolean isLocked(V v)
Layouttrue if the position of vertex v
is locked.
isLocked in interface Layout<V,E>edu.uci.ics.jung.algorithms.layout.Layout#isLocked(V)public void setSize(javax.media.j3d.BoundingSphere d)
setSize in interface Layout<V,E>edu.uci.ics.jung.algorithms.layout.Layout#resize(java.awt.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 | |||||||||