Package org.adempiere.webui.apps.wf
Class WFNodeContainer
- java.lang.Object
-
- org.adempiere.webui.apps.wf.WFNodeContainer
-
public class WFNodeContainer extends Object
- Author:
- Low Heng Sin
-
-
Constructor Summary
Constructors Constructor Description WFNodeContainer()
WFContentPanel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEdge(MWFNodeNext edge)
void
addNode(MWFNode node)
Rectangle
findBounds(int AD_WF_Node_ID)
Get Bounds of WF Node IconWFNodeWidget
findWidget(int row, int column)
int
getColumnCount()
int
getCurrentColumn()
int
getCurrentRow()
Dimension
getDimension()
org.netbeans.api.visual.graph.GraphScene<Integer,MWFNodeNext>
getGraphScene()
int
getMaxColumnWithNode()
int
getRowCount()
void
paint(Graphics2D graphics)
void
removeAll()
Remove All and their listenersvoid
setWorkflow(MWorkflow wf)
Set Workflowvoid
validate(Graphics2D graphics)
-
-
-
Method Detail
-
setWorkflow
public void setWorkflow(MWorkflow wf)
Set Workflow- Parameters:
wf
- workflow
-
removeAll
public void removeAll()
Remove All and their listeners
-
addNode
public void addNode(MWFNode node)
-
addEdge
public void addEdge(MWFNodeNext edge)
-
findWidget
public WFNodeWidget findWidget(int row, int column)
- Parameters:
row
- row #, starting from 1column
- column #, starting from 1- Returns:
- WFNodeWidget
-
findBounds
public Rectangle findBounds(int AD_WF_Node_ID)
Get Bounds of WF Node Icon- Parameters:
AD_WF_Node_ID
- node id- Returns:
- bounds of node with ID or null
-
getDimension
public Dimension getDimension()
-
validate
public void validate(Graphics2D graphics)
-
paint
public void paint(Graphics2D graphics)
-
getRowCount
public int getRowCount()
-
getCurrentRow
public int getCurrentRow()
-
getCurrentColumn
public int getCurrentColumn()
-
getColumnCount
public int getColumnCount()
-
getMaxColumnWithNode
public int getMaxColumnWithNode()
-
getGraphScene
public org.netbeans.api.visual.graph.GraphScene<Integer,MWFNodeNext> getGraphScene()
-
-