se.liu.ida.critiquer.gui.graph
Class ActivityNode

java.lang.Object
  extended by org.tigris.gef.graph.presentation.NetPrimitive
      extended by org.tigris.gef.graph.presentation.NetNode
          extended by se.liu.ida.critiquer.gui.graph.ActivityNode
All Implemented Interfaces:
Serializable, GraphNodeHooks

public class ActivityNode
extends NetNode

See Also:
Serialized Form

Field Summary
static PrintStream debug
           
 
Fields inherited from class org.tigris.gef.graph.presentation.NetPrimitive
_changeSup, _highlight
 
Constructor Summary
ActivityNode(Class activityClass)
           
 
Method Summary
 void deleteFromModel()
          Remove the activity, along with any constraints related to it and notify listeners it has been removed.
 Activity getActivity()
           
 ChildPort getChildPort()
           
 String getId()
           
 NextPort getNextPort()
           
 ParentPort getParentPort()
           
 PreviousPort getPreviousPort()
           
 void initialize(Hashtable args)
           
 FigNode makePresentation(Layer lay)
           
 void postLoad()
          Restore necessary properties after reading this node from a file
 void preSave()
           
 String toString()
           
 
Methods inherited from class org.tigris.gef.graph.presentation.NetNode
addPort, canConnectTo, getAttributes, getPort, getPorts, postConnect, postDisconnect, postPlacement, presentationFor, setPorts
 
Methods inherited from class org.tigris.gef.graph.presentation.NetPrimitive
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getHighlight, removePropertyChangeListener, setHighlight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.tigris.gef.graph.GraphNodeHooks
addPropertyChangeListener, removePropertyChangeListener, setHighlight
 

Field Detail

debug

public static PrintStream debug
Constructor Detail

ActivityNode

public ActivityNode(Class activityClass)
Method Detail

initialize

public void initialize(Hashtable args)
Specified by:
initialize in interface GraphNodeHooks
Specified by:
initialize in class NetNode

makePresentation

public FigNode makePresentation(Layer lay)
Specified by:
makePresentation in class NetNode

getId

public String getId()
Specified by:
getId in class NetPrimitive

getChildPort

public ChildPort getChildPort()
Returns:
Returns the childPort.

getNextPort

public NextPort getNextPort()
Returns:
Returns the nextPort.

getParentPort

public ParentPort getParentPort()
Returns:
Returns the parentPort.

getPreviousPort

public PreviousPort getPreviousPort()
Returns:
Returns the previousPort.

getActivity

public Activity getActivity()
Returns:
Returns the activity.

toString

public String toString()
Overrides:
toString in class Object

postLoad

public void postLoad()
Restore necessary properties after reading this node from a file


preSave

public void preSave()

deleteFromModel

public void deleteFromModel()
Remove the activity, along with any constraints related to it and notify listeners it has been removed.

Specified by:
deleteFromModel in interface GraphNodeHooks
Overrides:
deleteFromModel in class NetNode
See Also:
NetNode.deleteFromModel()