org.argouml.uml.diagram.activity.ui
Class UMLActivityDiagram

java.lang.Object
  extended byorg.tigris.gef.base.Diagram
      extended byorg.argouml.ui.ArgoDiagram
          extended byorg.argouml.uml.diagram.ui.UMLDiagram
              extended byorg.argouml.uml.diagram.activity.ui.UMLActivityDiagram
All Implemented Interfaces:
EventListener, org.tigris.gef.graph.GraphListener, PropertyChangeListener, Serializable

public class UMLActivityDiagram
extends UMLDiagram

The Activity diagram.

TODO: Finish the work on swimlanes, callstates, subactivity states.

See Also:
Serialized Form

Field Summary
private  Action actionCallState
           
private  Action actionFinalPseudoState
           
private  Action actionForkPseudoState
           
private  Action actionJoinPseudoState
           
private  Action actionJunctionPseudoState
           
private  Action actionNewSwimlane
           
private  Action actionObjectFlowState
           
private  Action actionStartPseudoState
           
private  Action actionState
           
private  Action actionSubactivityState
           
private  Action actionTransition
           
private static Logger LOG
          Logger.
 
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
UMLActivityDiagram()
          Constructor.
UMLActivityDiagram(Object m)
           
UMLActivityDiagram(Object namespace, Object agraph)
          Constructor.
 
Method Summary
protected  Action getActionCallState()
           
protected  Action getActionFinalPseudoState()
           
protected  Action getActionForkPseudoState()
           
protected  Action getActionJoinPseudoState()
           
protected  Action getActionJunctionPseudoState()
           
protected  Action getActionNewSwimlane()
           
protected  Action getActionObjectFlowState()
           
protected  Action getActionStartPseudoState()
           
protected  Action getActionState()
           
protected  Action getActionSubactivityState()
           
protected  Action getActionTransition()
           
 String getLabelName()
           
protected  String getNewDiagramName()
          Creates a new diagram name.
 Object getOwner()
          The default implementation for diagrams that have the namespace as their owner.
 Object getStateMachine()
           
protected  Object[] getUmlActions()
          Get the actions from which to create a toolbar or equivalent graphic triggers.
 void initialize(Object o)
           
 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 m, Object agraph)
          Method to perform a number of important initializations of an Activity Diagram.
 
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

LOG

private static final Logger LOG
Logger.


actionState

private Action actionState

actionStartPseudoState

private Action actionStartPseudoState

actionFinalPseudoState

private Action actionFinalPseudoState

actionJunctionPseudoState

private Action actionJunctionPseudoState

actionForkPseudoState

private Action actionForkPseudoState

actionJoinPseudoState

private Action actionJoinPseudoState

actionTransition

private Action actionTransition

actionObjectFlowState

private Action actionObjectFlowState

actionNewSwimlane

private Action actionNewSwimlane

actionCallState

private Action actionCallState

actionSubactivityState

private Action actionSubactivityState
Constructor Detail

UMLActivityDiagram

public UMLActivityDiagram()
Constructor.


UMLActivityDiagram

public UMLActivityDiagram(Object m)
Parameters:
m - the namespace for the diagram

UMLActivityDiagram

public UMLActivityDiagram(Object namespace,
                          Object agraph)
Constructor.

Parameters:
namespace - the namespace for the diagram
agraph - the ActivityGraph for the diagram
Method Detail

initialize

public void initialize(Object o)
Overrides:
initialize in class UMLDiagram
See Also:
Diagram.initialize(java.lang.Object)

setup

public void setup(Object m,
                  Object agraph)
Method to perform a number of important initializations of an Activity Diagram.

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... psager@tigris.org Jan. 24, 2002

Parameters:
m - Namespace from the model
agraph - ActivityGraph from the model

getOwner

public Object getOwner()
Description copied from class: UMLDiagram
The default implementation for diagrams that have the namespace as their owner.

Overrides:
getOwner in class UMLDiagram
Returns:
the namespace
See Also:
UMLDiagram.getOwner()

getStateMachine

public Object getStateMachine()
Returns:
the statemachine

setStateMachine

public void setStateMachine(Object sm)
Parameters:
sm - set the statemachine for this diagram

getUmlActions

protected Object[] getUmlActions()
Get the actions from which to create a toolbar or equivalent graphic triggers.

Specified by:
getUmlActions in class UMLDiagram
Returns:
the actions structure
See Also:
UMLDiagram.getUmlActions()

getNewDiagramName

protected String getNewDiagramName()
Creates a new diagram name.

Returns:
String

getLabelName

public String getLabelName()
Specified by:
getLabelName in class UMLDiagram
Returns:
a string that can be used as a label for this kind of diagram
See Also:
UMLDiagram.getLabelName()

getActionCallState

protected Action getActionCallState()
Returns:
Returns the actionCallState.

getActionFinalPseudoState

protected Action getActionFinalPseudoState()
Returns:
Returns the actionFinalPseudoState.

getActionForkPseudoState

protected Action getActionForkPseudoState()
Returns:
Returns the actionForkPseudoState.

getActionJoinPseudoState

protected Action getActionJoinPseudoState()
Returns:
Returns the actionJoinPseudoState.

getActionJunctionPseudoState

protected Action getActionJunctionPseudoState()
Returns:
Returns the actionJunctionPseudoState.

getActionNewSwimlane

protected Action getActionNewSwimlane()
Returns:
Returns the actionNewSwimlane.

getActionObjectFlowState

protected Action getActionObjectFlowState()
Returns:
Returns the actionObjectFlowState.

getActionStartPseudoState

protected Action getActionStartPseudoState()
Returns:
Returns the actionStartPseudoState.

getActionState

protected Action getActionState()
Returns:
Returns the actionState.

getActionSubactivityState

protected Action getActionSubactivityState()
Returns:
Returns the actionSubactivityState.

getActionTransition

protected Action getActionTransition()
Returns:
Returns the actionTransition.

needsToBeRemoved

public boolean needsToBeRemoved()
Description copied from class: UMLDiagram
This method shall indicate if the diagram needs to be removed because the modelelements on which it depends are removed. The default implementation is applicable to e.g. a ClassDiagram, which only depends on its namespace.

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.

Overrides:
needsToBeRemoved in class UMLDiagram
Returns:
true if the diagram needs to be removed
See Also:
UMLDiagram.needsToBeRemoved()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook