org.argouml.uml.diagram.ui
Class FigAssociation

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.ui.FigAssociation
All Implemented Interfaces:
ArgoEventListener, ArgoNotationEventListener, java.lang.Cloneable, DelayedVChangeListener, java.util.EventListener, org.tigris.gef.ui.Highlightable, java.awt.event.KeyListener, ru.novosoft.uml.MElementListener, java.awt.event.MouseListener, NotationContext, org.tigris.gef.ui.PopupGenerator, java.beans.PropertyChangeListener, java.io.Serializable, java.beans.VetoableChangeListener
Direct Known Subclasses:
FigAssociationRole

public class FigAssociation
extends FigEdgeModelElement

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.tigris.gef.presentation.FigEdge
org.tigris.gef.presentation.FigEdge.PathItem
 
Field Summary
protected  FigTextGroup _destGroup
          Group for the FigTexts concerning the dest association end
protected  org.tigris.gef.presentation.FigText _destMult
           
protected  org.tigris.gef.presentation.FigText _destOrdering
           
protected  org.tigris.gef.presentation.FigText _destRole
           
protected  FigTextGroup _middleGroup
          Group for the FigTexts concerning the name and stereotype of the association itself.
protected  FigTextGroup _srcGroup
          Group for the FigTexts concerning the source association end
protected  org.tigris.gef.presentation.FigText _srcMult
           
protected  org.tigris.gef.presentation.FigText _srcOrdering
           
protected  org.tigris.gef.presentation.FigText _srcRole
           
protected  org.tigris.gef.presentation.ArrowHead destArrowHead
           
protected  org.tigris.gef.presentation.ArrowHead sourceArrowHead
           
static boolean SUPPRESS_BIDIRECTIONAL_ARROWS
           
 
Fields inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement
_name, _stereo, cat, ITALIC_LABEL_FONT, LABEL_FONT, MARGIN
 
Fields inherited from class org.tigris.gef.presentation.FigEdgePoly
_initiallyLaidOut
 
Fields inherited from class org.tigris.gef.presentation.FigEdge
_arrowHeadEnd, _arrowHeadStart, _destFigNode, _destPortFig, _fig, _highlight, _pathItems, _sourceFigNode, _sourcePortFig, _useNearest
 
Fields inherited from class org.tigris.gef.presentation.Fig
_allowsSaving, _context, _dashes, _displayed, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _shown, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, DASH_ARRAYS, DASHED_CHOICES, MIN_SIZE
 
Constructor Summary
FigAssociation()
          Don't call this constructor directly.
FigAssociation(java.lang.Object edge, org.tigris.gef.base.Layer lay)
           
 
Method Summary
protected  org.tigris.gef.presentation.ArrowHead chooseArrowHead(ru.novosoft.uml.foundation.data_types.MAggregationKind ak, boolean nav)
           
 void delete()
           
 java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
           
protected  void modelChanged(ru.novosoft.uml.MElementEvent e)
          This is called aftern any part of the UML MModelElement has changed.
 void paint(java.awt.Graphics g)
           
 void setOwner(java.lang.Object own)
           
protected  void textEdited(org.tigris.gef.presentation.FigText ft)
          This method is called after the user finishes editing a text field that is in the FigEdgeModelElement.
 
Methods inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement
canEdit, damage, delayedVetoableChange, dispose, finalize, getContextNotation, getDestination, getItemUID, getNameFig, getSource, getSquaredDistance, getStereotypeFig, getTipString, hit, hitClarifier, keyPressed, keyReleased, keyTyped, listRoleItemSet, makeSelection, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paintClarifiers, postLoad, propertyChange, propertySet, recovered, removed, renderingChanged, roleAdded, roleRemoved, setItemUID, updateClassifiers, updateStereotypeText, vetoableChange
 
Methods inherited from class org.tigris.gef.presentation.FigEdgePoly
computeRoute, findAvoidPt, insertPoint, layoutEdge, makeEdgeFig, moveVertex, routingRectPoint, segOK, setEndPoints, setInitiallyLaidOut, setPoints, tryRoute
 
Methods inherited from class org.tigris.gef.presentation.FigEdge
addPathItem, calcBounds, cleanUp, contains, getBetweenNearestPoints, getBounds, getDashed, getDestArrowHead, getDestFigNode, getDestPortFig, getFig, getFirstPoint, getHighlight, getLastPoint, getLineColor, getLineWidth, getNumPoints, getPathItem, getPathItemFig, getPathItemFigs, getPathItemsRaw, getPerimeterLength, getPoints, getPoints, getPrivateData, getSourceArrowHead, getSourceFigNode, getSourcePortFig, getXs, getYs, hitFig, intersects, isReshapable, isResizable, isRotatable, paintArrowHeads, paintHighlightLine, paintPathItems, removePathItem, removePathItem, setBetweenNearestPoints, setDashed, setDestArrowHead, setDestFigNode, setDestPortFig, setFig, setHighlight, setLineColor, setLineWidth, setNumPoints, 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, 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, getPreferedSize, getResource, getSize, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getY, initAnnotations, isAnnotation, isDisplayed, isLowerRightResizable, isMovable, OK, pointAlongPerimeter, postSave, preSave, print, 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, setPoints, setPoints, setResource, setSavingAllowed, setSize, setSize, setVisState, setWidth, setX, setY, startTrans, stuffBounds, translate, 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

SUPPRESS_BIDIRECTIONAL_ARROWS

public static boolean SUPPRESS_BIDIRECTIONAL_ARROWS

_srcGroup

protected FigTextGroup _srcGroup
Group for the FigTexts concerning the source association end


_destGroup

protected FigTextGroup _destGroup
Group for the FigTexts concerning the dest association end


_middleGroup

protected FigTextGroup _middleGroup
Group for the FigTexts concerning the name and stereotype of the association itself.


_srcMult

protected org.tigris.gef.presentation.FigText _srcMult

_srcRole

protected org.tigris.gef.presentation.FigText _srcRole

_destMult

protected org.tigris.gef.presentation.FigText _destMult

_destRole

protected org.tigris.gef.presentation.FigText _destRole

_srcOrdering

protected org.tigris.gef.presentation.FigText _srcOrdering

_destOrdering

protected org.tigris.gef.presentation.FigText _destOrdering

sourceArrowHead

protected org.tigris.gef.presentation.ArrowHead sourceArrowHead

destArrowHead

protected org.tigris.gef.presentation.ArrowHead destArrowHead
Constructor Detail

FigAssociation

public FigAssociation()
Don't call this constructor directly. It is public since this is necessary for loading. Use the FigAssociation(Object, Layer) constructor instead!


FigAssociation

public FigAssociation(java.lang.Object edge,
                      org.tigris.gef.base.Layer lay)
Method Detail

setOwner

public void setOwner(java.lang.Object own)
Overrides:
setOwner in class FigEdgeModelElement

textEdited

protected void textEdited(org.tigris.gef.presentation.FigText ft)
                   throws java.beans.PropertyVetoException
Description copied from class: FigEdgeModelElement
This method is called after the user finishes editing a text field that is in the FigEdgeModelElement. Determine which field and update the model. This class handles the name, subclasses should override to handle other text elements.

Overrides:
textEdited in class FigEdgeModelElement
Throws:
java.beans.PropertyVetoException

modelChanged

protected void modelChanged(ru.novosoft.uml.MElementEvent e)
Description copied from class: FigEdgeModelElement
This is called aftern any part of the UML MModelElement has changed. This method automatically updates the name FigText. Subclasses should override and update other parts.

Overrides:
modelChanged in class FigEdgeModelElement

chooseArrowHead

protected org.tigris.gef.presentation.ArrowHead chooseArrowHead(ru.novosoft.uml.foundation.data_types.MAggregationKind ak,
                                                                boolean nav)

getPopUpActions

public java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
Specified by:
getPopUpActions in interface org.tigris.gef.ui.PopupGenerator
Overrides:
getPopUpActions in class FigEdgeModelElement

paint

public void paint(java.awt.Graphics g)

delete

public void delete()
Overrides:
delete in class FigEdgeModelElement
See Also:
Fig.delete()


ArgoUML © 1996-2003 (20030829)ArgoUML Project HomeArgoUML Cookbook