org.argouml.uml.ui
Class ActionClassDiagram

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

public class ActionClassDiagram
extends ActionAddDiagram

Action to trigger creation of new class diagram.


Constructor Summary
ActionClassDiagram()
          Constructor.
 
Method Summary
 ArgoDiagram createDiagram(java.lang.Object ns)
          Deprecated. 
 ArgoDiagram createDiagram(java.lang.Object ns, 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

ActionClassDiagram

public ActionClassDiagram()
Constructor.

Method Detail

createDiagram

@Deprecated
public ArgoDiagram createDiagram(java.lang.Object ns)
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:
ns - The namespace the UMLDiagram should get.
Returns:
UMLDiagram

createDiagram

public ArgoDiagram createDiagram(java.lang.Object ns,
                                 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:
ns - 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