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()
Creates an instance which does not initialize the vertex locations.
|
SpringLayout2(Graph<V,E> g)
Constructor for a SpringLayout for a raw graph with associated
dimension--the input knows how big the graph is.
|
SpringLayout2(Graph<V,E> g,
org.apache.commons.collections15.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()
public SpringLayout2(Graph<V,E> g)
public 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>Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence