org.argouml.uml.diagram.ui
Class FigMessage

java.lang.Object
  |
  +--FigNode
        |
        +--org.argouml.uml.diagram.ui.FigNodeModelElement
              |
              +--org.argouml.uml.diagram.ui.FigMessage
All Implemented Interfaces:
ArgoEventListener, ArgoNotationEventListener, DelayedVChangeListener, java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, NotationContext, java.beans.PropertyChangeListener, java.beans.VetoableChangeListener

public class FigMessage
extends FigNodeModelElement

Class to display graphics for a UML collaboration in a diagram.

See Also:
Serialized Form

Field Summary
protected  int _arrowDirection
           
protected  FigPoly _figPoly
           
static java.util.Vector ARROW_DIRECTIONS
           
 int PADDING
           
 
Fields inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement
_bigPort, _enclosedFigs, _encloser, _name, _readyToEdit, _shadowSize, _stereo, checkSize, ITALIC_LABEL_FONT, LABEL_FONT, MARGIN, ROWHEIGHT, STEREOHEIGHT, suppressCalcBounds
 
Constructor Summary
FigMessage()
           
FigMessage(GraphModel gm, Layer lay, java.lang.Object node)
           
 
Method Summary
 void addPathItemToFigAssociationRole(Layer lay)
          add the FigMessage to the Path Items of its FigAssociationRole
 java.lang.Object clone()
           
 int getArrow()
           
 java.awt.Color getFillColor()
           
 boolean getFilled()
           
 java.awt.Color getLineColor()
           
 int getLineWidth()
           
 java.awt.Dimension getMinimumSize()
           
 void paint(java.awt.Graphics g)
           
 java.lang.String placeString()
          Reply text to be shown while placing node in diagram
 void renderingChanged()
          Rerenders the fig if needed.
 void setArrow(int direction)
           
 void setBounds(int x, int y, int w, int h)
           
 void setFillColor(java.awt.Color col)
           
 void setFilled(boolean f)
           
 void setLineColor(java.awt.Color col)
           
 void setLineWidth(int w)
           
protected  void textEdited(FigText ft)
          This method is called after the user finishes editing a text field that is in the FigNodeModelElement.
protected  void updateArrow()
          Determines the direction of the message arrow.
protected  void updateNameText()
          Updates the text of the name FigText.
 
Methods inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement
calcBounds, createFeatureIn, damage, delayedVetoableChange, delete, dispose, elementOrdering, enableSizeChecking, finalize, getContextNotation, getEnclosedFigs, getEnclosingFig, getItemUID, getNameFig, getPopUpActions, getShadowSize, getTipString, getUpdatedSize, hit, hitClarifier, isPartlyOwner, isPartlyOwner, keyPressed, keyReleased, keyTyped, listRoleItemSet, makeSelection, modelChanged, mouseClicked, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paintClarifiers, postLoad, propertyChange, propertySet, recovered, removed, roleAdded, roleRemoved, setEnclosingFig, setItemUID, setOwner, setShadowSize, updateBounds, updateListeners, updateStereotypeText, vetoableChange
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited, mousePressed, mouseReleased
 

Field Detail

PADDING

public int PADDING

ARROW_DIRECTIONS

public static java.util.Vector ARROW_DIRECTIONS

_figPoly

protected FigPoly _figPoly

_arrowDirection

protected int _arrowDirection
Constructor Detail

FigMessage

public FigMessage()

FigMessage

public FigMessage(GraphModel gm,
                  Layer lay,
                  java.lang.Object node)
Method Detail

placeString

public java.lang.String placeString()
Description copied from class: FigNodeModelElement
Reply text to be shown while placing node in diagram

Overrides:
placeString in class FigNodeModelElement

clone

public java.lang.Object clone()

setLineColor

public void setLineColor(java.awt.Color col)

getLineColor

public java.awt.Color getLineColor()

setFillColor

public void setFillColor(java.awt.Color col)

getFillColor

public java.awt.Color getFillColor()

setFilled

public void setFilled(boolean f)

getFilled

public boolean getFilled()

setLineWidth

public void setLineWidth(int w)

getLineWidth

public int getLineWidth()

setArrow

public void setArrow(int direction)

getArrow

public int getArrow()

getMinimumSize

public java.awt.Dimension getMinimumSize()

setBounds

public void setBounds(int x,
                      int y,
                      int w,
                      int h)

textEdited

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

Overrides:
textEdited in class FigNodeModelElement
java.beans.PropertyVetoException

updateArrow

protected void updateArrow()
Determines the direction of the message arrow. Deetermination of the type of arrow happens in modelchanged


addPathItemToFigAssociationRole

public void addPathItemToFigAssociationRole(Layer lay)
add the FigMessage to the Path Items of its FigAssociationRole


paint

public void paint(java.awt.Graphics g)
See Also:
org.tigris.gef.presentation.Fig#paint(Graphics)

updateNameText

protected void updateNameText()
Description copied from class: FigNodeModelElement
Updates the text of the name FigText.

Overrides:
updateNameText in class FigNodeModelElement
See Also:
FigNodeModelElement.updateNameText()

renderingChanged

public void renderingChanged()
Description copied from class: FigNodeModelElement
Rerenders the fig if needed. This functionality was originally the functionality of modelChanged but modelChanged takes the event now into account.

Overrides:
renderingChanged in class FigNodeModelElement
See Also:
FigNodeModelElement.renderingChanged()


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