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
Fields inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement |
_bigPort, _enclosedFigs, _encloser, _name, _readyToEdit, _shadowSize, _stereo, BUNDLE, checkSize, ITALIC_LABEL_FONT, LABEL_FONT, MARGIN, POPUP_ADD_OFFSET, ROWHEIGHT, SHADOW_COLOR_ALPHA, SHADOW_COLOR_VALUE, STEREOHEIGHT, suppressCalcBounds |
Constructor Summary |
FigState()
Constructor for FigState. |
FigState(GraphModel gm,
java.lang.Object node)
Constructor for FigState. |
Methods inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement |
addFig, calcBounds, createFeatureIn, damage, delayedVetoableChange, delete, dispose, elementOrdering, enableSizeChecking, finalize, getContextNotation, getEnclosedFigs, getEnclosingFig, getItemUID, getName, getNameFig, getPopUpActions, getShadowSize, getStereotype, getStereotypeFig, getTipString, getUpdatedSize, hit, hitClarifier, isPartlyOwner, isPartlyOwner, keyPressed, keyReleased, keyTyped, listRoleItemSet, mouseClicked, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paint, paintClarifiers, placeString, postLoad, propertyChange, propertySet, recovered, removed, renderingChanged, roleAdded, roleRemoved, setHandleBox, setItemUID, setName, setNameFig, setShadowSize, setStereotype, setStereotypeFig, superTranslate, 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 |
_internal
protected FigText _internal
FigState
public FigState()
- Constructor for FigState.
FigState
public FigState(GraphModel gm,
java.lang.Object node)
- Constructor for FigState.
- Parameters:
gm
- node
-
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