|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.algorithms.layout.AbstractLayout<V,E>
edu.uci.ics.jung.algorithms.layout.FRLayout<V,E>
public class FRLayout<V,E>
Implements the Fruchterman-Reingold algorithm for node layout.
Nested Class Summary | |
---|---|
static class |
FRLayout.FRVertexData
|
Field Summary |
---|
Fields inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout |
---|
initialized, locations |
Constructor Summary | |
---|---|
FRLayout(Graph<V,E> g)
|
|
FRLayout(Graph<V,E> g,
Dimension d)
|
Method Summary | |
---|---|
void |
calcAttraction(E e)
|
void |
calcPositions(V v)
|
void |
calcRepulsion(V v1)
|
boolean |
done()
Returns true once the current iteration has passed the maximum count, MAX_ITERATIONS. |
FRLayout.FRVertexData |
getFRData(V v)
|
void |
initialize()
Initializes fields in the node that may not have been set during the constructor. |
boolean |
isIncremental()
This one is an incremental visualization. |
void |
reset()
|
void |
setAttractionMultiplier(double attraction)
|
void |
setMaxIterations(int maxIterations)
|
void |
setRepulsionMultiplier(double repulsion)
|
void |
setSize(Dimension size)
When a visualization is resized, it presumably wants to fix the locations of the vertices and possibly to reinitialize its data. |
void |
step()
Moves the iteration forward one notch, calculation attraction and repulsion between vertices and edges and cooling the temperature. |
Methods inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout |
---|
getGraph, getSize, getVertices, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocation, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FRLayout(Graph<V,E> g)
public FRLayout(Graph<V,E> g, Dimension d)
Method Detail |
---|
public void setSize(Dimension size)
AbstractLayout
setSize
in interface Layout<V,E>
setSize
in class AbstractLayout<V,E>
public void setAttractionMultiplier(double attraction)
public void setRepulsionMultiplier(double repulsion)
public void reset()
reset
in interface Layout<V,E>
public void initialize()
Layout
initialize
in interface Layout<V,E>
public void step()
step
in interface IterativeContext
public void calcPositions(V v)
public void calcAttraction(E e)
public void calcRepulsion(V v1)
public void setMaxIterations(int maxIterations)
public FRLayout.FRVertexData getFRData(V v)
public boolean isIncremental()
public boolean done()
done
in interface IterativeContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |