|
||||||||||
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.SpringLayout
edu.uci.ics.jung.visualization.contrib.DAGLayout
public class DAGLayout
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.uci.ics.jung.visualization.SpringLayout |
---|
SpringLayout.LengthFunction, SpringLayout.SpringDimensionChecker, SpringLayout.SpringEdgeData, SpringLayout.SpringVertexData, SpringLayout.UnitLengthFunction |
Field Summary | |
---|---|
protected static String |
MINIMUMLEVELKEY
|
Fields inherited from class edu.uci.ics.jung.visualization.SpringLayout |
---|
force_multiplier, lengthFunction, repulsion_range, stretch, UNITLENGTHFUNCTION |
Fields inherited from class edu.uci.ics.jung.visualization.AbstractLayout |
---|
changeSupport, vertex_locations |
Constructor Summary | |
---|---|
DAGLayout(Graph g)
|
Method Summary | |
---|---|
void |
forceMove(Vertex picked,
int x,
int y)
Override forceMove so that if someone moves a node, we can re-layout everything. |
boolean |
incrementsAreDone()
Override incrementsAreDone so that we can eventually stop. |
protected void |
initialize_local()
Had to override this one as well, to ensure that setRoot() is called. |
protected void |
initializeLocation(Vertex v,
Coordinates coord,
Dimension d)
Sets random locations for a vertex within the dimensions of the space. |
protected void |
moveNodes()
Override the moveNodes() method from SpringLayout. |
static void |
propagateMinimumLevel(Vertex v)
A recursive method for allocating the level for each vertex. |
protected void |
relaxEdges()
Overridden relaxEdges. |
static void |
setRoot(Graph g)
setRoot calculates the level of each vertex in the graph. |
static void |
setRoot(Vertex v)
Set vertex v to be level 0. |
Methods inherited from class edu.uci.ics.jung.visualization.SpringLayout |
---|
advancePositions, calcEdgeLength, calculateRepulsion, getAVertex, getForceMultiplier, getLength, getRepulsionRange, getSpringData, getSpringData, getSpringKey, getStatus, getStretch, initialize_local_vertex, isIncremental, setForceMultiplier, setRepulsionRange, setStretch, update |
Methods inherited from class edu.uci.ics.jung.visualization.AbstractLayout |
---|
addChangeListener, applyFilter, dontMove, fireStateChanged, forceMove, getBaseKey, getChangeListeners, getCoordinates, getCurrentSize, getEdge, getEdge, getGraph, getLocation, getVertex, getVertex, getVertexIterator, getVisibleEdges, getVisibleGraph, getVisibleVertices, getX, getY, initialize, initialize, 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 |
Methods inherited from interface edu.uci.ics.jung.visualization.Layout |
---|
applyFilter, forceMove, getCurrentSize, getGraph, getLocation, getVertex, getVertex, getVisibleEdges, getVisibleVertices, getX, getY, initialize, isLocked, lockVertex, resize, restart, unlockVertex |
Methods inherited from interface edu.uci.ics.jung.visualization.VertexLocationFunction |
---|
getVertexIterator |
Field Detail |
---|
protected static final String MINIMUMLEVELKEY
Constructor Detail |
---|
public DAGLayout(Graph g)
Method Detail |
---|
public static void setRoot(Graph g)
public static void setRoot(Vertex v)
public static void propagateMinimumLevel(Vertex v)
v
- protected void initializeLocation(Vertex v, Coordinates coord, Dimension d)
initializeLocation
in class AbstractLayout
coord
- d
- protected void initialize_local()
initialize_local
in class SpringLayout
protected void moveNodes()
moveNodes
in class SpringLayout
public boolean incrementsAreDone()
incrementsAreDone
in interface Layout
incrementsAreDone
in class SpringLayout
public void forceMove(Vertex picked, int x, int y)
protected void relaxEdges()
relaxEdges
in class SpringLayout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |