|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.visualization.AbstractLayout
edu.uci.ics.jung.visualization.StaticLayout
public class StaticLayout
| Field Summary |
|---|
| Fields inherited from class edu.uci.ics.jung.visualization.AbstractLayout |
|---|
changeSupport, vertex_locations |
| Constructor Summary | |
|---|---|
StaticLayout(Graph g)
|
|
| Method Summary | |
|---|---|
void |
advancePositions()
Implementors must override this method in order to create a Layout. |
boolean |
incrementsAreDone()
If this visualization is incremental, tells whether it has stabilized at a satisfactory spot yet. |
protected void |
initialize_local_vertex(Vertex v)
Initializes the local information on a single vertex. |
protected void |
initialize_local()
Initializes all local information, and is called immediately within the initialize() process. |
boolean |
isIncremental()
Indicates whether this visualization has an incremental mode. |
| Methods inherited from class edu.uci.ics.jung.visualization.AbstractLayout |
|---|
addChangeListener, applyFilter, dontMove, fireStateChanged, forceMove, getAVertex, getBaseKey, getChangeListeners, getCoordinates, getCurrentSize, getEdge, getEdge, getGraph, getLocation, getStatus, getVertex, getVertex, getVertexIterator, getVisibleEdges, getVisibleGraph, getVisibleVertices, getX, getY, initialize, initialize, initializeLocation, initializeLocations, isLocked, lockVertex, offsetVertex, postInitialize, removeChangeListener, resize, restart, unlockVertex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StaticLayout(Graph g)
| Method Detail |
|---|
protected void initialize_local()
AbstractLayout
initialize_local in class AbstractLayoutprotected void initialize_local_vertex(Vertex v)
AbstractLayout
initialize_local_vertex in class AbstractLayoutpublic void advancePositions()
AbstractLayoutNote that "locked" vertices are not to be moved; however, it is the policy of the visualization to decide how to handle them, and what to do with the vertices around them. Prototypical code might include a clipping like
for (Iterator i = getVertices().iterator(); i.hasNext() ) { Vertex v = (Vertex) i.next(); if (! dontmove.contains( v ) ) { ... // handle the node } else { // ignore the node } }
advancePositions in interface LayoutadvancePositions in class AbstractLayoutLayout.advancePositions()public boolean isIncremental()
Layout
public boolean incrementsAreDone()
Layout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||