org.argouml.uml.diagram.state.ui
Class UMLStateDiagram
java.lang.Object
|
+--Diagram
|
+--org.argouml.ui.ArgoDiagram
|
+--org.argouml.uml.diagram.ui.UMLDiagram
|
+--org.argouml.uml.diagram.state.ui.UMLStateDiagram
- public class UMLStateDiagram
- extends UMLDiagram
- See Also:
- Serialized Form
Fields inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
_actionBroom, _actionCircle, _actionInk, _actionLine, _actionPoly, _actionRectangle, _actionRRectangle, _actionSelect, _actionSpline, _actionText, _diagramName, _namespace, cat |
Constructor Summary |
UMLStateDiagram()
this constructor is used to build a dummy state diagram so
that a project will load properly. |
UMLStateDiagram(MNamespace m,
MStateMachine sm)
|
Method Summary |
protected static java.lang.String |
getNewDiagramName()
|
MModelElement |
getOwner()
The owner of a statediagram is the statediagram it's showing. |
MStateMachine |
getStateMachine()
|
protected java.lang.Object[] |
getUmlActions()
Get the actions from which to create a toolbar or equivilent
graphic triggers |
void |
initialize(java.lang.Object o)
Called by the PGML parser to initialize the statediagram. |
void |
removed(MElementEvent e)
This diagram listens to NSUML events from its Statemachine;
When the Statemachine is removed, we also want to delete this
diagram too. |
void |
setStateMachine(MStateMachine sm)
|
void |
setup(MNamespace m,
MStateMachine sm)
method to perform a number of important initializations of a
StateDiagram. |
Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
getActions, getClassAndModelID, getNamespace, getToolBar, initToolBar, listRoleItemSet, propertySet, recovered, removeAsTarget, roleAdded, roleRemoved, setAsTarget, setName, setNamespace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_actionState
protected static javax.swing.Action _actionState
_actionCompositeState
protected static javax.swing.Action _actionCompositeState
_actionStartPseudoState
protected static javax.swing.Action _actionStartPseudoState
_actionFinalPseudoState
protected static javax.swing.Action _actionFinalPseudoState
_actionBranchPseudoState
protected static javax.swing.Action _actionBranchPseudoState
_actionForkPseudoState
protected static javax.swing.Action _actionForkPseudoState
_actionJoinPseudoState
protected static javax.swing.Action _actionJoinPseudoState
_actionShallowHistoryPseudoState
protected static javax.swing.Action _actionShallowHistoryPseudoState
_actionDeepHistoryPseudoState
protected static javax.swing.Action _actionDeepHistoryPseudoState
_actionTransition
protected static javax.swing.Action _actionTransition
_StateDiagramSerial
protected static int _StateDiagramSerial
UMLStateDiagram
public UMLStateDiagram()
- this constructor is used to build a dummy state diagram so
that a project will load properly.
UMLStateDiagram
public UMLStateDiagram(MNamespace m,
MStateMachine sm)
getOwner
public MModelElement getOwner()
- The owner of a statediagram is the statediagram it's showing.
- Overrides:
getOwner
in class UMLDiagram
initialize
public void initialize(java.lang.Object o)
- Called by the PGML parser to initialize the statediagram. First the
parser creates a statediagram via the default constructor. Then this
method is called.
- Overrides:
initialize
in class UMLDiagram
- See Also:
org.tigris.gef.base.Diagram#initialize(Object)
setup
public void setup(MNamespace m,
MStateMachine sm)
- method to perform a number of important initializations of a
StateDiagram.
each diagram type has a similar UMLxxxDiagram class.
- Parameters:
m
- MClass from the model in NSUML...connects the class to
the State diagram.sm
- MStateMachine from the model in NSUML...
getStateMachine
public MStateMachine getStateMachine()
setStateMachine
public void setStateMachine(MStateMachine sm)
- Parameters:
sm
-
getUmlActions
protected java.lang.Object[] getUmlActions()
- Get the actions from which to create a toolbar or equivilent
graphic triggers
- Specified by:
getUmlActions
in class UMLDiagram
getNewDiagramName
protected static java.lang.String getNewDiagramName()
removed
public void removed(MElementEvent e)
- This diagram listens to NSUML events from its Statemachine;
When the Statemachine is removed, we also want to delete this
diagram too.
- Overrides:
removed
in class UMLDiagram