Class WFNodeContainer

java.lang.Object
org.adempiere.webui.apps.wf.WFNodeContainer

public class WFNodeContainer extends Object
Container for one or more workflow node
Author:
Low Heng Sin
  • Constructor Details

    • WFNodeContainer

      public WFNodeContainer()
      WFContentPanel
  • Method Details

    • 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)
      Add workflow node
      Parameters:
      node -
    • addEdge

      public void addEdge(MWFNodeNext edge)
      Add edge between node
      Parameters:
      edge -
    • findWidget

      public WFNodeWidget findWidget(int row, int column)
      Find workflow node widget via row and column
      Parameters:
      row - row #, starting from 1
      column - 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()
      Get dimension of container
      Returns:
      dimension
    • validate

      public void validate(Graphics2D graphics)
      Validate layout
      Parameters:
      graphics -
    • paint

      public void paint(Graphics2D graphics)
      Paint container
      Parameters:
      graphics -
    • getRowCount

      public int getRowCount()
      Get row count
      Returns:
      row count
    • getCurrentRow

      public int getCurrentRow()
      Get current row index
      Returns:
      current row index
    • getCurrentColumn

      public int getCurrentColumn()
      Get current column index
      Returns:
      current column index
    • getColumnCount

      public int getColumnCount()
      Get column count
      Returns:
      column count
    • getMaxColumnWithNode

      public int getMaxColumnWithNode()
      Get last column with node
      Returns:
      last column with node
    • getGraphScene

      public org.netbeans.api.visual.graph.GraphScene<Integer,MWFNodeNext> getGraphScene()
      Get graph scene
      Returns:
      graph scene