org.argouml.uml.ui
Class ActionUseCaseDiagram

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

public class ActionUseCaseDiagram
extends ActionAddDiagram

Action to create a new use case diagram.


Constructor Summary
ActionUseCaseDiagram()
          Constructor.
 
Method Summary
 ArgoDiagram createDiagram(java.lang.Object namespace)
          Deprecated. 
 ArgoDiagram createDiagram(java.lang.Object namespace, DiagramSettings settings)
          Create a new diagram.
 boolean isValidNamespace(java.lang.Object handle)
          Test if the given namespace is a valid namespace to add the diagram to.
 
Methods inherited from class org.argouml.uml.ui.ActionAddDiagram
actionPerformed, findNamespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionUseCaseDiagram

public ActionUseCaseDiagram()
Constructor.

Method Detail

createDiagram

@Deprecated
public ArgoDiagram createDiagram(java.lang.Object namespace)
Deprecated. 

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

createDiagram

public ArgoDiagram createDiagram(java.lang.Object namespace,
                                 DiagramSettings settings)
Description copied from class: ActionAddDiagram
Create a new diagram. To be implemented by subclasses. It will become abstract after 0.28 to enforce this requirement.

Overrides:
createDiagram in class ActionAddDiagram
Parameters:
namespace - owner of the diagram. May be a namespace, statemachine, or collaboration depending on the type of diagram.
settings - default rendering settings for all figs in the new diagram
Returns:
newly created diagram

isValidNamespace

public boolean isValidNamespace(java.lang.Object handle)
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:
handle - the namespace to check
Returns:
Returns true if valid.


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook