Class StandardFRRepulsion.Builder<V,R extends StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.Builder<V,R,B>>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.repulsion.StandardFRRepulsion.Builder<V,R,B>
-
- All Implemented Interfaces:
StandardRepulsion.Builder<V,R,B>
- Direct Known Subclasses:
BarnesHutFRRepulsion.Builder
- Enclosing class:
- StandardFRRepulsion<V,R extends StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.Builder<V,R,B>>
public static class StandardFRRepulsion.Builder<V,R extends StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.Builder<V,R,B>> extends Object implements StandardRepulsion.Builder<V,R,B>
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<V,Point>
frVertexData
protected Function<V,Point>
initializer
protected LayoutModel<V>
layoutModel
protected Random
random
protected double
repulsionConstant
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
build()
B
initializer(Function<V,Point> initializer)
B
layoutModel(LayoutModel<V> layoutModel)
B
nodeData(Map<V,Point> frVertexData)
B
random(Random random)
B
repulsionConstant(double repulstionConstant)
-
-
-
Method Detail
-
repulsionConstant
public B repulsionConstant(double repulstionConstant)
-
layoutModel
public B layoutModel(LayoutModel<V> layoutModel)
- Specified by:
layoutModel
in interfaceStandardRepulsion.Builder<V,R extends StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.Builder<V,R,B>>
-
random
public B random(Random random)
- Specified by:
random
in interfaceStandardRepulsion.Builder<V,R extends StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.Builder<V,R,B>>
-
build
public R build()
- Specified by:
build
in interfaceStandardRepulsion.Builder<V,R extends StandardFRRepulsion<V,R,B>,B extends StandardFRRepulsion.Builder<V,R,B>>
-
-