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, GraphListener, PropertyChangeListener, Relocatable, 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
 
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()
           
 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.
 boolean isRelocationAllowed(Object base)
          This function should return true if it is allowed to relocate this type of diagram to the given modelelement.
 boolean relocate(Object base)
          Relocate this diagram, e.g.
 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, getActions, getClassAndModelID, getDependentElement, getJToolBar, getNamespace, getNextDiagramSerial, getOwner, getSelectedAction, initialize, initToolBar, makeCreateAssociationAction, makeCreateAssociationClassAction, makeCreateAssociationEndAction, makeCreateEdgeAction, makeCreateNodeAction, manageDefault, propertyChange, resetDiagramSerial, setSelectedAction
 
Methods inherited from class org.argouml.ui.ArgoDiagram
damage, getContainingFig, getEdges, getItemUID, getNodes, getVetoMessage, presentationsFor, remove, repair, 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, 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
 

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 - Namespace from the model

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

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.

isRelocationAllowed

public boolean isRelocationAllowed(Object base)
Description copied from interface: Relocatable
This function should return true if it is allowed to relocate this type of diagram to the given modelelement.

Specified by:
isRelocationAllowed in interface Relocatable
Specified by:
isRelocationAllowed in class UMLDiagram
See Also:
UMLDiagram.isRelocationAllowed(java.lang.Object)

relocate

public boolean relocate(Object base)
Description copied from interface: Relocatable
Relocate this diagram, e.g. for a class diagram assign it a new namespace, e.g. for a statechart move it together with the statemachine to a new operation/classifier.

Precondition: isRelocationAllowed(base) is true.

Specified by:
relocate in interface Relocatable
Specified by:
relocate in class UMLDiagram
See Also:
UMLDiagram.relocate(java.lang.Object)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook