|
|||||||||||
| 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.FRLayout
Implements the Fruchterman-Reingold algorithm for node layout.
| Nested Class Summary | |
static class |
FRLayout.FRVertexData
|
| Constructor Summary | |
FRLayout(Graph g)
|
|
| Method Summary | |
void |
advancePositions()
Moves the iteration forward one notch, calculation attraction and repulsion between vertices and edges and cooling the temperature. |
void |
calcAttraction(Edge e)
|
void |
calcPositions(Vertex v)
|
void |
calcRepulsion(Vertex v1)
|
void |
forceMove(Vertex picked,
int x,
int y)
Forces a node to be moved to location x,y |
FRLayout.FRVertexData |
getFRData(Vertex v)
|
java.lang.Object |
getKey()
Returns a visualization-specific key (that is, specific both to this instance and AbstractLayout) that can be used to access UserData related to the AbstractLayout. |
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. |
boolean |
isIncremental()
This one is an incremental visualization. |
void |
setMaxIterations(int maxIterations)
|
void |
update()
|
| Methods inherited from class edu.uci.ics.jung.visualization.AbstractLayout |
applyFilter, dontMove, getBaseKey, getCoordinates, getCurrentSize, getEdge, getEdge, getGraph, getVertex, getVertex, getVisibleEdges, getVisibleVertices, getX, getY, initialize, lockVertex, resize, restart, unlockVertex |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.uci.ics.jung.visualization.Layout |
applyFilter, getCurrentSize, getGraph, getVertex, getVertex, getVisibleEdges, getVisibleVertices, getX, getY, initialize, lockVertex, resize, restart, unlockVertex |
| Constructor Detail |
public FRLayout(Graph g)
| Method Detail |
public void update()
update in interface LayoutMutablepublic java.lang.String getStatus()
getStatus in interface LayoutgetStatus in class AbstractLayout
public void forceMove(Vertex picked,
int x,
int y)
Layout
forceMove in interface LayoutforceMove in class AbstractLayoutpublic java.lang.Object getKey()
public void advancePositions()
advancePositions in interface LayoutadvancePositions in class AbstractLayoutLayout.advancePositions()public void calcPositions(Vertex v)
public void calcAttraction(Edge e)
public void calcRepulsion(Vertex v1)
public void setMaxIterations(int maxIterations)
public FRLayout.FRVertexData getFRData(Vertex v)
public boolean isIncremental()
isIncremental in interface Layoutpublic boolean incrementsAreDone()
incrementsAreDone in interface Layout
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||