|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V,E> edu.uci.ics.jung.algorithms.layout3d.FRLayout<V,E>
public class FRLayout<V,E>
Implements the Fruchterman-Reingold algorithm for node layout.
Field Summary |
---|
Fields inherited from class edu.uci.ics.jung.algorithms.layout3d.AbstractLayout |
---|
locations |
Constructor Summary | |
---|---|
FRLayout(Graph<V,E> g)
|
|
FRLayout(Graph<V,E> g,
javax.media.j3d.BoundingSphere 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. |
void |
initialize()
Initializer, calls intialize_local and initializeLocations to start construction process. |
boolean |
isIncremental()
This one is an incremental visualization. |
void |
reset()
|
void |
setAttractionMultiplier(double attraction)
|
void |
setMaxIterations(int maxIterations)
|
void |
setRepulsionMultiplier(double repulsion)
|
void |
setSize(javax.media.j3d.BoundingSphere 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.layout3d.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, javax.media.j3d.BoundingSphere d)
Method Detail |
---|
public void setSize(javax.media.j3d.BoundingSphere 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()
AbstractLayout
initialize
in interface Layout<V,E>
initialize
in class AbstractLayout<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 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 |