Class Interaction.Builder
- java.lang.Object
-
- com.hybris.cockpitng.components.visjs.network.data.Interaction.Builder
-
- Enclosing class:
- Interaction
public static class Interaction.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Interactionbuild()Interaction.BuilderwithDragNodes(java.lang.Boolean dragNodes)Indicates whether nodes that are not fixed can be dragged.Interaction.BuilderwithDragView(java.lang.Boolean dragView)Indicates whether view can be dragged.Interaction.BuilderwithHideEdgesOnDrag(java.lang.Boolean hideEdgesOnDrag)Indicates whether edges should be hide while dragging.Interaction.BuilderwithHideNodesOnDrag(java.lang.Boolean hideNodesOnDrag)Indicates whether nodes should be hide while dragging.Interaction.BuilderwithHover(java.lang.Boolean hover)Indicates whether nodes should use their hover colors on a moveover event.Interaction.BuilderwithHoverConnectedEdges(java.lang.Boolean hoverConnectedEdges)Indicates whether on hovering over a node its edges should be highlighted.Interaction.BuilderwithKeyboard(Keyboard keyboard)Enables and configures keyboard shortcuts for networkInteraction.BuilderwithMultiselect(java.lang.Boolean multiselect)Indicates whether multiselect should be possible.Interaction.BuilderwithNavigationButtons(java.lang.Boolean navigationButtons)Indicates whether navigation buttons should be visible on a canvas.Interaction.BuilderwithSelectable(java.lang.Boolean selectable)Indicates whether nodes and edges can be selected by user.Interaction.BuilderwithSelectConnectedEdges(java.lang.Boolean selectConnectedEdges)Indicates whether selection on a node should highlight its edges.Interaction.BuilderwithTooltipDelay(java.lang.Integer tooltipDelay)Indicates whether zooming is possible.Interaction.BuilderwithZoomView(java.lang.Boolean zoomView)Indicates delay of showing tooltip for edges or nodes.
-
-
-
Method Detail
-
withDragNodes
public Interaction.Builder withDragNodes(java.lang.Boolean dragNodes)
Indicates whether nodes that are not fixed can be dragged. Default value is true.
-
withDragView
public Interaction.Builder withDragView(java.lang.Boolean dragView)
Indicates whether view can be dragged. Default value is true.
-
withHideEdgesOnDrag
public Interaction.Builder withHideEdgesOnDrag(java.lang.Boolean hideEdgesOnDrag)
Indicates whether edges should be hide while dragging. Default value is false.
-
withHideNodesOnDrag
public Interaction.Builder withHideNodesOnDrag(java.lang.Boolean hideNodesOnDrag)
Indicates whether nodes should be hide while dragging. Default value is false.
-
withHover
public Interaction.Builder withHover(java.lang.Boolean hover)
Indicates whether nodes should use their hover colors on a moveover event. Default value is false.
-
withHoverConnectedEdges
public Interaction.Builder withHoverConnectedEdges(java.lang.Boolean hoverConnectedEdges)
Indicates whether on hovering over a node its edges should be highlighted. Default value is true.
-
withKeyboard
public Interaction.Builder withKeyboard(Keyboard keyboard)
Enables and configures keyboard shortcuts for network
-
withMultiselect
public Interaction.Builder withMultiselect(java.lang.Boolean multiselect)
Indicates whether multiselect should be possible. Default value is false.
-
withNavigationButtons
public Interaction.Builder withNavigationButtons(java.lang.Boolean navigationButtons)
Indicates whether navigation buttons should be visible on a canvas. Default value is false.
-
withSelectable
public Interaction.Builder withSelectable(java.lang.Boolean selectable)
Indicates whether nodes and edges can be selected by user. Default value is true.
-
withSelectConnectedEdges
public Interaction.Builder withSelectConnectedEdges(java.lang.Boolean selectConnectedEdges)
Indicates whether selection on a node should highlight its edges. Default value is true.
-
withZoomView
public Interaction.Builder withZoomView(java.lang.Boolean zoomView)
Indicates delay of showing tooltip for edges or nodes. Edges or nodes have to have defined 'title' property. Default value is 300.
-
withTooltipDelay
public Interaction.Builder withTooltipDelay(java.lang.Integer tooltipDelay)
Indicates whether zooming is possible. Default value is true.
-
build
public Interaction build()
-
-