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

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.OrderingEdge
All Implemented Interfaces:
Serializable, GraphEdgeHooks

public class OrderingEdge
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
OrderingEdge()
           
 
Method Summary
 boolean connect(GraphModel gm, Object srcPort, Object destPort)
           Just as in the case with inheritance ports, the nextPort denotes the port connecting TO the next activity.
 void deleteFromModel()
           
 Activity getAfterActivity()
           
 Activity getBeforeActivity()
           
 String getId()
           
 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

OrderingEdge

public OrderingEdge()
Method Detail

makePresentation

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

connect

public boolean connect(GraphModel gm,
                       Object srcPort,
                       Object destPort)

Just as in the case with inheritance ports, the nextPort denotes the port connecting TO the next activity.

That means that the nextPort is connected to a Fig that represents the activitiy that should come before.

Overrides:
connect in class NetEdge

deleteFromModel

public void deleteFromModel()
Specified by:
deleteFromModel in interface GraphEdgeHooks
Overrides:
deleteFromModel in class NetEdge
See Also:
for information on what the ports denote

getId

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

getAfterActivity

public Activity getAfterActivity()
Returns:
Returns the afterActivity.

getBeforeActivity

public Activity getBeforeActivity()
Returns:
Returns the beforeActivity.