org.argouml.uml.diagram.state.ui
Class FigSimpleState

java.lang.Object
  |
  +--FigNode
        |
        +--org.argouml.uml.diagram.ui.FigNodeModelElement
              |
              +--org.argouml.uml.diagram.state.ui.FigStateVertex
                    |
                    +--org.argouml.uml.diagram.state.ui.FigState
                          |
                          +--org.argouml.uml.diagram.state.ui.FigSimpleState
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 FigSimpleState
extends FigState

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

See Also:
Serialized Form

Field Summary
protected static Category cat
           
 int MARGIN
           
 
Fields inherited from class org.argouml.uml.diagram.state.ui.FigState
_internal
 
Fields inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement
_bigPort, _enclosedFigs, _encloser, _name, _readyToEdit, _shadowSize, _stereo, checkSize, ITALIC_LABEL_FONT, LABEL_FONT, ROWHEIGHT, STEREOHEIGHT, suppressCalcBounds
 
Constructor Summary
FigSimpleState()
           
FigSimpleState(GraphModel gm, java.lang.Object node)
           
 
Method Summary
 java.lang.Object clone()
           
 java.awt.Color getFillColor()
           
 boolean getFilled()
           
protected  int getInitialHeight()
           
protected  int getInitialWidth()
           
protected  int getInitialX()
           
protected  int getInitialY()
           
 java.awt.Color getLineColor()
           
 int getLineWidth()
           
 java.awt.Dimension getMinimumSize()
           
 Selection makeSelection()
           
 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)
           
 void setLineWidth(int w)
           
 void setOwner(java.lang.Object node)
           
 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.state.ui.FigState
modelChanged, updateInternal, updateListeners
 
Methods inherited from class org.argouml.uml.diagram.state.ui.FigStateVertex
setEnclosingFig
 
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, mouseClicked, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paintClarifiers, postLoad, propertyChange, propertySet, recovered, removed, renderingChanged, roleAdded, roleRemoved, setItemUID, setShadowSize, updateBounds, 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, mouseReleased
 

Field Detail

cat

protected static Category cat

MARGIN

public final int MARGIN
See Also:
Constant Field Values
Constructor Detail

FigSimpleState

public FigSimpleState()

FigSimpleState

public FigSimpleState(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()

makeSelection

public Selection makeSelection()
Overrides:
makeSelection in class FigState

setOwner

public void setOwner(java.lang.Object node)
Overrides:
setOwner in class FigState

getMinimumSize

public java.awt.Dimension getMinimumSize()

setBounds

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

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()

textEdited

public 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

getInitialHeight

protected int getInitialHeight()
Specified by:
getInitialHeight in class FigState
See Also:
FigState.getInitialHeight()

getInitialWidth

protected int getInitialWidth()
Specified by:
getInitialWidth in class FigState
See Also:
FigState.getInitialWidth()

getInitialX

protected int getInitialX()
Specified by:
getInitialX in class FigState
See Also:
FigState.getInitialX()

getInitialY

protected int getInitialY()
Specified by:
getInitialY in class FigState
See Also:
FigState.getInitialY()


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