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

java.lang.Object
  |
  +--org.tigris.gef.base.Diagram
        |
        +--org.argouml.ui.ArgoDiagram
              |
              +--org.argouml.uml.diagram.ui.UMLDiagram
                    |
                    +--org.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 _actionAssoc
           
protected static javax.swing.Action _actionClassifierRole
           
protected static javax.swing.Action _actionGeneralize
           
protected static int _CollaborationDiagramSerial
           
 
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, _lay, _name, _toolBar, vetoListeners
 
Constructor Summary
UMLCollaborationDiagram()
           
UMLCollaborationDiagram(ru.novosoft.uml.foundation.core.MNamespace m)
           
 
Method Summary
protected static java.lang.String getNewDiagramName()
          Creates a new diagramname.
 int getNumMessages()
           
protected  void initToolBar(javax.swing.JToolBar toolBar)
          Initialize the toolbar with buttons required for a use case diagram.
 void postLoad()
          After loading the diagram it?
 void setNamespace(ru.novosoft.uml.foundation.core.MNamespace m)
          method to perform a number of important initializations of a CollaborationDiagram. each diagram type has a similar UMLxxxDiagram class.
 
Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram
getClassAndModelID, getNamespace, getOwner, getToolBar, initialize, initToolBar, listRoleItemSet, propertySet, recovered, removed, roleAdded, roleRemoved, setName
 
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, 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

_actionClassifierRole

protected static javax.swing.Action _actionClassifierRole

_actionAssoc

protected static javax.swing.Action _actionAssoc

_actionGeneralize

protected static javax.swing.Action _actionGeneralize

_CollaborationDiagramSerial

protected static int _CollaborationDiagramSerial
Constructor Detail

UMLCollaborationDiagram

public UMLCollaborationDiagram()

UMLCollaborationDiagram

public UMLCollaborationDiagram(ru.novosoft.uml.foundation.core.MNamespace m)
Method Detail

getNumMessages

public int getNumMessages()

setNamespace

public void setNamespace(ru.novosoft.uml.foundation.core.MNamespace m)
method to perform a number of important initializations of a CollaborationDiagram. each diagram type has a similar UMLxxxDiagram class.
Overrides:
setNamespace in class UMLDiagram
Parameters:
m - MNamespace from the model in NSUML...

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.

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
Overrides:
postLoad in class org.tigris.gef.base.Diagram

getNewDiagramName

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


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