|
|||||||||||
| 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 UML Statechart diagram.
The correct name for this class would be "UMLStatechartDiagram". See issue 2306.
| Field Summary |
| 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 machine)
Constructor. |
|
| Method Summary | |
protected Action |
getActionBranchPseudoState()
Deprecated. use getActionChoicePseudoState |
protected Action |
getActionChoicePseudoState()
|
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()
|
Object |
getDependentElement()
This method shall return any UML modelelements that should be deleted when the diagram gets deleted, or null if there are none. |
String |
getLabelName()
|
protected String |
getNewDiagramName()
Creates a name for the diagram. |
Object |
getOwner()
The owner of a statechart diagram is the statemachine 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 |
isRelocationAllowed(Object base)
This function should return true if it is allowed to relocate this type of diagram to the given modelelement. |
void |
propertyChange(PropertyChangeEvent evt)
This diagram listens to events from its namespace ModelElement; when the modelelement is removed, we also want to delete this diagram. |
boolean |
relocate(Object base)
Relocate this diagram, e.g. |
void |
setStateMachine(Object sm)
|
void |
setup(Object namespace,
Object machine)
Method to perform a number of important initializations of a StateDiagram. |
| Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
deselectAllTools, getActions, getClassAndModelID, getJToolBar, getNamespace, getNextDiagramSerial, getSelectedAction, initToolBar, makeCreateAssociationAction, makeCreateAssociationClassAction, makeCreateAssociationEndAction, makeCreateEdgeAction, makeCreateNodeAction, manageDefault, resetDiagramSerial, setNamespace, setSelectedAction |
| Methods inherited from class org.argouml.ui.ArgoDiagram |
damage, getContainingFig, getEdges, getItemUID, getNodes, getVetoMessage, presentationsFor, remove, repair, setItemUID, setName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UMLStateDiagram()
public UMLStateDiagram(Object namespace,
Object machine)
namespace - the NameSpace for the new diagrammachine - the StateMachine for the new diagram| Method Detail |
public Object getOwner()
getOwner in class UMLDiagramUMLDiagram.getOwner()public void initialize(Object o)
initialize in class UMLDiagramDiagram.initialize(Object)
public void setup(Object namespace,
Object machine)
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.machine - StateMachine from the UML modelpublic void propertyChange(PropertyChangeEvent evt)
UMLDiagram
There is also a risk that if this diagram was the one shown in
the diagram panel, then it will remain after it has been
deleted. So we need to deselect this diagram.
There are other things to take care of, so all this is delegated to
Project.moveToTrash(Object).
propertyChange in interface PropertyChangeListenerpropertyChange in class UMLDiagramUMLDiagram.propertyChange(java.beans.PropertyChangeEvent)public Object getStateMachine()
public void setStateMachine(Object sm)
sm - Set the StateMachine for this diagram.protected Object[] getUmlActions()
getUmlActions in class UMLDiagramUMLDiagram.getUmlActions()protected String getNewDiagramName()
public String getLabelName()
getLabelName in class UMLDiagramUMLDiagram.getLabelName()protected Action getActionBranchPseudoState()
protected Action getActionChoicePseudoState()
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 Object getDependentElement()
UMLDiagram
getDependentElement in class UMLDiagramUMLDiagram.getDependentElement()public boolean isRelocationAllowed(Object base)
Relocatable
isRelocationAllowed in interface RelocatableisRelocationAllowed in class UMLDiagramUMLDiagram.isRelocationAllowed(java.lang.Object)public boolean relocate(Object base)
RelocatablePrecondition: isRelocationAllowed(base) is true.
relocate in interface Relocatablerelocate in class UMLDiagramUMLDiagram.relocate(java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |