org.argouml.uml.diagram.deployment.ui
Class FigMNode
java.lang.Object
|
+--FigNode
|
+--org.argouml.uml.diagram.ui.FigNodeModelElement
|
+--org.argouml.uml.diagram.deployment.ui.FigMNode
- 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 FigMNode
- extends FigNodeModelElement
Class to display graphics for a UML Node in a diagram.
- 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 |
Method Summary |
java.lang.Object |
clone()
|
java.awt.Dimension |
getMinimumSize()
|
boolean |
getUseTrapRect()
|
Selection |
makeSelection()
|
void |
mouseClicked(java.awt.event.MouseEvent me)
If the user double clicks on any part of this FigNode, pass it
down to one of the internal Figs. |
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 |
setEnclosingFig(Fig encloser)
Updates the modelelement container if the fig is moved in or
out another fig. |
void |
setLineColor(java.awt.Color c)
|
protected void |
updateStereotypeText()
Updates the text of the sterotype FigText. |
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, modelChanged, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paint, paintClarifiers, postLoad, propertyChange, propertySet, recovered, removed, renderingChanged, roleAdded, roleRemoved, setHandleBox, setItemUID, setName, setNameFig, setOwner, setShadowSize, setStereotype, setStereotypeFig, superTranslate, textEdited, updateBounds, updateListeners, updateNameText, 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 |
_cover
protected FigCube _cover
_test
protected FigRect _test
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
FigMNode
public FigMNode()
FigMNode
public FigMNode(GraphModel gm,
java.lang.Object node)
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 c)
makeSelection
public Selection makeSelection()
- Overrides:
makeSelection
in class FigNodeModelElement
getMinimumSize
public java.awt.Dimension getMinimumSize()
setBounds
public void setBounds(int x,
int y,
int w,
int h)
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent me)
- Description copied from class:
FigNodeModelElement
- If the user double clicks on any part of this FigNode, pass it
down to one of the internal Figs. This allows the user to
initiate direct text editing.
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
- Overrides:
mouseClicked
in class FigNodeModelElement
setEnclosingFig
public void setEnclosingFig(Fig encloser)
- Description copied from class:
FigNodeModelElement
- Updates the modelelement container if the fig is moved in or
out another fig. If this fig doesn't have an enclosing fig
anymore, the namespace of the diagram will be the owning
modelelement. If this fig is moved inside another
FigNodeModelElement the owner of that fignodemodelelement will
be the owning modelelement.
- Overrides:
setEnclosingFig
in class FigNodeModelElement
- See Also:
Fig#setEnclosingFig(Fig)
updateStereotypeText
protected void updateStereotypeText()
- Description copied from class:
FigNodeModelElement
- Updates the text of the sterotype FigText. Override in subclasses to get
wanted behaviour.
TODO: remove all 'misuses' of the stereotype figtexts (like in
FigInterface)
- Overrides:
updateStereotypeText
in class FigNodeModelElement
getUseTrapRect
public boolean getUseTrapRect()