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

java.lang.Object
  |
  +--FigNode
        |
        +--org.argouml.uml.diagram.ui.FigNodeModelElement
              |
              +--org.argouml.uml.diagram.sequence.ui.FigSeqStimulus
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 FigSeqStimulus
extends FigNodeModelElement

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

See Also:
Serialized Form

Field Summary
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
FigSeqStimulus()
           
FigSeqStimulus(GraphModel gm, java.lang.Object node)
           
 
Method Summary
 void addPathItemToLink(Layer lay)
           
 java.lang.Object clone()
           
 void dispose()
           
 boolean getFilled()
           
 java.awt.Dimension getMinimumSize()
           
protected  void modelChanged(MElementEvent mee)
          This is called aftern any part of the UML MModelElement has changed.
 void mouseReleased(java.awt.event.MouseEvent me)
          if you move a FigSeqObject around and place it onto a FigSeqStimulus not the FigSeqObject gets the mouseReleased event but the FigSeqStimulus.
 java.lang.String ownerName()
           
 java.lang.String placeString()
          Reply text to be shown while placing node in diagram
 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)
           
protected  void textEdited(FigText ft)
          This method is called after the user finishes editing a text field that is in the FigNodeModelElement.
 
Methods inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement
calcBounds, createFeatureIn, damage, delayedVetoableChange, delete, elementOrdering, enableSizeChecking, finalize, getContextNotation, getEnclosedFigs, getEnclosingFig, getItemUID, getNameFig, getPopUpActions, getShadowSize, getTipString, getUpdatedSize, hit, hitClarifier, isPartlyOwner, isPartlyOwner, keyPressed, keyReleased, keyTyped, listRoleItemSet, makeSelection, mouseClicked, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paintClarifiers, postLoad, propertyChange, propertySet, recovered, removed, renderingChanged, roleAdded, roleRemoved, setEnclosingFig, setItemUID, setOwner, setShadowSize, updateBounds, updateListeners, updateNameText, 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
 

Field Detail

PADDING

public int PADDING

ARROW_DIRECTIONS

public static java.util.Vector ARROW_DIRECTIONS
Constructor Detail

FigSeqStimulus

public FigSeqStimulus()

FigSeqStimulus

public FigSeqStimulus(GraphModel gm,
                      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)

setFillColor

public void setFillColor(java.awt.Color col)

setFilled

public void setFilled(boolean f)

getFilled

public boolean getFilled()

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

ownerName

public java.lang.String ownerName()

modelChanged

protected void modelChanged(MElementEvent mee)
Description copied from class: FigNodeModelElement
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 FigNodeModelElement

addPathItemToLink

public void addPathItemToLink(Layer lay)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me)
if you move a FigSeqObject around and place it onto a FigSeqStimulus not the FigSeqObject gets the mouseReleased event but the FigSeqStimulus. For this case, the diagram has to be replaced, too.


dispose

public void dispose()
Overrides:
dispose in class FigNodeModelElement
See Also:
org.tigris.gef.presentation.Fig#dispose()


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