|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectginy.util.AbstractLayout
giny.util.FRLayout
| Nested Class Summary | |
static class |
FRLayout.FRVertexData
|
| Field Summary | |
protected cern.colt.map.OpenIntObjectHashMap |
nodeIndexToFRDataMap
|
| Fields inherited from class giny.util.AbstractLayout |
currentSize, graphView, staticNodes |
| Constructor Summary | |
FRLayout(GraphView view)
|
|
| Method Summary | |
void |
advancePositions()
Moves the iteration forward one notch, calculation attraction and repulsion between nodes and edges and cooling the temperature. |
void |
calcAttraction(EdgeView e)
Calculates the attractions for each edge this should have options to be weighted |
void |
calcPositions(NodeView node_view)
This gets called for every NodeView. |
void |
calcRepulsion(NodeView nv1)
Finds the replusive forces for a node |
void |
doLayout()
|
void |
forceMove(NodeView picked,
int x,
int y)
Allow a node to be forced into position |
FRLayout.FRVertexData |
getFRData(int v)
|
FRLayout.FRVertexData |
getFRData(NodeView v)
|
java.lang.String |
getStatus()
Returns the current temperature and number of iterations elapsed, as a string. |
boolean |
incrementsAreDone()
Returns true once the current iteration has passed the maximum count, MAX_ITERATIONS. |
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. |
void |
setMaxIterations(int maxIterations)
|
| Methods inherited from class giny.util.AbstractLayout |
dontMove, forceMove, getCurrentSize, getNodeView, 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 |
protected cern.colt.map.OpenIntObjectHashMap nodeIndexToFRDataMap
| Constructor Detail |
public FRLayout(GraphView view)
| Method Detail |
public void doLayout()
doLayout in class AbstractLayoutpublic java.lang.String getStatus()
getStatus in class AbstractLayout
public void forceMove(NodeView picked,
int x,
int y)
protected void initialize_local()
AbstractLayout
initialize_local in class AbstractLayoutprotected void initialize_local_node_view(NodeView v)
AbstractLayout
initialize_local_node_view in class AbstractLayoutpublic void advancePositions()
advancePositions in class AbstractLayoutLayout#advancePositions()public void calcPositions(NodeView node_view)
public void calcAttraction(EdgeView e)
public void calcRepulsion(NodeView nv1)
public void setMaxIterations(int maxIterations)
public FRLayout.FRVertexData getFRData(NodeView v)
public FRLayout.FRVertexData getFRData(int v)
public boolean isIncremental()
public boolean incrementsAreDone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||