org.argouml.uml.diagram.ui
Class FigAssociation

java.lang.Object
  |
  +--FigEdgePoly
        |
        +--org.argouml.uml.diagram.ui.FigEdgeModelElement
              |
              +--org.argouml.uml.diagram.ui.FigAssociation
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:
FigAssociationRole

public class FigAssociation
extends FigEdgeModelElement

See Also:
Serialized Form

Field Summary
protected  FigTextGroup _destGroup
          Group for the FigTexts concerning the dest association end
protected  FigText _destMult
           
protected  FigText _destOrdering
           
protected  FigText _destRole
           
protected  FigTextGroup _middleGroup
          Group for the FigTexts concerning the name and stereotype of the association itself.
(package private) static ArrowHead _NAV_AGGREGATE
           
(package private) static ArrowHead _NAV_COMP
           
protected  FigTextGroup _srcGroup
          Group for the FigTexts concerning the source association end
protected  FigText _srcMult
           
protected  FigText _srcOrdering
           
protected  FigText _srcRole
           
protected  ArrowHead destArrowHead
           
(package private) static long serialVersionUID
           
protected  ArrowHead sourceArrowHead
           
static boolean SUPPRESS_BIDIRECTIONAL_ARROWS
           
 
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
FigAssociation()
          Don't call this constructor directly.
FigAssociation(java.lang.Object edge, Layer lay)
           
 
Method Summary
protected  ArrowHead chooseArrowHead(java.lang.Object ak, boolean nav)
           
private  java.lang.String getOrderingName(java.lang.Object orderingKind)
          Returns the name of the OrderingKind.
 java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
           
protected  void modelChanged(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 association)
           
protected  void textEdited(FigText ft)
          This method is called after the user finishes editing a text field that is in the FigEdgeModelElement.
protected  void updateAbstract()
          Updates the name if modelchanged receives an "isAbstract" event
private  void updateEnd(FigText multiToUpdate, FigText roleToUpdate, FigText orderingToUpdate, java.lang.Object end)
           
 
Methods inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement
canEdit, damage, delayedVetoableChange, delete, dispose, finalize, getContextNotation, getDestination, getItemUID, getNameFig, getSource, getSquaredDistance, getStereotypeFig, getTipString, 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, setPoints, updateClassifiers, updateNameText, updateStereotypeText, vetoableChange
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 FigText _srcMult

_srcRole

protected FigText _srcRole

_destMult

protected FigText _destMult

_destRole

protected FigText _destRole

_srcOrdering

protected FigText _srcOrdering

_destOrdering

protected FigText _destOrdering

sourceArrowHead

protected ArrowHead sourceArrowHead

destArrowHead

protected ArrowHead destArrowHead

_NAV_AGGREGATE

static ArrowHead _NAV_AGGREGATE

_NAV_COMP

static ArrowHead _NAV_COMP

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
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,
                      Layer lay)
Method Detail

setOwner

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

textEdited

protected void textEdited(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
java.beans.PropertyVetoException

updateEnd

private void updateEnd(FigText multiToUpdate,
                       FigText roleToUpdate,
                       FigText orderingToUpdate,
                       java.lang.Object end)

modelChanged

protected void modelChanged(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 ArrowHead chooseArrowHead(java.lang.Object ak,
                                    boolean nav)

getPopUpActions

public java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
Overrides:
getPopUpActions in class FigEdgeModelElement

getOrderingName

private java.lang.String getOrderingName(java.lang.Object orderingKind)
Returns the name of the OrderingKind.

Returns:
"{ordered}", "{sorted}" or "" if null or "unordered"

updateAbstract

protected void updateAbstract()
Updates the name if modelchanged receives an "isAbstract" event


paint

public void paint(java.awt.Graphics g)


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