|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.Diagram
org.argouml.ui.ArgoDiagram
org.argouml.uml.diagram.ui.UMLDiagram
org.argouml.uml.diagram.state.ui.UMLStateDiagram
The correct name for this class is "UMLStatechartDiagram". See issue 2306.
Field Summary | |
private Action |
actionBranchPseudoState
|
private Action |
actionCompositeState
|
private Action |
actionDeepHistoryPseudoState
|
private Action |
actionFinalPseudoState
|
private Action |
actionForkPseudoState
|
private Action |
actionJoinPseudoState
|
private Action |
actionJunctionPseudoState
|
private Action |
actionShallowHistoryPseudoState
|
private Action |
actionStartPseudoState
|
private Action |
actionState
|
private Action |
actionStubState
|
private Action |
actionSubmachineState
|
private Action |
actionSynchState
|
private Action |
actionTransition
|
private static Logger |
LOG
Logger. |
private Object |
theStateMachine
this diagram needs to be deleted when its statemachine is deleted. |
Fields inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
|
Fields inherited from class org.argouml.ui.ArgoDiagram |
|
Fields inherited from class org.tigris.gef.base.Diagram |
_comments, _name, _toolBar, NAME_KEY, SCALE_KEY |
Constructor Summary | |
UMLStateDiagram()
This constructor is used to build a dummy statechart diagram so that a project will load properly. |
|
UMLStateDiagram(Object namespace,
Object sm)
Constructor. |
Method Summary | |
protected Action |
getActionBranchPseudoState()
|
protected Action |
getActionCompositeState()
|
protected Action |
getActionDeepHistoryPseudoState()
|
protected Action |
getActionFinalPseudoState()
|
protected Action |
getActionForkPseudoState()
|
protected Action |
getActionJoinPseudoState()
|
protected Action |
getActionJunctionPseudoState()
|
protected Action |
getActionShallowHistoryPseudoState()
|
protected Action |
getActionStartPseudoState()
|
protected Action |
getActionState()
|
protected Action |
getActionStubState()
|
protected Action |
getActionSubmachineState()
|
protected Action |
getActionSynchState()
|
protected Action |
getActionTransition()
|
String |
getLabelName()
|
protected String |
getNewDiagramName()
Creates a name for the diagram. |
Object |
getOwner()
The owner of a statechart diagram is the statechart diagram it's showing. |
Object |
getStateMachine()
|
protected Object[] |
getUmlActions()
Get the actions from which to create a toolbar or equivalent graphic triggers. |
void |
initialize(Object o)
Called by the PGML parser to initialize the statechart diagram. |
boolean |
needsToBeRemoved()
This method shall indicate if the diagram needs to be removed because the modelelements on which it depends are removed. |
void |
setStateMachine(Object sm)
|
void |
setup(Object namespace,
Object sm)
Method to perform a number of important initializations of a StateDiagram. |
Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
deselectAllTools, deselectOtherTools, getActions, getClassAndModelID, getJToolBar, getNamespace, getNextDiagramSerial, initToolBar, makeCreateAssociationAction, makeCreateEdgeAction, makeCreateNodeAction, propertyChange, removeAsTarget, resetDiagramSerial, setAsTarget, setNamespace |
Methods inherited from class org.argouml.ui.ArgoDiagram |
damage, getContainingFig, getEdges, getItemUID, getNodes, getVetoMessage, setItemUID, setName, toString |
Methods inherited from class org.tigris.gef.base.Diagram |
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, bringForward, bringToFront, countContained, edgeAdded, edgeRemoved, elements, elementsIn, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getComments, getGraphController, getGraphModel, getLayer, getName, getScale, getShowSingleMultiplicity, getToolBar, graphChanged, hit, nodeAdded, nodeRemoved, postLoad, postSave, preSave, presentationFor, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, reorder, sendBackward, sendToBack, setComments, setGraphModel, setLayer, setScale, setShowSingleMultiplicity, setToolBar |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final Logger LOG
private Object theStateMachine
private Action actionStubState
private Action actionState
private Action actionSynchState
private Action actionSubmachineState
private Action actionCompositeState
private Action actionStartPseudoState
private Action actionFinalPseudoState
private Action actionBranchPseudoState
private Action actionForkPseudoState
private Action actionJoinPseudoState
private Action actionShallowHistoryPseudoState
private Action actionDeepHistoryPseudoState
private Action actionTransition
private Action actionJunctionPseudoState
Constructor Detail |
public UMLStateDiagram()
public UMLStateDiagram(Object namespace, Object sm)
namespace
- the NameSpace for the new diagramsm
- the StateMachineMethod Detail |
public Object getOwner()
getOwner
in class UMLDiagram
UMLDiagram.getOwner()
public void initialize(Object o)
initialize
in class UMLDiagram
Diagram.initialize(Object)
public void setup(Object namespace, Object sm)
Each diagram type has a similar UMLxxxDiagram class.
Changed lay from LayerPerspective to LayerPerspectiveMutable. This class is a child of LayerPerspective and was implemented to correct some difficulties in changing the model. lay is used mainly in LayerManager(GEF) to control the adding, changing and deleting layers on the diagram...
namespace
- Class from the UML model...connects the class to
the Statechart diagram.sm
- StateMachine from the UML modelpublic Object getStateMachine()
public void setStateMachine(Object sm)
sm
- Set the StateMachine for this diagram.protected Object[] getUmlActions()
getUmlActions
in class UMLDiagram
UMLDiagram.getUmlActions()
protected String getNewDiagramName()
public String getLabelName()
getLabelName
in class UMLDiagram
UMLDiagram.getLabelName()
protected Action getActionBranchPseudoState()
protected Action getActionCompositeState()
protected Action getActionDeepHistoryPseudoState()
protected Action getActionFinalPseudoState()
protected Action getActionForkPseudoState()
protected Action getActionJoinPseudoState()
protected Action getActionJunctionPseudoState()
protected Action getActionShallowHistoryPseudoState()
protected Action getActionStartPseudoState()
protected Action getActionState()
protected Action getActionSynchState()
protected Action getActionSubmachineState()
protected Action getActionStubState()
protected Action getActionTransition()
public boolean needsToBeRemoved()
UMLDiagram
Matters get more complicated for e.g. a Statechart Diagram, which also depends on its context (the represented modelelement). Hence such a diagram needs to override this method.
needsToBeRemoved
in class UMLDiagram
UMLDiagram.needsToBeRemoved()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |