org.argouml.uml.diagram.state.ui
Class FigJunctionState
java.lang.Object
FigNode
org.argouml.uml.diagram.ui.FigNodeModelElement
org.argouml.uml.diagram.state.ui.FigStateVertex
org.argouml.uml.diagram.state.ui.FigJunctionState
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.awt.event.MouseListener, java.beans.PropertyChangeListener, java.beans.VetoableChangeListener, java.util.EventListener, ArgoEventListener, ArgoDiagramAppearanceEventListener, ArgoNotationEventListener, Highlightable, DelayedVChangeListener, DiagramElement, PathContainer, ArgoFig, Clarifiable, StereotypeStyled, IItemUID
public class FigJunctionState
- extends FigStateVertex
Class to display graphics for a UML Junction State
in e.g. a statechart diagram - the diamond.
Fields inherited from interface org.argouml.uml.diagram.ui.ArgoFig |
DEBUG, DEBUG_COLOR, FILL_COLOR, INVISIBLE_LINE_COLOR, LINE_COLOR, LINE_WIDTH, ROWHEIGHT, SOLID_FILL_COLOR, STEREOHEIGHT, TEXT_COLOR, X0, Y0 |
Methods inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement |
addElementListener, addElementListener, addElementListener, addEnclosedFig, allowRemoveFromDiagram, bindPort, buildModifierPopUp, buildShowPopUp, buildVisibilityPopUp, calcBounds, classNameAndBounds, createBigPortFig, createContainedModelElement, createStereotypeFig, delayedVetoableChange, deleteFromModel, determineDefaultPathVisible, diagramFontChanged, displace, enableSizeChecking, getBigPort, getDiElement, getEnclosedFigs, getEncloser, getEnclosingFig, getItemUID, getMinimumSize, getName, getNameBounds, getNameFig, getNameFigFontStyle, getNotationProviderType, getNotationSettings, getPopUpActions, getPopupAddOffset, getProject, getRemoveDelegate, getSettings, getStereotypeCount, getStereotypeFig, getStereotypeStyle, getStereotypeView, getTipString, hit, hitClarifier, initNotationProviders, isCheckSize, isDragConnectable, isEditable, isPartlyOwner, isPartlyOwner, isPathVisible, isReadyToEdit, isSingleTarget, keyPressed, keyReleased, keyTyped, modelChanged, moveIntoComponent, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paintClarifiers, placeString, propertyChange, removeAllElementListeners, removeElementListener, removeEnclosedFig, removeFromDiagram, removeFromDiagramImpl, renderingChanged, setBigPort, setBoundsImpl, setDiElement, setEditable, setEncloser, setItemUID, setLayer, setName, setNameFig, setOwner, setPathVisible, setProject, setReadyToEdit, setSettings, setStereotypeStyle, setStereotypeView, setSuppressCalcBounds, setVisible, showHelp, textEdited, textEditStarted, updateBounds, updateElementListeners, updateFont, updateLayout, updateListeners, updateNameText, updateStereotypeIcon, updateStereotypeText, vetoableChange |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseListener |
mouseEntered, mouseExited, mousePressed, mouseReleased |
FigJunctionState
public FigJunctionState(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings)
- Construct a new FigJunctionState.
- Parameters:
owner
- owning UML elementbounds
- position and sizesettings
- rendering settings
clone
public java.lang.Object clone()
- Description copied from class:
FigNodeModelElement
- Clone this figure. After the base clone method has been called determine
which child figs of the clone represent the name, stereotype and port.
TODO: enclosedFigs, encloser and eventSenders may also need to be cloned.
- Overrides:
clone
in class FigNodeModelElement
- Returns:
- the cloned figure
- See Also:
Object.clone()
isResizable
public boolean isResizable()
- Initial states are fixed size.
- Returns:
- false
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)
isFilled
public boolean isFilled()
setLineWidth
public void setLineWidth(int w)
- Overrides:
setLineWidth
in class FigNodeModelElement
getLineWidth
public int getLineWidth()
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent me)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
- Overrides:
mouseClicked
in class FigNodeModelElement
getClosestPoint
public java.awt.Point getClosestPoint(java.awt.Point anotherPt)
setStandardBounds
protected void setStandardBounds(int x,
int y,
int w,
int h)
- Override setStandardBounds to keep shapes looking right.
Replaces
FigNodeModelElement.setBoundsImpl(int, int, int, int)
.
- Overrides:
setStandardBounds
in class FigNodeModelElement
- Parameters:
x
- Desired X coordinate of upper left cornery
- Desired Y coordinate of upper left cornerw
- Desired width of the FigClassh
- Desired height of the FigClass- See Also:
org.tigris.gef.presentation.Fig#setBoundsImpl(int, int, int, int)