Class Smooth.Builder
- java.lang.Object
-
- com.hybris.cockpitng.components.visjs.network.data.Smooth.Builder
-
- Enclosing class:
- Smooth
public static class Smooth.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Smoothbuild()Smooth.BuilderwithEnabled(java.lang.Boolean enabled)Enables quadratic bezier curves.Smooth.BuilderwithForceDirection(java.lang.String forceDirection)Possible values are "horizontal", "vertical", "none".Smooth.BuilderwithRoundness(java.lang.Double roundness)Accepted range is [0..1].Smooth.BuilderwithType(java.lang.String type)Possible types are "dynamic", "continuous", "discrete", "diagonalCross", "straightCross", "horizontal", "vertical", "curvedCW", "curvedCCW", "cubicBezier".
-
-
-
Method Detail
-
withEnabled
public Smooth.Builder withEnabled(java.lang.Boolean enabled)
Enables quadratic bezier curves. Default value is true.
-
withType
public Smooth.Builder withType(java.lang.String type)
Possible types are "dynamic", "continuous", "discrete", "diagonalCross", "straightCross", "horizontal", "vertical", "curvedCW", "curvedCCW", "cubicBezier". Default value is "dynamic"
-
withForceDirection
public Smooth.Builder withForceDirection(java.lang.String forceDirection)
Possible values are "horizontal", "vertical", "none". The options are taken into account only when type is set to cubicBezier.
-
withRoundness
public Smooth.Builder withRoundness(java.lang.Double roundness)
Accepted range is [0..1]. Default value is 0.5
-
build
public Smooth build()
-
-