org.argouml.uml.ui
Class ActionActivityDiagram

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.argouml.uml.ui.UMLAction
          extended byorg.argouml.uml.ui.UMLChangeAction
              extended byorg.argouml.uml.ui.ActionAddDiagram
                  extended byorg.argouml.uml.ui.ActionStateDiagram
                      extended byorg.argouml.uml.ui.ActionActivityDiagram
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ActionActivityDiagram
extends ActionStateDiagram

Action to trigger creation of a new activity diagram.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
protected static org.apache.log4j.Logger cat
           
static ActionActivityDiagram SINGLETON
           
 
Fields inherited from class org.argouml.uml.ui.ActionAddDiagram
 
Fields inherited from class org.argouml.uml.ui.UMLAction
HAS_ICON, NO_ICON
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
private ActionActivityDiagram()
           
 
Method Summary
 UMLDiagram createDiagram(java.lang.Object ns)
          Creates the diagram.
 boolean isValidNamespace(java.lang.Object handle)
          Returns true as the given namespace a valid namespace is to add the diagram to.
 boolean shouldBeEnabled()
          Overriden since it should only be possible to add statediagrams and activitydiagrams to classifiers and behavioral features.
 
Methods inherited from class org.argouml.uml.ui.ActionAddDiagram
actionPerformed
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getShortcut, getValue, isEnabled, markNeedsSave, putValue, stripJunk, updateEnabled, updateEnabled
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static ActionActivityDiagram SINGLETON

cat

protected static org.apache.log4j.Logger cat
Constructor Detail

ActionActivityDiagram

private ActionActivityDiagram()
Method Detail

createDiagram

public UMLDiagram createDiagram(java.lang.Object ns)
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 ActionStateDiagram
See Also:
ActionAddDiagram.createDiagram(Object)

shouldBeEnabled

public boolean shouldBeEnabled()
Description copied from class: ActionStateDiagram
Overriden since it should only be possible to add statediagrams and activitydiagrams to classifiers and behavioral features.

Overrides:
shouldBeEnabled in class ActionStateDiagram
See Also:
UMLAction.shouldBeEnabled()

isValidNamespace

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

Overrides:
isValidNamespace in class ActionStateDiagram
See Also:
ActionAddDiagram.isValidNamespace(Object)


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