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

java.lang.Object
  extended by org.tigris.gef.graph.presentation.NetPrimitive
      extended by org.tigris.gef.graph.presentation.NetEdge
          extended by se.liu.ida.critiquer.gui.graph.InheritanceEdge
All Implemented Interfaces:
Serializable, GraphEdgeHooks

public class InheritanceEdge
extends NetEdge

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.graph.presentation.NetEdge
_destPort, _ports, _sourcePort
 
Fields inherited from class org.tigris.gef.graph.presentation.NetPrimitive
_changeSup, _highlight
 
Constructor Summary
InheritanceEdge()
           
 
Method Summary
 boolean connect(GraphModel gm, Object srcPort, Object destPort)
          The parentPort is the port that connects TO a parent and the childPort is the port that connects TO the children.
 void deleteFromModel()
           
 Activity getChild()
           
 String getId()
           
 Activity getParent()
           
 FigEdge makePresentation(Layer lay)
           
 
Methods inherited from class org.tigris.gef.graph.presentation.NetEdge
getDestPort, getPorts, getSourcePort, otherEnd, presentationFor, setDestPort, setPorts, setSourcePort
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.tigris.gef.graph.GraphEdgeHooks
addPropertyChangeListener, removePropertyChangeListener, setHighlight
 

Constructor Detail

InheritanceEdge

public InheritanceEdge()
Method Detail

makePresentation

public FigEdge makePresentation(Layer lay)
Specified by:
makePresentation in class NetEdge

connect

public boolean connect(GraphModel gm,
                       Object srcPort,
                       Object destPort)
The parentPort is the port that connects TO a parent and the childPort is the port that connects TO the children. That means that a parentPort is located on an ActivityFigNode which represents and activity that is supposed to be the child of the activity associated with the childPort.

Overrides:
connect in class NetEdge

deleteFromModel

public void deleteFromModel()
Specified by:
deleteFromModel in interface GraphEdgeHooks
Overrides:
deleteFromModel in class NetEdge
See Also:
for an explanation on how the parentPort should be interpreted.

getId

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

getChild

public Activity getChild()
Returns:
Returns the child.

getParent

public Activity getParent()
Returns:
Returns the parent.