org.argouml.uml.ui
Class ActionAddDiagram
java.lang.Object
javax.swing.AbstractAction
org.tigris.gef.undo.UndoableAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.ui.ActionAddDiagram
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Direct Known Subclasses:
- ActionActivityDiagram, ActionClassDiagram, ActionCollaborationDiagram, ActionDeploymentDiagram, ActionStateDiagram, ActionUseCaseDiagram
- public abstract class ActionAddDiagram
- extends UMLAction
Abstract class that is the parent of all actions adding diagrams to ArgoUML.
The children of this class should implement createDiagram to do any specific
actions for creating a diagram and isValidNamespace that checks if some
namespace is valid to add the diagram to.
- See Also:
- Serialized Form
|
Field Summary |
private static Logger |
LOG
Logger. |
LOG
private static final Logger LOG
- Logger.
ActionAddDiagram
public ActionAddDiagram(String s)
- Constructor for ActionAddDiagram.
- Parameters:
s - the name for this action
actionPerformed
public void actionPerformed(ActionEvent e)
- See Also:
ActionListener.actionPerformed(ActionEvent)
findNamespace
private Object findNamespace()
- Find the right namespace for the diagram.
- Returns:
- the namespace or null
isValidNamespace
public abstract boolean isValidNamespace(Object ns)
- Test if the given namespace is a valid namespace to add the diagram to.
- Parameters:
ns - the namespace to check
- Returns:
- Returns
true if valid.
createDiagram
public abstract UMLDiagram createDiagram(Object ns)
- Creates the diagram. Classes derived from this class should implement any
specific behaviour to create the diagram.
- Parameters:
ns - The namespace the UMLDiagram should get.
- Returns:
- UMLDiagram