public class SpringLayout2<V,E> extends SpringLayout<V,E>
relax(), the SpringLayout moves the
visualization forward one step.SpringLayout.SpringDimensionChecker, SpringLayout.SpringVertexData| Modifier and Type | Field and Description |
|---|---|
protected int |
averageCounter |
protected java.awt.geom.Point2D |
averageDelta |
protected int |
currentIteration |
protected boolean |
done |
protected int |
loopCountMax |
force_multiplier, lengthFunction, repulsion_range_sq, springVertexData, stretchgraph, initialized, locations, size| Constructor and Description |
|---|
SpringLayout2(edu.uci.ics.jung.graph.Graph<V,E> g)
Constructor for a SpringLayout for a raw graph with associated
dimension--the input knows how big the graph is.
|
SpringLayout2(edu.uci.ics.jung.graph.Graph<V,E> g,
org.apache.commons.collections4.Transformer<E,java.lang.Integer> length_function)
Constructor for a SpringLayout for a raw graph with associated component.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
done()
For now, we pretend it never finishes.
|
protected void |
moveNodes() |
void |
step()
Relaxation step.
|
calculateRepulsion, getForceMultiplier, getRepulsionRange, getStretch, initialize, isIncremental, relaxEdges, reset, setForceMultiplier, setRepulsionRange, setSize, setStretchgetGraph, getSize, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocation, transformprotected int currentIteration
protected int averageCounter
protected int loopCountMax
protected boolean done
protected java.awt.geom.Point2D averageDelta
public SpringLayout2(edu.uci.ics.jung.graph.Graph<V,E> g)
public SpringLayout2(edu.uci.ics.jung.graph.Graph<V,E> g, org.apache.commons.collections4.Transformer<E,java.lang.Integer> length_function)
g - the Graph to lay outlength_function - provides a length for each edgepublic void step()
step in interface IterativeContextstep in class SpringLayout<V,E>protected void moveNodes()
moveNodes in class SpringLayout<V,E>public boolean done()
SpringLayoutdone in interface IterativeContextdone in class SpringLayout<V,E>