org.argouml.uml.diagram.collaboration.ui
Class UMLCollaborationDiagram

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

public class UMLCollaborationDiagram
extends UMLDiagram

See Also:
Serialized Form

Field Summary
protected static javax.swing.Action _actionAggregation
           
protected static javax.swing.Action _actionAssoc
           
protected static javax.swing.Action _actionAssociation
           
protected static javax.swing.Action _actionClassifierRole
           
protected static javax.swing.Action _actionComposition
           
protected static javax.swing.Action _actionDepend
           
protected static javax.swing.Action _actionGeneralize
           
protected static javax.swing.Action _actionUniAggregation
           
protected static javax.swing.Action _actionUniAssociation
           
protected static javax.swing.Action _actionUniComposition
           
protected static int _CollaborationDiagramSerial
           
private static org.apache.log4j.Logger cat
          for logging
 
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, _name, _toolBar, NAME_KEY, SCALE_KEY
 
Constructor Summary
UMLCollaborationDiagram()
           
UMLCollaborationDiagram(java.lang.Object namespace)
           
 
Method Summary
private  java.lang.Object[] getAssociationActions()
           
protected static java.lang.String getNewDiagramName()
          Creates a new diagramname.
 int getNumMessages()
           
protected  java.lang.Object[] getUmlActions()
          Get the actions from which to create a toolbar or equivilent graphic triggers
 void postLoad()
          After loading the diagram it?s necessary to connect every FigMessage to its FigAssociationRole.
 void setNamespace(java.lang.Object handle)
          Method to perform a number of important initializations of a CollaborationDiagram.
 
Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram
deselectAllTools, deselectOtherTools, getActions, getClassAndModelID, getJToolBar, getNamespace, getOwner, 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, 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

cat

private static final org.apache.log4j.Logger cat
for logging


_actionClassifierRole

protected static javax.swing.Action _actionClassifierRole

_actionAssoc

protected static javax.swing.Action _actionAssoc

_actionGeneralize

protected static javax.swing.Action _actionGeneralize

_actionAssociation

protected static javax.swing.Action _actionAssociation

_actionAggregation

protected static javax.swing.Action _actionAggregation

_actionComposition

protected static javax.swing.Action _actionComposition

_actionUniAssociation

protected static javax.swing.Action _actionUniAssociation

_actionUniAggregation

protected static javax.swing.Action _actionUniAggregation

_actionUniComposition

protected static javax.swing.Action _actionUniComposition

_actionDepend

protected static javax.swing.Action _actionDepend

_CollaborationDiagramSerial

protected static int _CollaborationDiagramSerial
Constructor Detail

UMLCollaborationDiagram

public UMLCollaborationDiagram()

UMLCollaborationDiagram

public UMLCollaborationDiagram(java.lang.Object namespace)
Method Detail

getNumMessages

public int getNumMessages()

setNamespace

public void setNamespace(java.lang.Object handle)
Method to perform a number of important initializations of a CollaborationDiagram.

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...

Overrides:
setNamespace in class UMLDiagram
Parameters:
handle - MNamespace from the model in NSUML...

getUmlActions

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

Specified by:
getUmlActions in class UMLDiagram

getAssociationActions

private java.lang.Object[] getAssociationActions()

postLoad

public void postLoad()
After loading the diagram it?s necessary to connect every FigMessage to its FigAssociationRole. This is done by adding the FigMessage to the PathItems of its FigAssociationRole


getNewDiagramName

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

Returns:
String


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