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

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

public abstract class FigState
extends FigStateVertex

The fig hierarchy should comply as much as possible to the hierarchy of the UML metamodel. Reason for this is to make sure that events from the model are not missed by the figs. The hierarchy of the states was not compliant to this. This resulted in a number of issues (issue 1430 for example). Therefore introduced a FigState and made FigCompositeState and FigSimpleState subclasses of this state.

Since:
Dec 30, 2002
See Also:
Serialized Form

Field Summary
protected  FigText _internal
           
 
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
FigState()
          Constructor for FigState.
FigState(GraphModel gm, java.lang.Object node)
          Constructor for FigState.
 
Method Summary
protected abstract  int getInitialHeight()
           
protected abstract  int getInitialWidth()
           
protected abstract  int getInitialX()
           
protected abstract  int getInitialY()
           
 Selection makeSelection()
           
protected  void modelChanged(MElementEvent mee)
          This is called aftern any part of the UML MModelElement has changed.
 void setOwner(java.lang.Object node)
           
protected  void updateInternal()
          Updates the text inside the state
protected  void updateListeners(java.lang.Object newOwner)
          Implementations of this method should register/unregister the fig for all (model)events.
 
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, placeString, postLoad, propertyChange, propertySet, recovered, removed, renderingChanged, roleAdded, roleRemoved, setItemUID, setShadowSize, textEdited, updateBounds, updateNameText, updateStereotypeText, vetoableChange
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited, mousePressed, mouseReleased
 

Field Detail

_internal

protected FigText _internal
Constructor Detail

FigState

public FigState()
Constructor for FigState.


FigState

public FigState(GraphModel gm,
                java.lang.Object node)
Constructor for FigState.

Parameters:
gm -
node -
Method Detail

setOwner

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

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
See Also:
org.argouml.uml.diagram.ui.FigNodeModelElement#modelChanged(ru.novosoft.uml.MElementEvent)

updateListeners

protected void updateListeners(java.lang.Object newOwner)
Description copied from class: FigNodeModelElement
Implementations of this method should register/unregister the fig for all (model)events. For FigNodeModelElement only the fig itself is registred as listening to events fired by the owner itself. But for, for example, FigClass the fig must also register for events fired by the operations and attributes of the owner.

Overrides:
updateListeners in class FigNodeModelElement
Parameters:
newOwner -
See Also:
FigNodeModelElement.updateListeners(java.lang.Object)

updateInternal

protected void updateInternal()
Updates the text inside the state


getInitialX

protected abstract int getInitialX()

getInitialY

protected abstract int getInitialY()

getInitialWidth

protected abstract int getInitialWidth()

getInitialHeight

protected abstract int getInitialHeight()

makeSelection

public Selection makeSelection()
Overrides:
makeSelection in class FigNodeModelElement


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