Class Layout.Builder
- java.lang.Object
-
- com.hybris.cockpitng.components.visjs.network.data.Layout.Builder
-
- Enclosing class:
- Layout
public static class Layout.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Layoutbuild()Layout.BuilderwithHierarchical(Hierarchical hierarchical)Options for hierarchical layout.Layout.BuilderwithImprovedLayout(java.lang.Boolean improvedLayout)Indicates whether Kamada Kawai's algorithm should be used.Layout.BuilderwithRandomSeed(java.lang.Integer randomSeed)If hierarchical layout is not used then nodes are randomly positioned on canvas.
-
-
-
Method Detail
-
withRandomSeed
public Layout.Builder withRandomSeed(java.lang.Integer randomSeed)
If hierarchical layout is not used then nodes are randomly positioned on canvas. If the seed is set then nodes will be drawn always in the same position. Default value is null.
-
withImprovedLayout
public Layout.Builder withImprovedLayout(java.lang.Boolean improvedLayout)
Indicates whether Kamada Kawai's algorithm should be used. Default value is true.
-
withHierarchical
public Layout.Builder withHierarchical(Hierarchical hierarchical)
Options for hierarchical layout.
-
build
public Layout build()
-
-