org.argouml.uml.diagram.state.ui
Class UMLStateDiagram

java.lang.Object
  |
  +--org.tigris.gef.base.Diagram
        |
        +--org.argouml.ui.ArgoDiagram
              |
              +--org.argouml.uml.diagram.ui.UMLDiagram
                    |
                    +--org.argouml.uml.diagram.state.ui.UMLStateDiagram
All Implemented Interfaces:
java.util.EventListener, org.tigris.gef.graph.GraphListener, ru.novosoft.uml.MElementListener, java.io.Serializable

public class UMLStateDiagram
extends UMLDiagram

See Also:
Serialized Form

Field Summary
protected static javax.swing.Action _actionBranchPseudoState
           
protected static javax.swing.Action _actionCompositeState
           
protected static javax.swing.Action _actionDeepHistoryPseudoState
           
protected static javax.swing.Action _actionFinalPseudoState
           
protected static javax.swing.Action _actionForkPseudoState
           
protected static javax.swing.Action _actionJoinPseudoState
           
protected static javax.swing.Action _actionShallowHistoryPseudoState
           
protected static javax.swing.Action _actionStartPseudoState
           
protected static javax.swing.Action _actionState
           
protected static javax.swing.Action _actionTransition
           
protected static int _StateDiagramSerial
           
protected static org.apache.log4j.Category cat
           
 
Fields inherited from class org.argouml.uml.diagram.ui.UMLDiagram
_actionBroom, _actionCircle, _actionInk, _actionLine, _actionPoly, _actionRectangle, _actionRRectangle, _actionSelect, _actionSpline, _actionText, _diagramName, _namespace
 
Fields inherited from class org.argouml.ui.ArgoDiagram
TheInstance
 
Fields inherited from class org.tigris.gef.base.Diagram
_comments, _lay, _name, _toolBar, vetoListeners
 
Constructor Summary
UMLStateDiagram()
          this constructor is used to build a dummy state diagram so that a project will load properly.
UMLStateDiagram(ru.novosoft.uml.foundation.core.MNamespace m, ru.novosoft.uml.behavior.state_machines.MStateMachine sm)
           
 
Method Summary
protected static java.lang.String getNewDiagramName()
           
 ru.novosoft.uml.foundation.core.MModelElement getOwner()
           
 ru.novosoft.uml.behavior.state_machines.MStateMachine getStateMachine()
           
 void initialize(java.lang.Object o)
          Called by the PGML parser to initialize the statediagram.
protected  void initToolBar(javax.swing.JToolBar toolBar)
          Initialize the toolbar with buttons required for a use case diagram.
 void removed(ru.novosoft.uml.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(ru.novosoft.uml.behavior.state_machines.MStateMachine sm)
           
 void setup(ru.novosoft.uml.foundation.core.MNamespace m, ru.novosoft.uml.behavior.state_machines.MStateMachine sm)
          method to perform a number of important initializations of a StateDiagram. each diagram type has a similar UMLxxxDiagram class.
 
Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram
getClassAndModelID, getNamespace, getToolBar, initToolBar, listRoleItemSet, propertySet, recovered, roleAdded, roleRemoved, setName, setNamespace
 
Methods inherited from class org.argouml.ui.ArgoDiagram
addChangeRegistryAsListener, damage, getContainingFig, getEdges, getItemUID, getNodes, getVetoMessage, removeChangeRegistryAsListener, setItemUID
 
Methods inherited from class org.tigris.gef.base.Diagram
add, addVetoableChangeListener, bringForward, bringToFront, countContained, edgeAdded, edgeRemoved, elements, elementsIn, fireVetoableChange, fireVetoableChange, fireVetoableChange, getComments, getGraphController, getGraphModel, getLayer, getName, graphChanged, hit, nodeAdded, nodeRemoved, postLoad, postSave, preSave, presentationFor, remove, removeAll, removeVetoableChangeListener, reorder, sendBackward, sendToBack, setComments, setGraphModel, setLayer, setToolBar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static org.apache.log4j.Category cat

_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
Constructor Detail

UMLStateDiagram

public UMLStateDiagram()
this constructor is used to build a dummy state diagram so that a project will load properly.

UMLStateDiagram

public UMLStateDiagram(ru.novosoft.uml.foundation.core.MNamespace m,
                       ru.novosoft.uml.behavior.state_machines.MStateMachine sm)
Method Detail

getOwner

public ru.novosoft.uml.foundation.core.MModelElement getOwner()
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:
Diagram.initialize(Object)

setup

public void setup(ru.novosoft.uml.foundation.core.MNamespace m,
                  ru.novosoft.uml.behavior.state_machines.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 ru.novosoft.uml.behavior.state_machines.MStateMachine getStateMachine()

setStateMachine

public void setStateMachine(ru.novosoft.uml.behavior.state_machines.MStateMachine sm)
Parameters:
sm -  
m -  

initToolBar

protected void initToolBar(javax.swing.JToolBar toolBar)

Initialize the toolbar with buttons required for a use case diagram.

Overrides:
initToolBar in class UMLDiagram
Parameters:
toolBar - The toolbar to which to add the buttons.

getNewDiagramName

protected static java.lang.String getNewDiagramName()

removed

public void removed(ru.novosoft.uml.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


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook