|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.Diagram
org.argouml.ui.ArgoDiagram
org.argouml.uml.diagram.ui.UMLDiagram
org.argouml.uml.diagram.use_case.ui.UMLUseCaseDiagram
The base class of the use case diagram.
Defines the toolbar, provides for its initialization and provides constructors for a top level diagram and one within a defined namespace.
Field Summary | |
protected static javax.swing.Action |
_actionActor
Tool to add an actor node. |
protected static javax.swing.Action |
_actionAggregation
|
protected static javax.swing.Action |
_actionAssociation
Tool to create an association between UML artifacts using a polyedge. |
protected static javax.swing.Action |
_actionComposition
|
protected static javax.swing.Action |
_actionDependency
Tool to create a dependency between UML artifacts using a polyedge. |
protected static javax.swing.Action |
_actionExtend
Tool to create an extend relationship between UML use cases using a polyedge. |
protected static javax.swing.Action |
_actionGeneralize
Tool to create a generalization between UML artifacts using a polyedge. |
protected static javax.swing.Action |
_actionInclude
Tool to create an include relationship between UML use cases using a polyedge. |
protected static javax.swing.Action |
_actionUniAggregation
|
protected static javax.swing.Action |
_actionUniAssociation
|
protected static javax.swing.Action |
_actionUniComposition
|
protected static javax.swing.Action |
_actionUseCase
Tool to add a use case node. |
protected static int |
_UseCaseDiagramSerial
A static counter of the use case index (used in constructing a unique name for each new diagram. |
protected static org.apache.log4j.Logger |
cat
Deprecated. by Linus Tolke as of 0.15.4. Use your own logger in your class. This will be removed. |
Fields inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
_actionBroom, _actionCircle, _actionInk, _actionLine, _actionPoly, _actionRectangle, _actionRRectangle, _actionSelect, _actionSpline, _actionText, _diagramName, _namespace |
Fields inherited from class org.argouml.ui.ArgoDiagram |
TheInstance |
Fields inherited from class org.tigris.gef.base.Diagram |
_comments, _name, _toolBar, NAME_KEY, SCALE_KEY |
Constructor Summary | |
UMLUseCaseDiagram()
Construct a new use case diagram with no defined namespace. |
|
UMLUseCaseDiagram(java.lang.Object m)
Construct a new use case diagram with in a defined namespace. |
|
UMLUseCaseDiagram(java.lang.String name,
java.lang.Object namespace)
|
Method Summary | |
private java.lang.Object[] |
getAssociationActions()
|
protected static java.lang.String |
getNewDiagramName()
|
protected java.lang.Object[] |
getUmlActions()
Get the actions from which to create a toolbar or equivilent graphic triggers. |
void |
setNamespace(java.lang.Object handle)
Perform a number of important initializations of a Use Case Diagram. |
Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
deselectAllTools, deselectOtherTools, getActions, getClassAndModelID, getJToolBar, getNamespace, getOwner, initialize, initToolBar, listRoleItemSet, propertySet, recovered, removeAsTarget, removed, roleAdded, roleRemoved, setAsTarget, setName |
Methods inherited from class org.argouml.ui.ArgoDiagram |
addChangeRegistryAsListener, damage, getContainingFig, getEdges, getItemUID, getNodes, getNodes, getVetoMessage, removeChangeRegistryAsListener, setItemUID, toString |
Methods inherited from class org.tigris.gef.base.Diagram |
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, bringForward, bringToFront, countContained, edgeAdded, edgeRemoved, elements, elementsIn, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getComments, getGraphController, getGraphModel, getLayer, getName, getScale, getShowSingleMultiplicity, getToolBar, graphChanged, hit, nodeAdded, nodeRemoved, postLoad, postSave, preSave, presentationFor, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, reorder, sendBackward, sendToBack, setComments, setGraphModel, setLayer, setScale, setShowSingleMultiplicity, setToolBar |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger cat
protected static javax.swing.Action _actionActor
protected static javax.swing.Action _actionUseCase
protected static javax.swing.Action _actionAssociation
protected static javax.swing.Action _actionAggregation
protected static javax.swing.Action _actionComposition
protected static javax.swing.Action _actionUniAssociation
protected static javax.swing.Action _actionUniAggregation
protected static javax.swing.Action _actionUniComposition
protected static javax.swing.Action _actionGeneralize
protected static javax.swing.Action _actionExtend
protected static javax.swing.Action _actionInclude
protected static javax.swing.Action _actionDependency
protected static int _UseCaseDiagramSerial
Constructor Detail |
public UMLUseCaseDiagram()
Note we must never call this directly, since defining the namespace is what makes everything work. However GEF will call it directly when loading a new diagram, so it must remain public.
A unique name is constructed by using the serial index
_UseCaseDiagramSerial
. We allow for the possibility
that setting this may fail, in which case no name is set.
public UMLUseCaseDiagram(java.lang.Object m)
Invokes the generic constructor UMLUseCaseDiagram()
,
then intialises the namespace (which initializes all the
graphics).
This is the constructor which should always be used.
m
- the desired namespace for this diagram.public UMLUseCaseDiagram(java.lang.String name, java.lang.Object namespace)
Method Detail |
public void setNamespace(java.lang.Object handle)
Creates a new graph model for the diagram, settings its namespace to that supplied.
Changed lay from LayerPerspective to LayerPerspectiveMutable. This class is a child of LayerPerspective and was implemented to correct some difficulties in changing the model. lay is used mainly in LayerManager(GEF) to control the adding, changing and deleting of items in a layer of the diagram.
Set a renderer suitable for the use case diagram.
Note. This is declared as public. Not clear that other classes should be allowed to invoke this method.
setNamespace
in class UMLDiagram
handle
- Namespace to be used for this diagram.protected java.lang.Object[] getUmlActions()
getUmlActions
in class UMLDiagram
private java.lang.Object[] getAssociationActions()
protected static java.lang.String getNewDiagramName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |