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

java.lang.Object
  extended byorg.tigris.gef.presentation.Fig
      extended byorg.tigris.gef.presentation.FigEdge
          extended byorg.tigris.gef.presentation.FigEdgePoly
              extended byorg.argouml.uml.diagram.ui.FigEdgeModelElement
                  extended byorg.argouml.uml.diagram.sequence.ui.FigLink
All Implemented Interfaces:
ArgoEventListener, ArgoNotationEventListener, Cloneable, org.tigris.gef.presentation.Connecter, DelayedVChangeListener, EventListener, org.tigris.gef.ui.Highlightable, KeyListener, MouseListener, NotationContext, org.tigris.gef.ui.PopupGenerator, PropertyChangeListener, Serializable, 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

Nested Class Summary
 
Nested classes inherited from class org.tigris.gef.presentation.FigEdge
 
Field Summary
private  int computeRouteNumbersOfTime
           
 
Fields inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement
BUNDLE, POPUP_ADD_OFFSET
 
Fields inherited from class org.tigris.gef.presentation.FigEdgePoly
_initiallyLaidOut
 
Fields inherited from class org.tigris.gef.presentation.FigEdge
_arrowHeadEnd, _arrowHeadStart, _destFigNode, _fig, _highlight, _pathItems, _sourceFigNode, _useNearest
 
Fields inherited from class org.tigris.gef.presentation.Fig
_allowsSaving, _context, _dashes, _dashPeriod, _dashStyle, _displayed, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _selected, _shown, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, MIN_SIZE
 
Constructor Summary
FigLink()
          Constructor here for saving and loading purposes.
FigLink(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.
 Object getAction()
          Returns the action attached to this link if any.
 FigObject getDestFigObject()
           
 LinkPort getDestLinkPort()
           
 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
allowRemoveFromDiagram, canEdit, damage, delayedVetoableChange, deleteFromModel, finalize, getContextNotation, getDestination, getItalicLabelFont, getItemUID, getLabelFont, getNameFig, getPopUpActions, getSource, getSquaredDistance, getStereotypeFig, getTipString, hit, hitClarifier, keyPressed, keyReleased, keyTyped, makeSelection, modelChanged, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paintClarifiers, postLoad, propertyChange, removeFromDiagram, renderingChanged, setItemUID, setOwner, textEdited, updateClassifiers, updateNameText, updateStereotypeText, vetoableChange
 
Methods inherited from class org.tigris.gef.presentation.FigEdgePoly
findAvoidPt, insertPoint, makeEdgeFig, moveVertex, paint, routingRectPoint, segOK, setEndPoints, setInitiallyLaidOut, setPoint, tryRoute
 
Methods inherited from class org.tigris.gef.presentation.FigEdge
addPathItem, calcBounds, cleanUp, contains, getBetweenNearestPoints, getBounds, getBounds, getDashed, getDestArrowHead, getDestFigNode, getDestPortFig, getFig, getFirstPoint, getHighlight, getLastPoint, getLineColor, getLineWidth, getNumPoints, getPathItem, getPathItemFig, getPathItemFigs, getPathItemsRaw, getPerimeterLength, getPoint, getPoints, getPrivateData, getSourceArrowHead, getSourceFigNode, getSourcePortFig, getXs, getYs, hasFillColor, hitFig, intersects, isReshapable, isResizable, isRotatable, paintArrowHeads, paintHighlightLine, paintPathItems, removePathItem, removePathItem, setBetweenNearestPoints, setDashed, setDestArrowHead, setDestFigNode, setDestPortFig, setFig, setHighlight, setLineColor, setLineWidth, setNumPoints, setPoint, setPoints, setPoints, setPoints, setPrivateData, setSourceArrowHead, setSourceFigNode, setSourcePortFig, setXs, setYs, stuffPointAlongPerimeter, translateEdge, updatePathItemLocations
 
Methods inherited from class org.tigris.gef.presentation.Fig
addAnnotation, addPoint, addPropertyChangeListener, align, center, classNameAndBounds, clone, connectionPoint, contains, contains, countCornersContained, createDrag, delete, dispose, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getClosestPoint, getContext, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLayer, getLocation, getLocked, getMinimumSize, getOwner, getPreferredSize, getResource, getSingle, getSize, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getY, hasLineColor, initAnnotations, intersectsPerimeter, isAnnotation, isCopieable, isCopyable, isCutable, isDisplayed, isLowerRightResizable, isMovable, isSelected, isVisible, OK, pointAlongPerimeter, postSave, preSave, print, redraw, removeAnnotation, removeAnnotation, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setBounds, setCenter, setContext, setDashedString, setDisplayed, setEnclosingFig, setFillColor, setFilled, setGroup, setHandleBox, setHeight, setLayer, setLocation, setLocation, setLocked, setMovable, setPoint, setPoint, setPoints, setPoints, setResizable, setResource, setSavingAllowed, setSelected, setSingle, setSize, setSize, setVisible, setVisState, setWidth, setX, setY, stuffBounds, translate, translateAnnotations, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, within
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tigris.gef.ui.Highlightable
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

computeRouteNumbersOfTime

private int computeRouteNumbersOfTime
Constructor Detail

FigLink

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

Parameters:
owner - is the owner.

FigLink

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

Method Detail

getAction

public 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:
FigEdge.computeRoute()

getMessage

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

Returns:
the message.

layoutEdge

protected void layoutEdge()
See Also:
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()
Returns:
the destination link port

getSrcLinkPort

public LinkPort getSrcLinkPort()
Returns:
the source linkport

getSrcFigObject

public FigObject getSrcFigObject()
Returns:
the source figobject

getDestFigObject

public FigObject getDestFigObject()
Returns:
the destination fig object


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