Class Repulsion.Builder
- java.lang.Object
-
- com.hybris.cockpitng.components.visjs.network.data.Repulsion.Builder
-
- Enclosing class:
- Repulsion
public static class Repulsion.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Repulsionbuild()Repulsion.BuilderwithCentralGravity(java.lang.Double centralGravity)Value of central gravity which pull the entire network to center point.Repulsion.BuilderwithDamping(java.lang.Double damping)Accepted range [0..1].Repulsion.BuilderwithNodeDistance(java.lang.Double nodeDistance)Range of influence for the repulsion.Repulsion.BuilderwithSpringConstant(java.lang.Double springConstant)Indicates how strongly the spring is.Repulsion.BuilderwithSpringLength(java.lang.Double springLength)Spring length which represents length of edge.
-
-
-
Method Detail
-
withCentralGravity
public Repulsion.Builder withCentralGravity(java.lang.Double centralGravity)
Value of central gravity which pull the entire network to center point. Default value is 0.2.
-
withSpringLength
public Repulsion.Builder withSpringLength(java.lang.Double springLength)
Spring length which represents length of edge. Default value is 200.
-
withSpringConstant
public Repulsion.Builder withSpringConstant(java.lang.Double springConstant)
Indicates how strongly the spring is. Default value is 0.05.
-
withDamping
public Repulsion.Builder withDamping(java.lang.Double damping)
Accepted range [0..1]. Indicates how much the previous physics simulation carries over the next iteration. Default value is 0.09.
-
withNodeDistance
public Repulsion.Builder withNodeDistance(java.lang.Double nodeDistance)
Range of influence for the repulsion. Default value is 100.
-
build
public Repulsion build()
-
-