Class Stabilization.Builder
- java.lang.Object
-
- com.hybris.cockpitng.components.visjs.network.data.Stabilization.Builder
-
- Enclosing class:
- Stabilization
public static class Stabilization.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stabilizationbuild()Stabilization.BuilderwithEnabled(java.lang.Boolean enabled)Enables stabilization.Stabilization.BuilderwithFit(java.lang.Boolean fit)Indicates whether the view should be zoom to fit all nodes when a stabilization is finished.Stabilization.BuilderwithIterations(java.lang.Integer iterations)Network tries to stabilize itself with the maximum number of iterations.Stabilization.BuilderwithOnlyDynamicEdges(java.lang.Boolean onlyDynamicEdges)If you have fixed positions of all nodes and you want to stabilize only edges then set the value to true.Stabilization.BuilderwithUpdateInterval(java.lang.Integer updateInterval)The interval determines after how many iterations the 'stabilizationProgress' event is triggered.
-
-
-
Method Detail
-
withEnabled
public Stabilization.Builder withEnabled(java.lang.Boolean enabled)
Enables stabilization. Default value is true
-
withIterations
public Stabilization.Builder withIterations(java.lang.Integer iterations)
Network tries to stabilize itself with the maximum number of iterations. Default value is 1000
-
withUpdateInterval
public Stabilization.Builder withUpdateInterval(java.lang.Integer updateInterval)
The interval determines after how many iterations the 'stabilizationProgress' event is triggered. Default value is 50
-
withOnlyDynamicEdges
public Stabilization.Builder withOnlyDynamicEdges(java.lang.Boolean onlyDynamicEdges)
If you have fixed positions of all nodes and you want to stabilize only edges then set the value to true. Default value is false
-
withFit
public Stabilization.Builder withFit(java.lang.Boolean fit)
Indicates whether the view should be zoom to fit all nodes when a stabilization is finished. Default value is true
-
build
public Stabilization build()
-
-