org.argouml.uml.diagram.deployment.ui
Class UMLDeploymentDiagram

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.deployment.ui.UMLDeploymentDiagram
All Implemented Interfaces:
EventListener, org.tigris.gef.graph.GraphListener, PropertyChangeListener, Serializable

public class UMLDeploymentDiagram
extends UMLDiagram

The base class of the deployment diagram.

Defines the toolbar, provides for its initialization and provides constructors for a top level diagram and one within a defined namespace.

See Also:
Serialized Form

Field Summary
private  Action actionAggregation
           
private  Action actionAssociation
           
private  Action actionComposition
           
private  Action actionMAbstraction
           
private  Action actionMAssociation
           
private  Action actionMClass
           
private  Action actionMComponent
           
private  Action actionMComponentInstance
           
private  Action actionMDependency
           
private  Action actionMGeneralization
           
private  Action actionMInterface
           
private  Action actionMLink
           
private  Action actionMNode
           
private  Action actionMNodeInstance
           
private  Action actionMObject
           
private  Action actionUniAggregation
           
private  Action actionUniAssociation
           
private  Action actionUniComposition
           
private static Logger LOG
           
(package private) static long serialVersionUID
           
 
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
UMLDeploymentDiagram()
          Constructor.
UMLDeploymentDiagram(Object namespace)
           
 
Method Summary
protected  Action getActionAggregation()
           
protected  Action getActionAssociation()
           
protected  Action getActionComposition()
           
protected  Action getActionMAbstraction()
           
protected  Action getActionMAssociation()
           
protected  Action getActionMClass()
           
protected  Action getActionMComponent()
           
protected  Action getActionMComponentInstance()
           
protected  Action getActionMDependency()
           
protected  Action getActionMGeneralization()
           
protected  Action getActionMInterface()
           
protected  Action getActionMLink()
           
protected  Action getActionMNode()
           
protected  Action getActionMNodeInstance()
           
protected  Action getActionMObject()
           
protected  Action getActionUniAggregation()
           
protected  Action getActionUniAssociation()
           
protected  Action getActionUniComposition()
           
private  Object[] getAssociationActions()
           
 String getLabelName()
           
protected  String getNewDiagramName()
          Creates a new diagramname.
protected  Object[] getUmlActions()
          Get the actions from which to create a toolbar or equivilent graphic triggers.
 void setNamespace(Object handle)
          Method to perform a number of important initializations of a Deployment Diagram.
 
Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram
deselectAllTools, deselectOtherTools, getActions, getClassAndModelID, getJToolBar, getNamespace, getNextDiagramSerial, getOwner, initialize, initToolBar, makeCreateAssociationAction, makeCreateEdgeAction, makeCreateNodeAction, needsToBeRemoved, propertyChange, removeAsTarget, resetDiagramSerial, setAsTarget
 
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

actionMNode

private Action actionMNode

actionMNodeInstance

private Action actionMNodeInstance

actionMComponent

private Action actionMComponent

actionMComponentInstance

private Action actionMComponentInstance

actionMClass

private Action actionMClass

actionMInterface

private Action actionMInterface

actionMObject

private Action actionMObject

actionMDependency

private Action actionMDependency

actionMAssociation

private Action actionMAssociation

actionMLink

private Action actionMLink

actionAssociation

private Action actionAssociation

actionAggregation

private Action actionAggregation

actionComposition

private Action actionComposition

actionUniAssociation

private Action actionUniAssociation

actionUniAggregation

private Action actionUniAggregation

actionUniComposition

private Action actionUniComposition

actionMGeneralization

private Action actionMGeneralization

actionMAbstraction

private Action actionMAbstraction

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

UMLDeploymentDiagram

public UMLDeploymentDiagram()
Constructor.


UMLDeploymentDiagram

public UMLDeploymentDiagram(Object namespace)
Parameters:
namespace - the namespace for the new diagram
Method Detail

setNamespace

public void setNamespace(Object handle)
Method to perform a number of important initializations of a Deployment 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...

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

getUmlActions

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

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

getAssociationActions

private Object[] getAssociationActions()

getNewDiagramName

protected String getNewDiagramName()
Creates a new diagramname.

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()

getActionAggregation

protected Action getActionAggregation()
Returns:
Returns the actionAggregation.

getActionAssociation

protected Action getActionAssociation()
Returns:
Returns the actionAssociation.

getActionComposition

protected Action getActionComposition()
Returns:
Returns the actionComposition.

getActionMAssociation

protected Action getActionMAssociation()
Returns:
Returns the actionMAssociation.

getActionMClass

protected Action getActionMClass()
Returns:
Returns the actionMClass.

getActionMComponent

protected Action getActionMComponent()
Returns:
Returns the actionMComponent.

getActionMComponentInstance

protected Action getActionMComponentInstance()
Returns:
Returns the actionMComponentInstance.

getActionMDependency

protected Action getActionMDependency()
Returns:
Returns the actionMDependency.

getActionMGeneralization

protected Action getActionMGeneralization()
Returns:
Returns the actionMGeneralization.

getActionMAbstraction

protected Action getActionMAbstraction()
Returns:
Returns the actionMAbstraction.

getActionMInterface

protected Action getActionMInterface()
Returns:
Returns the actionMInterface.

getActionMLink

protected Action getActionMLink()
Returns:
Returns the actionMLink.

getActionMNode

protected Action getActionMNode()
Returns:
Returns the actionMNode.

getActionMNodeInstance

protected Action getActionMNodeInstance()
Returns:
Returns the actionMNodeInstance.

getActionMObject

protected Action getActionMObject()
Returns:
Returns the actionMObject.

getActionUniAggregation

protected Action getActionUniAggregation()
Returns:
Returns the actionUniAggregation.

getActionUniAssociation

protected Action getActionUniAssociation()
Returns:
Returns the actionUniAssociation.

getActionUniComposition

protected Action getActionUniComposition()
Returns:
Returns the actionUniComposition.


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