|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object giny.util.AbstractLayout giny.util.JUNGSpringLayout
The SpringLayout package represents a visualization of a set of nodes.
The SpringLayout, which is initialized with a Graph, assigns X/Y
locations to each node. When called relax()
, the SpringLayout moves
the visualization forward one step.
Nested Class Summary | |
static interface |
JUNGSpringLayout.LengthFunction
If the edge is weighted, then override this method to show what the visualized length is. |
class |
JUNGSpringLayout.SpringDimensionChecker
|
Field Summary | |
static int |
RANGE
|
static int |
STRETCH
|
static JUNGSpringLayout.LengthFunction |
UNITLENGTHFUNCTION
|
Fields inherited from class giny.util.AbstractLayout |
currentSize, graphView, staticNodes |
Constructor Summary | |
JUNGSpringLayout(GraphView g)
Constructor for a SpringLayout for a raw graph with associated dimension--the input knows how big the graph is. |
|
JUNGSpringLayout(GraphView g,
JUNGSpringLayout.LengthFunction f)
Constructor for a SpringLayout for a raw graph with associated component. |
Method Summary | |
void |
advancePositions()
Relaxation step. |
protected void |
calcEdgeLength(giny.util.JUNGSpringLayout.SpringEdgeData sed,
JUNGSpringLayout.LengthFunction f)
|
void |
doLayout()
|
double |
getLength(EdgeView e)
|
giny.util.JUNGSpringLayout.SpringEdgeData |
getSpringData(EdgeView e)
|
giny.util.JUNGSpringLayout.SpringVertexData |
getSpringData(int v)
|
giny.util.JUNGSpringLayout.SpringVertexData |
getSpringData(NodeView v)
|
boolean |
incrementsAreDone()
For now, we pretend it never finishes. |
protected void |
initialize_local_node_view(NodeView 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()
This one is an incremental visualization |
protected void |
moveNodes()
|
Methods inherited from class giny.util.AbstractLayout |
dontMove, forceMove, getCurrentSize, getNodeView, getStatus, initialize, initializeLocation, initializeLocations, lockNodes, lockVertex, resize, restart, unlockVertex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int RANGE
public static int STRETCH
public static final JUNGSpringLayout.LengthFunction UNITLENGTHFUNCTION
Constructor Detail |
public JUNGSpringLayout(GraphView g)
public JUNGSpringLayout(GraphView g, JUNGSpringLayout.LengthFunction f)
g
- the input Graphf
- the length functionMethod Detail |
public void doLayout()
doLayout
in class AbstractLayout
protected void initialize_local()
AbstractLayout
initialize_local
in class AbstractLayout
protected void initialize_local_node_view(NodeView v)
AbstractLayout
initialize_local_node_view
in class AbstractLayout
protected void calcEdgeLength(giny.util.JUNGSpringLayout.SpringEdgeData sed, JUNGSpringLayout.LengthFunction f)
public void advancePositions()
advancePositions
in class AbstractLayout
Layout#advancePositions()
protected void moveNodes()
public giny.util.JUNGSpringLayout.SpringVertexData getSpringData(NodeView v)
public giny.util.JUNGSpringLayout.SpringVertexData getSpringData(int v)
public giny.util.JUNGSpringLayout.SpringEdgeData getSpringData(EdgeView e)
public double getLength(EdgeView e)
public boolean isIncremental()
public boolean incrementsAreDone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |