|
|||||||||||
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 | |
private Action |
actionActor
Tool to add an actor node. |
private Action |
actionAggregation
|
private Action |
actionAssociation
Tool to create an association between UML artifacts using a polyedge. |
private Action |
actionComposition
|
private Action |
actionDependency
Tool to create a dependency between UML artifacts using a polyedge. |
private Action |
actionExtend
Tool to create an extend relationship between UML use cases using a polyedge. |
private Action |
actionExtensionPoint
|
private Action |
actionGeneralize
Tool to create a generalization between UML artifacts using a polyedge. |
private Action |
actionInclude
Tool to create an include relationship between UML use cases using a polyedge. |
private Action |
actionUniAggregation
|
private Action |
actionUniAssociation
|
private Action |
actionUniComposition
|
private Action |
actionUseCase
Tool to add a use case node. |
private static Logger |
LOG
|
Fields inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
|
Fields inherited from class org.argouml.ui.ArgoDiagram |
|
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(Object m)
Construct a new use case diagram with in a defined namespace. |
|
UMLUseCaseDiagram(String name,
Object namespace)
Constructor. |
Method Summary | |
protected Action |
getActionActor()
|
protected Action |
getActionAggregation()
|
protected Action |
getActionAssociation()
|
protected Action |
getActionComposition()
|
protected Action |
getActionDependency()
|
protected Action |
getActionExtend()
|
protected Action |
getActionExtensionPoint()
|
protected Action |
getActionGeneralize()
|
protected Action |
getActionInclude()
|
protected Action |
getActionUniAggregation()
|
protected Action |
getActionUniAssociation()
|
protected Action |
getActionUniComposition()
|
protected Action |
getActionUseCase()
|
private Object[] |
getAssociationActions()
|
String |
getLabelName()
|
protected String |
getNewDiagramName()
|
protected Object[] |
getUmlActions()
Get the actions from which to create a toolbar or equivilent graphic triggers. |
void |
setNamespace(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, getNextDiagramSerial, getOwner, initialize, initToolBar, makeCreateAssociationAction, makeCreateEdgeAction, makeCreateNodeAction, needsToBeRemoved, propertyChange, removeAsTarget, resetDiagramSerial, setAsTarget |
Methods inherited from class org.argouml.ui.ArgoDiagram |
damage, getContainingFig, getEdges, getItemUID, getNodes, getVetoMessage, setItemUID, setName, 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 |
private static final Logger LOG
private Action actionActor
private Action actionUseCase
private Action actionAssociation
private Action actionAggregation
private Action actionComposition
private Action actionUniAssociation
private Action actionUniAggregation
private Action actionUniComposition
private Action actionGeneralize
private Action actionExtend
private Action actionInclude
private Action actionDependency
private Action actionExtensionPoint
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. We allow for the possibility that setting this may fail, in which case no name is set.
public UMLUseCaseDiagram(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(String name, Object namespace)
name
- the name for the diagramnamespace
- the namespace for the diagramMethod Detail |
public void setNamespace(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 Object[] getUmlActions()
getUmlActions
in class UMLDiagram
UMLDiagram.getUmlActions()
private Object[] getAssociationActions()
protected String getNewDiagramName()
public String getLabelName()
getLabelName
in class UMLDiagram
UMLDiagram.getLabelName()
protected Action getActionActor()
protected Action getActionAggregation()
protected Action getActionAssociation()
protected Action getActionComposition()
protected Action getActionDependency()
protected Action getActionExtend()
protected Action getActionGeneralize()
protected Action getActionInclude()
protected Action getActionUniAggregation()
protected Action getActionUniAssociation()
protected Action getActionUniComposition()
protected Action getActionUseCase()
protected Action getActionExtensionPoint()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |