|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectUndoableAction
org.argouml.uml.ui.ActionAddDiagram
public abstract class ActionAddDiagram
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.
ArgoUML shall never create a diagram for a read-only modelelement.
TODO: This class should be merged with ActionNewDiagram.
| Constructor Summary | |
|---|---|
ActionAddDiagram(java.lang.String s)
Constructor for ActionAddDiagram. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
ArgoDiagram |
createDiagram(java.lang.Object ns)
Deprecated. for 0.27.3 by tfmorris. Subclasses should override createDiagram(Object, DiagramSettings). This method
is no longer abstract, so implementing classes may remove it. |
ArgoDiagram |
createDiagram(java.lang.Object owner,
DiagramSettings settings)
Create a new diagram. |
protected java.lang.Object |
findNamespace()
Find the right namespace for the diagram. |
abstract boolean |
isValidNamespace(java.lang.Object ns)
Test if the given namespace is a valid namespace to add the diagram to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionAddDiagram(java.lang.String s)
s - the name for this action| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
protected java.lang.Object findNamespace()
public abstract boolean isValidNamespace(java.lang.Object ns)
ns - the namespace to check
true if valid.@Deprecated public ArgoDiagram createDiagram(java.lang.Object ns)
createDiagram(Object, DiagramSettings). This method
is no longer abstract, so implementing classes may remove it.
ns - The namespace the UMLDiagram should get.
public ArgoDiagram createDiagram(java.lang.Object owner,
DiagramSettings settings)
owner - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |