org.argouml.uml.ui
Class ActionDeploymentDiagram

java.lang.Object
  extended by UndoableAction
      extended by org.argouml.uml.ui.ActionAddDiagram
          extended by org.argouml.uml.ui.ActionDeploymentDiagram

public class ActionDeploymentDiagram
extends ActionAddDiagram

Action to trigger creation of a deployment diagram.


Constructor Summary
ActionDeploymentDiagram()
          Constructor.
 
Method Summary
 ArgoDiagram createDiagram(java.lang.Object namespace)
          Creates the diagram.
protected  java.lang.Object findNamespace()
          Find the right namespace for the diagram.
 boolean isValidNamespace(java.lang.Object namespace)
          Test if the given namespace is a valid namespace to add the diagram to.
 
Methods inherited from class org.argouml.uml.ui.ActionAddDiagram
actionPerformed, createDiagram
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionDeploymentDiagram

public ActionDeploymentDiagram()
Constructor.

Method Detail

createDiagram

public ArgoDiagram createDiagram(java.lang.Object namespace)
Description copied from class: ActionAddDiagram
Creates the diagram. Classes derived from this class should implement any specific behaviour to create the diagram.

Overrides:
createDiagram in class ActionAddDiagram
Parameters:
namespace - The namespace the UMLDiagram should get.
Returns:
UMLDiagram

isValidNamespace

public boolean isValidNamespace(java.lang.Object namespace)
Description copied from class: ActionAddDiagram
Test if the given namespace is a valid namespace to add the diagram to.

Specified by:
isValidNamespace in class ActionAddDiagram
Parameters:
namespace - the namespace to check
Returns:
Returns true if valid.

findNamespace

protected java.lang.Object findNamespace()
Description copied from class: ActionAddDiagram
Find the right namespace for the diagram.

Overrides:
findNamespace in class ActionAddDiagram
Returns:
the namespace or null


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook