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 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(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,
com.google.common.base.Function<E,Integer> length_function)
Constructor for a SpringLayout for a raw graph with associated component.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
done() |
protected void |
moveNodes() |
void |
step()
Relaxation step.
|
calculateRepulsion, getForceMultiplier, getRepulsionRange, getStretch, initialize, isIncremental, relaxEdges, reset, setForceMultiplier, setRepulsionRange, setSize, setStretchapply, getGraph, getSize, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocationprotected int currentIteration
protected int averageCounter
protected int loopCountMax
protected boolean done
protected Point2D averageDelta
public SpringLayout2(Graph<V,E> g)
g - the graph on which the layout algorithm is to operatepublic void step()
step in interface IterativeContextstep in class SpringLayout<V,E>protected void moveNodes()
moveNodes in class SpringLayout<V,E>public boolean done()
done in interface IterativeContextdone in class SpringLayout<V,E>Copyright © 2015. All rights reserved.