org.argouml.uml.diagram.sequence.ui
Class UMLSequenceDiagram

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.sequence.ui.UMLSequenceDiagram
All Implemented Interfaces:
java.util.EventListener, org.tigris.gef.graph.GraphListener, ru.novosoft.uml.MElementListener, java.io.Serializable

public class UMLSequenceDiagram
extends UMLDiagram

The diagram for sequence diagrams. Totally rewritten for release 0.16

See Also:
Serialized Form

Field Summary
private  java.lang.Object[] _actions
           
private  boolean _isDerivedFromCollaboration
          Flag to indicate if this sequence diagram was derived from some collaboration or not.
private  org.apache.log4j.Logger _log
           
protected static int _SequenceDiagramSerial
           
 
Fields inherited from class org.argouml.uml.diagram.ui.UMLDiagram
_actionBroom, _actionCircle, _actionInk, _actionLine, _actionPoly, _actionRectangle, _actionRRectangle, _actionSelect, _actionSpline, _actionText, _diagramName, _namespace, cat
 
Fields inherited from class org.argouml.ui.ArgoDiagram
TheInstance
 
Fields inherited from class org.tigris.gef.base.Diagram
_comments, _name, _toolBar, NAME_KEY, SCALE_KEY
 
Constructor Summary
UMLSequenceDiagram()
          Constructs a new sequence diagram with a default name and NO namespace.
UMLSequenceDiagram(java.lang.Object collaboration)
           
 
Method Summary
 void cleanUp()
          Method called by Project.removeDiagram to cleanUp the mess in this diagram when the diagram is removed.
 java.lang.Object getNamespace()
           
protected static java.lang.String getNewDiagramName()
          Creates a new diagramname.
 java.lang.Object getOwner()
          Returns the owner of this diagram.
protected  java.lang.Object[] getUmlActions()
          Must return an array of actions via which the model can be manipulated.
 void setNamespace(java.lang.Object ns)
          UMLSequencediagram does not have a namespace.
 
Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram
deselectAllTools, deselectOtherTools, getActions, getClassAndModelID, getJToolBar, initialize, initToolBar, listRoleItemSet, propertySet, recovered, removeAsTarget, removed, roleAdded, roleRemoved, setAsTarget, setName
 
Methods inherited from class org.argouml.ui.ArgoDiagram
addChangeRegistryAsListener, damage, getContainingFig, getEdges, getItemUID, getNodes, getNodes, getVetoMessage, removeChangeRegistryAsListener, setItemUID, 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

_SequenceDiagramSerial

protected static int _SequenceDiagramSerial

_log

private org.apache.log4j.Logger _log

_actions

private java.lang.Object[] _actions

_isDerivedFromCollaboration

private boolean _isDerivedFromCollaboration
Flag to indicate if this sequence diagram was derived from some collaboration or not.

Constructor Detail

UMLSequenceDiagram

public UMLSequenceDiagram()
Constructs a new sequence diagram with a default name and NO namespace. namespaces are used to determine the 'owner' of the diagram for diagrams but that's plain misuse.


UMLSequenceDiagram

public UMLSequenceDiagram(java.lang.Object collaboration)
Method Detail

getOwner

public java.lang.Object getOwner()
Returns the owner of this diagram. In the case of sequencediagrams it's allways the root model.

Overrides:
getOwner in class UMLDiagram
See Also:
UMLDiagram.getOwner()

getNewDiagramName

protected static java.lang.String getNewDiagramName()
Creates a new diagramname.

Returns:
String

getUmlActions

protected java.lang.Object[] getUmlActions()

Must return an array of actions via which the model can be manipulated. To use the 'nested actions' feature (like the different association types on UMLClassDiagram) these nested actions must be in an array of their own.

In case of the sequence diagram this method must return the following actions

Specified by:
getUmlActions in class UMLDiagram
See Also:
UMLDiagram.getUmlActions()

getNamespace

public java.lang.Object getNamespace()
Overrides:
getNamespace in class UMLDiagram
See Also:
UMLDiagram.getNamespace()

setNamespace

public void setNamespace(java.lang.Object ns)
                  throws java.lang.UnsupportedOperationException
UMLSequencediagram does not have a namespace. This method throws therefore an UnsupportedOperationException

Overrides:
setNamespace in class UMLDiagram
Throws:
java.lang.UnsupportedOperationException
See Also:
UMLDiagram.setNamespace(java.lang.Object)

cleanUp

public void cleanUp()
Method called by Project.removeDiagram to cleanUp the mess in this diagram when the diagram is removed.



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