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 voidaddEdge(MWFNodeNext edge)voidaddNode(MWFNode node)RectanglefindBounds(int AD_WF_Node_ID)Get Bounds of WF Node IconWFNodeWidgetfindWidget(int row, int column)intgetColumnCount()intgetCurrentColumn()intgetCurrentRow()DimensiongetDimension()org.netbeans.api.visual.graph.GraphScene<Integer,MWFNodeNext>getGraphScene()intgetMaxColumnWithNode()intgetRowCount()voidpaint(Graphics2D graphics)voidremoveAll()Remove All and their listenersvoidsetWorkflow(MWorkflow wf)Set Workflowvoidvalidate(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()
-
-