org.processmining.models.flexiblemodel
Class FlexNode

java.lang.Object
  extended by org.processmining.models.graphbased.AbstractGraphElement
      extended by org.processmining.models.graphbased.AbstractGraphNode
          extended by org.processmining.models.graphbased.directed.AbstractDirectedGraphNode
              extended by org.processmining.models.flexiblemodel.FlexNode
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<org.processmining.models.graphbased.directed.DirectedGraphNode>, org.processmining.models.graphbased.AttributeMapOwner, org.processmining.models.graphbased.directed.DirectedGraphElement, org.processmining.models.graphbased.directed.DirectedGraphNode, org.processmining.models.shapes.Decorated
Direct Known Subclasses:
FlexNodeElement

public abstract class FlexNode
extends org.processmining.models.graphbased.directed.AbstractDirectedGraphNode
implements org.processmining.models.shapes.Decorated

Version:
Nov 19, 2009
Author:
arya

Constructor Summary
FlexNode(org.processmining.models.graphbased.directed.AbstractDirectedGraph<FlexNode,FlexEdge<? extends FlexNode,? extends FlexNode>> graph, java.lang.String label)
          Default constructor
 
Method Summary
 boolean addInputNodes(SetFlex inputNodes)
           
 boolean addOutputNodes(SetFlex outputNodes)
           
 void commitUpdates()
          Commit all updates (including size, etc).
 void decorate(java.awt.Graphics2D g2d, double x, double y, double width, double height)
          If this node is a start task node, draw additional indicator
 IExposeNodeDecoration getDecorator()
           
 org.processmining.models.graphbased.directed.AbstractDirectedGraph<FlexNode,FlexEdge<? extends FlexNode,? extends FlexNode>> getGraph()
          return the graph which this node is belong to
 java.lang.String getInfo()
           
 java.util.Set<SetFlex> getInputNodes()
           
 java.util.Set<SetFlex> getOutputNodes()
           
 java.lang.String getToolTipText()
           
 boolean isInvisible()
           
 boolean removeInputNodes(SetFlex inputNodes)
           
 boolean removeOutputNodes(SetFlex outputNodes)
           
 void setDecorator(IExposeNodeDecoration decorator)
           
 void setInputNodes(java.util.Set<SetFlex> inputNodes)
           
 void setInvisible(boolean isInvisible)
           
 void setLabel(java.lang.String newLabel)
          set Label of the node
 void setOutputNodes(java.util.Set<SetFlex> outputNodes)
           
 
Methods inherited from class org.processmining.models.graphbased.directed.AbstractDirectedGraphNode
compareTo
 
Methods inherited from class org.processmining.models.graphbased.AbstractGraphNode
equals, getId, hashCode
 
Methods inherited from class org.processmining.models.graphbased.AbstractGraphElement
getAttributeMap, getLabel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.processmining.models.graphbased.directed.DirectedGraphNode
getId
 
Methods inherited from interface org.processmining.models.graphbased.directed.DirectedGraphElement
equals, getLabel, hashCode
 
Methods inherited from interface org.processmining.models.graphbased.AttributeMapOwner
getAttributeMap
 

Constructor Detail

FlexNode

public FlexNode(org.processmining.models.graphbased.directed.AbstractDirectedGraph<FlexNode,FlexEdge<? extends FlexNode,? extends FlexNode>> graph,
                java.lang.String label)
Default constructor

Parameters:
graph -
label -
Method Detail

getToolTipText

public java.lang.String getToolTipText()

setLabel

public void setLabel(java.lang.String newLabel)
set Label of the node

Parameters:
newLabel -

addInputNodes

public boolean addInputNodes(SetFlex inputNodes)

removeInputNodes

public boolean removeInputNodes(SetFlex inputNodes)

addOutputNodes

public boolean addOutputNodes(SetFlex outputNodes)

removeOutputNodes

public boolean removeOutputNodes(SetFlex outputNodes)

isInvisible

public boolean isInvisible()
Returns:
the isInvisible

setInvisible

public void setInvisible(boolean isInvisible)
Parameters:
isInvisible - the isInvisible node to set

getInfo

public java.lang.String getInfo()

decorate

public void decorate(java.awt.Graphics2D g2d,
                     double x,
                     double y,
                     double width,
                     double height)
If this node is a start task node, draw additional indicator

Specified by:
decorate in interface org.processmining.models.shapes.Decorated

commitUpdates

public void commitUpdates()
Commit all updates (including size, etc). In this case, only update tooltip first


getGraph

public org.processmining.models.graphbased.directed.AbstractDirectedGraph<FlexNode,FlexEdge<? extends FlexNode,? extends FlexNode>> getGraph()
return the graph which this node is belong to

Specified by:
getGraph in interface org.processmining.models.graphbased.directed.DirectedGraphElement
Overrides:
getGraph in class org.processmining.models.graphbased.directed.AbstractDirectedGraphNode

getInputNodes

public java.util.Set<SetFlex> getInputNodes()
Returns:
the inputNodes

setInputNodes

public void setInputNodes(java.util.Set<SetFlex> inputNodes)
Parameters:
inputNodes - the inputNodes to set

getOutputNodes

public java.util.Set<SetFlex> getOutputNodes()
Returns:
the outputNodes

setOutputNodes

public void setOutputNodes(java.util.Set<SetFlex> outputNodes)
Parameters:
outputNodes - the outputNodes to set

getDecorator

public IExposeNodeDecoration getDecorator()
Returns:
the decorator

setDecorator

public void setDecorator(IExposeNodeDecoration decorator)
Parameters:
decorator - the decorator to set