Class StandardFRRepulsion<V,R extends StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.Builder<V,R,B>>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.repulsion.StandardFRRepulsion<V,R,B>
-
- Type Parameters:
V
- the vertex typeR
- the Repulsion typeB
- the Repulsion Builder type
- All Implemented Interfaces:
StandardRepulsion<V,R,B>
- Direct Known Subclasses:
BarnesHutFRRepulsion
public class StandardFRRepulsion<V,R extends StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.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
StandardFRRepulsion.Builder<V,R extends StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.Builder<V,R,B>>
-
Field Summary
Fields Modifier and Type Field Description protected double
EPSILON
protected Map<V,Point>
frVertexData
protected Function<V,Point>
initializer
protected LayoutModel<V>
layoutModel
protected Random
random
protected double
repulsionConstant
protected Set<V>
vertexSet
-
Constructor Summary
Constructors Modifier Constructor Description protected
StandardFRRepulsion(StandardFRRepulsion.Builder<V,R,B> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StandardFRRepulsion.Builder
builder()
void
calculateRepulsion()
Random
getRandom()
static StandardFRRepulsion.Builder
standardBuilder()
Deprecated.void
step()
called from the layout algorithm on every step.
-
-
-
Field Detail
-
repulsionConstant
protected double repulsionConstant
-
EPSILON
protected double EPSILON
-
random
protected Random random
-
layoutModel
protected LayoutModel<V> layoutModel
-
-
Constructor Detail
-
StandardFRRepulsion
protected StandardFRRepulsion(StandardFRRepulsion.Builder<V,R,B> builder)
-
-
Method Detail
-
builder
public static StandardFRRepulsion.Builder builder()
-
standardBuilder
@Deprecated public static StandardFRRepulsion.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 StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.Builder<V,R,B>>
-
getRandom
public Random getRandom()
-
calculateRepulsion
public void calculateRepulsion()
- Specified by:
calculateRepulsion
in interfaceStandardRepulsion<V,R extends StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.Builder<V,R,B>>
-
-