|
|||||||||||
| 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.activity.ui.UMLActivityDiagram
The Activity diagram.
TODO: Finish the work on swimlanes, subactivity states.
| Field Summary |
| Fields inherited from class org.tigris.gef.base.Diagram |
_comments, _name, _toolBar, NAME_KEY, SCALE_KEY |
| Constructor Summary | |
UMLActivityDiagram()
Constructor. |
|
UMLActivityDiagram(Object namespace,
Object agraph)
Constructor. |
|
| Method Summary | |
protected Action |
getActionCallState()
|
protected Action |
getActionFinalPseudoState()
|
protected Action |
getActionForkPseudoState()
|
protected Action |
getActionJoinPseudoState()
|
protected Action |
getActionJunctionPseudoState()
|
protected Action |
getActionNewSwimlane()
|
protected Action |
getActionObjectFlowState()
|
protected Action |
getActionStartPseudoState()
|
protected Action |
getActionState()
|
protected Action |
getActionSubactivityState()
|
protected Action |
getActionTransition()
|
Object |
getDependentElement()
This method shall return any UML modelelements that should be deleted when the diagram gets deleted, or null if there are none. |
String |
getLabelName()
|
protected String |
getNewDiagramName()
Creates a new diagram name. |
Object |
getOwner()
The default implementation for diagrams that have the namespace as their owner. |
Object |
getStateMachine()
|
protected Object[] |
getUmlActions()
Get the actions from which to create a toolbar or equivalent graphic triggers. |
void |
initialize(Object o)
|
boolean |
isRelocationAllowed(Object base)
This function should return true if it is allowed to relocate this type of diagram to the given modelelement. |
void |
propertyChange(PropertyChangeEvent evt)
This diagram listens to events from its namespace ModelElement; when the modelelement is removed, we also want to delete this diagram. |
boolean |
relocate(Object base)
Relocate this diagram, e.g. |
void |
setStateMachine(Object sm)
|
void |
setup(Object namespace,
Object agraph)
Method to perform a number of important initializations of an Activity Diagram. |
| Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
deselectAllTools, getActions, getClassAndModelID, getJToolBar, getNamespace, getNextDiagramSerial, getSelectedAction, initToolBar, makeCreateAssociationAction, makeCreateAssociationClassAction, makeCreateAssociationEndAction, makeCreateEdgeAction, makeCreateNodeAction, manageDefault, resetDiagramSerial, setNamespace, setSelectedAction |
| Methods inherited from class org.argouml.ui.ArgoDiagram |
damage, getContainingFig, getEdges, getItemUID, getNodes, getVetoMessage, presentationsFor, remove, repair, setItemUID, setName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UMLActivityDiagram()
public UMLActivityDiagram(Object namespace,
Object agraph)
namespace - the namespace for the diagramagraph - the ActivityGraph for the diagram| Method Detail |
public void initialize(Object o)
initialize in class UMLDiagramDiagram.initialize(java.lang.Object)
public void setup(Object namespace,
Object agraph)
Each diagram type has a similar UMLxxxDiagram class.
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 layers on the diagram... psager@tigris.org Jan. 24, 2002
namespace - Namespace from the modelagraph - ActivityGraph from the modelpublic void propertyChange(PropertyChangeEvent evt)
UMLDiagram
There is also a risk that if this diagram was the one shown in
the diagram panel, then it will remain after it has been
deleted. So we need to deselect this diagram.
There are other things to take care of, so all this is delegated to
Project.moveToTrash(Object).
propertyChange in interface PropertyChangeListenerpropertyChange in class UMLDiagramUMLDiagram.propertyChange(java.beans.PropertyChangeEvent)public Object getOwner()
UMLDiagram
getOwner in class UMLDiagramUMLDiagram.getOwner()public Object getStateMachine()
public void setStateMachine(Object sm)
sm - set the statemachine for this diagramprotected Object[] getUmlActions()
getUmlActions in class UMLDiagramUMLDiagram.getUmlActions()protected String getNewDiagramName()
public String getLabelName()
getLabelName in class UMLDiagramUMLDiagram.getLabelName()protected Action getActionCallState()
protected Action getActionFinalPseudoState()
protected Action getActionForkPseudoState()
protected Action getActionJoinPseudoState()
protected Action getActionJunctionPseudoState()
protected Action getActionNewSwimlane()
protected Action getActionObjectFlowState()
protected Action getActionStartPseudoState()
protected Action getActionState()
protected Action getActionSubactivityState()
protected Action getActionTransition()
public Object getDependentElement()
UMLDiagram
getDependentElement in class UMLDiagramUMLDiagram.getDependentElement()public boolean isRelocationAllowed(Object base)
Relocatable
isRelocationAllowed in interface RelocatableisRelocationAllowed in class UMLDiagramUMLDiagram.isRelocationAllowed(java.lang.Object)public boolean relocate(Object base)
RelocatablePrecondition: isRelocationAllowed(base) is true.
relocate in interface Relocatablerelocate in class UMLDiagramUMLDiagram.relocate(java.lang.Object)
|
|||||||||||
| 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 |