Class LayoutManagerBase
- java.lang.Object
-
- org.ikasan.dashboard.ui.visualisation.layout.LayoutManagerBase
-
- Direct Known Subclasses:
IkasanFlowLayoutManager,IkasanModuleLayoutManager
public abstract class LayoutManagerBase extends java.lang.ObjectBase abstract class used to assist in the layout of ikasan flow and module diagrams.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Destination>destinationsprotected java.util.List<org.ikasan.vaadin.visjs.network.Edge>edgeListprotected Logologoprotected org.ikasan.vaadin.visjs.network.NetworkDiagramnetworkDiagramprotected java.util.List<org.ikasan.vaadin.visjs.network.Node>nodeListprotected intxExtentprotected intxExtentFinalprotected intxSpacingprotected intxStartprotected intyExtentprotected intySpacingprotected intyStart
-
Constructor Summary
Constructors Constructor Description LayoutManagerBase(org.ikasan.vaadin.visjs.network.NetworkDiagram networkDiagram, Logo logo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddEdge(java.lang.String fromId, java.lang.String toId, java.lang.String label)intgetxSpacing()intgetySpacing()protected voidmanageTransition(org.ikasan.vaadin.visjs.network.Node transition, int x, int y)This method recursively works its way through a flow with all of its various transitions and lays out the flow in a left to right, top to bottom fashion.voidsetxSpacing(int xSpacing)voidsetySpacing(int ySpacing)
-
-
-
Field Detail
-
networkDiagram
protected org.ikasan.vaadin.visjs.network.NetworkDiagram networkDiagram
-
edgeList
protected java.util.List<org.ikasan.vaadin.visjs.network.Edge> edgeList
-
nodeList
protected java.util.List<org.ikasan.vaadin.visjs.network.Node> nodeList
-
destinations
protected java.util.List<Destination> destinations
-
logo
protected Logo logo
-
xExtent
protected int xExtent
-
yExtent
protected int yExtent
-
xExtentFinal
protected int xExtentFinal
-
xStart
protected int xStart
-
yStart
protected int yStart
-
xSpacing
protected int xSpacing
-
ySpacing
protected int ySpacing
-
-
Constructor Detail
-
LayoutManagerBase
public LayoutManagerBase(org.ikasan.vaadin.visjs.network.NetworkDiagram networkDiagram, Logo logo)
-
-
Method Detail
-
manageTransition
protected void manageTransition(org.ikasan.vaadin.visjs.network.Node transition, int x, int y)This method recursively works its way through a flow with all of its various transitions and lays out the flow in a left to right, top to bottom fashion.- Parameters:
transition-x-y-
-
addEdge
protected void addEdge(java.lang.String fromId, java.lang.String toId, java.lang.String label)
-
getxSpacing
public int getxSpacing()
-
setxSpacing
public void setxSpacing(int xSpacing)
-
getySpacing
public int getySpacing()
-
setySpacing
public void setySpacing(int ySpacing)
-
-