Class BarnesHutSpringRepulsion.Builder<V>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.repulsion.StandardSpringRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
-
- org.jungrapht.visualization.layout.algorithms.repulsion.BarnesHutSpringRepulsion.Builder<V>
-
- All Implemented Interfaces:
BarnesHutRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
,StandardRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
- Enclosing class:
- BarnesHutSpringRepulsion<V>
public static class BarnesHutSpringRepulsion.Builder<V> extends StandardSpringRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>> implements BarnesHutRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
-
-
Field Summary
-
Fields inherited from class org.jungrapht.visualization.layout.algorithms.repulsion.StandardSpringRepulsion.Builder
layoutModel, random, repulsionRangeSquared, springVertexData
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BarnesHutSpringRepulsion<V>
build()
BarnesHutSpringRepulsion.Builder<V>
layoutModel(LayoutModel<V> layoutModel)
BarnesHutSpringRepulsion.Builder<V>
nodeData(Map<V,SpringLayoutAlgorithm.SpringVertexData> springVertexData)
BarnesHutSpringRepulsion.Builder<V>
random(Random random)
BarnesHutSpringRepulsion.Builder<V>
repulsionRangeSquared(int repulsionRangeSquared)
BarnesHutSpringRepulsion.Builder<V>
theta(double theta)
-
-
-
Method Detail
-
layoutModel
public BarnesHutSpringRepulsion.Builder<V> layoutModel(LayoutModel<V> layoutModel)
- Specified by:
layoutModel
in interfaceBarnesHutRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
- Specified by:
layoutModel
in interfaceStandardRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
- Overrides:
layoutModel
in classStandardSpringRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
-
theta
public BarnesHutSpringRepulsion.Builder<V> theta(double theta)
- Specified by:
theta
in interfaceBarnesHutRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
-
nodeData
public BarnesHutSpringRepulsion.Builder<V> nodeData(Map<V,SpringLayoutAlgorithm.SpringVertexData> springVertexData)
- Overrides:
nodeData
in classStandardSpringRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
-
repulsionRangeSquared
public BarnesHutSpringRepulsion.Builder<V> repulsionRangeSquared(int repulsionRangeSquared)
- Overrides:
repulsionRangeSquared
in classStandardSpringRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
-
random
public BarnesHutSpringRepulsion.Builder<V> random(Random random)
- Specified by:
random
in interfaceStandardRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
- Overrides:
random
in classStandardSpringRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
-
build
public BarnesHutSpringRepulsion<V> build()
- Specified by:
build
in interfaceBarnesHutRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
- Specified by:
build
in interfaceStandardRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
- Overrides:
build
in classStandardSpringRepulsion.Builder<V,BarnesHutSpringRepulsion<V>,BarnesHutSpringRepulsion.Builder<V>>
-
-