org.argouml.uml.diagram.sequence.ui
Class FigLink

java.lang.Object
  |
  +--FigEdgePoly
        |
        +--org.argouml.uml.diagram.ui.FigEdgeModelElement
              |
              +--org.argouml.uml.diagram.sequence.ui.FigLink
All Implemented Interfaces:
ArgoEventListener, ArgoNotationEventListener, DelayedVChangeListener, java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, NotationContext, java.beans.PropertyChangeListener, java.beans.VetoableChangeListener
Direct Known Subclasses:
FigCallActionLink, FigCreateActionLink, FigDestroyActionLink, FigReturnActionLink

public abstract class FigLink
extends FigEdgeModelElement

The fig for a link in a sequence diagram.

See Also:
Serialized Form

Field Summary
private  int computeRouteNumbersOfTime
           
 
Fields inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement
_name, _stereo, BUNDLE, cat, ITALIC_LABEL_FONT, LABEL_FONT, MARGIN, POPUP_ADD_OFFSET
 
Constructor Summary
FigLink()
          Constructor here for saving and loading purposes.
FigLink(java.lang.Object owner)
          Contructs a new figlink and sets the owner of the figlink.
 
Method Summary
 void computeRoute()
          Computes the route of this FigLink and computes the connectionpoints of the figlink to the ports.
 java.lang.Object getAction()
          Returns the action attached to this link if any.
 FigObject getDestFigObject()
           
 LinkPort getDestLinkPort()
           
 java.lang.Object getMessage()
          Returns the message belonging to this link if there is one (otherwise null).
 FigObject getSrcFigObject()
           
 LinkPort getSrcLinkPort()
           
protected abstract  void layoutActivations()
          Lays out the activations to which the links is attached.
protected  void layoutEdge()
           
 
Methods inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement
canEdit, damage, delayedVetoableChange, delete, dispose, finalize, getContextNotation, getDestination, getItemUID, getNameFig, getPopUpActions, getSource, getSquaredDistance, getStereotypeFig, getTipString, hitClarifier, keyPressed, keyReleased, keyTyped, listRoleItemSet, makeSelection, modelChanged, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paintClarifiers, postLoad, propertyChange, propertySet, recovered, removed, renderingChanged, roleAdded, roleRemoved, setItemUID, setOwner, setPoints, textEdited, updateClassifiers, updateNameText, updateStereotypeText, vetoableChange
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

computeRouteNumbersOfTime

private int computeRouteNumbersOfTime
Constructor Detail

FigLink

public FigLink(java.lang.Object owner)
Contructs a new figlink and sets the owner of the figlink.

Parameters:
owner -

FigLink

public FigLink()
Constructor here for saving and loading purposes.

Method Detail

getAction

public java.lang.Object getAction()
Returns the action attached to this link if any.

Returns:
the action attached to this link or null if there isn't any.

computeRoute

public void computeRoute()
Computes the route of this FigLink and computes the connectionpoints of the figlink to the ports. This depends on the action attached to the owner of the FigLink. Also adds FigActivations etc or moves the FigObjects if necessary.

See Also:
org.tigris.gef.presentation.FigEdge#computeRoute()

getMessage

public java.lang.Object getMessage()
Returns the message belonging to this link if there is one (otherwise null).

Returns:
the message.

layoutEdge

protected void layoutEdge()
See Also:
org.tigris.gef.presentation.FigEdgePoly#layoutEdge()

layoutActivations

protected abstract void layoutActivations()
Lays out the activations to which the links is attached. Only does this at creation time.


getDestLinkPort

public LinkPort getDestLinkPort()

getSrcLinkPort

public LinkPort getSrcLinkPort()

getSrcFigObject

public FigObject getSrcFigObject()

getDestFigObject

public FigObject getDestFigObject()


ArgoUML © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook