|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectginy.util.AbstractLayout
giny.util.ForceDirectedLayout
An implementation of a directed-force layout using logarithmic springs and electrical forces, as discussed in Chapter 10 of the book "Graph Drawing".
However, note that the implementation is a bit different to the equation 10.2 in the book such that:
Field Summary |
Fields inherited from class giny.util.AbstractLayout |
currentSize, graphView, staticNodes |
Constructor Summary | |
ForceDirectedLayout(GraphView g)
|
Method Summary | |
void |
advancePositions()
Relaxation step. |
void |
doLayout()
|
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 |
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 |
Constructor Detail |
public ForceDirectedLayout(GraphView g)
Method Detail |
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
public void doLayout()
doLayout
in class AbstractLayout
public boolean isIncremental()
public boolean incrementsAreDone()
public void advancePositions()
advancePositions
in class AbstractLayout
Layout#advancePositions()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |