Class EdgeColor.Builder
- java.lang.Object
-
- com.hybris.cockpitng.components.visjs.network.data.EdgeColor.Builder
-
- Enclosing class:
- EdgeColor
public static class EdgeColor.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeColorbuild()EdgeColor.BuilderwithColor(java.lang.String color)Represents color information when edge is not selected.EdgeColor.BuilderwithHighlight(java.lang.String highlight)Represents color information when edge is selected.EdgeColor.BuilderwithHover(java.lang.String hover)Represents color information when mouse is over an edge.EdgeColor.BuilderwithInherit(java.lang.String inherit)When set to "from", then edge will inherit color from a border of node on a 'from' side.EdgeColor.BuilderwithOpacity(java.lang.Integer opacity)Opacity of an edge.
-
-
-
Method Detail
-
withColor
public EdgeColor.Builder withColor(java.lang.String color)
Represents color information when edge is not selected. Default value is #848484.
-
withHighlight
public EdgeColor.Builder withHighlight(java.lang.String highlight)
Represents color information when edge is selected. Default value is #848484.
-
withHover
public EdgeColor.Builder withHover(java.lang.String hover)
Represents color information when mouse is over an edge. Default value is #848484.
-
withInherit
public EdgeColor.Builder withInherit(java.lang.String inherit)
When set to "from", then edge will inherit color from a border of node on a 'from' side. When set to 'to' then edge will inherit color from a border of node on a 'to' side. Possible values are true, false, 'from','to','both'. Default value is 'from'.
-
withOpacity
public EdgeColor.Builder withOpacity(java.lang.Integer opacity)
Opacity of an edge. The allowed range of opacity values are [0..1]. Default value is 1.
-
build
public EdgeColor build()
-
-