Class StandardSpringRepulsion<V,R extends StandardSpringRepulsion<V,R,B>,B extends StandardSpringRepulsion.Builder<V,R,B>>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.repulsion.StandardSpringRepulsion<V,R,B>
-
- Type Parameters:
V
- the vertex type
- All Implemented Interfaces:
StandardRepulsion<V,R,B>
- Direct Known Subclasses:
BarnesHutSpringRepulsion
public class StandardSpringRepulsion<V,R extends StandardSpringRepulsion<V,R,B>,B extends StandardSpringRepulsion.Builder<V,R,B>> extends Object implements StandardRepulsion<V,R,B>
- Author:
- Tom Nelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StandardSpringRepulsion.Builder<V,R extends StandardSpringRepulsion<V,R,B>,B extends StandardSpringRepulsion.Builder<V,R,B>>
-
Field Summary
Fields Modifier and Type Field Description protected LayoutModel<V>
layoutModel
protected Random
random
protected int
repulsionRangeSquared
protected Map<V,SpringLayoutAlgorithm.SpringVertexData>
springVertexData
protected Set<V>
vertexSet
-
Constructor Summary
Constructors Modifier Constructor Description protected
StandardSpringRepulsion(StandardSpringRepulsion.Builder<V,R,B> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StandardSpringRepulsion.Builder
builder()
void
calculateRepulsion()
static StandardSpringRepulsion.Builder
standardBuilder()
Deprecated.void
step()
called from the layout algorithm on every step.
-
-
-
Field Detail
-
springVertexData
protected Map<V,SpringLayoutAlgorithm.SpringVertexData> springVertexData
-
repulsionRangeSquared
protected int repulsionRangeSquared
-
random
protected Random random
-
layoutModel
protected LayoutModel<V> layoutModel
-
-
Constructor Detail
-
StandardSpringRepulsion
protected StandardSpringRepulsion(StandardSpringRepulsion.Builder<V,R,B> builder)
-
-
Method Detail
-
builder
public static StandardSpringRepulsion.Builder builder()
-
standardBuilder
@Deprecated public static StandardSpringRepulsion.Builder standardBuilder()
Deprecated.
-
step
public void step()
Description copied from interface:StandardRepulsion
called from the layout algorithm on every step. this version is a noop but the subclass BarnesHut version rebuilds the tree on every step- Specified by:
step
in interfaceStandardRepulsion<V,R extends StandardSpringRepulsion<V,R,B>,B extends StandardSpringRepulsion.Builder<V,R,B>>
-
calculateRepulsion
public void calculateRepulsion()
- Specified by:
calculateRepulsion
in interfaceStandardRepulsion<V,R extends StandardSpringRepulsion<V,R,B>,B extends StandardSpringRepulsion.Builder<V,R,B>>
-
-