|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDiagram
org.argouml.uml.diagram.ArgoDiagramImpl
org.argouml.uml.diagram.ui.UMLDiagram
org.argouml.sequence2.diagram.UMLSequenceDiagram
public class UMLSequenceDiagram
The diagram for sequence diagrams.
Field Summary |
---|
Fields inherited from class org.argouml.uml.diagram.ArgoDiagramImpl |
---|
namespace |
Fields inherited from interface org.argouml.uml.diagram.ArgoDiagram |
---|
NAME_KEY, NAMESPACE_KEY |
Constructor Summary | |
---|---|
UMLSequenceDiagram()
Deprecated. for 0.28 by tfmorris. Use #UMLActivityDiagram(String, Object, GraphModel) . |
|
UMLSequenceDiagram(java.lang.Object collaboration)
Creates a new UmlSequenceDiagram with a collaboration. |
Method Summary | |
---|---|
DiagramElement |
createDiagramElement(java.lang.Object modelElement,
java.awt.Rectangle bounds)
Create a diagram element suitable for the base diagram type |
boolean |
doesAccept(java.lang.Object objectToAccept)
A sequence diagram can accept all classifiers. |
void |
encloserChanged(FigNode enclosed,
FigNode oldEncloser,
FigNode newEncloser)
Called when the user releases a dragged FigNode. |
java.lang.Object |
getCollaboration()
|
java.lang.String |
getInstructions(java.lang.Object droppedObject)
Gets the instructions to be displayed on the status bar. |
java.lang.String |
getLabelName()
Get the localized label name for the diagram |
ModePlace |
getModePlace(GraphFactory gf,
java.lang.String instructions)
Creates a diagram specific @see org.tigris.gef.base.ModePlace that allows the diagram to place an accepted type of object [ @see #doesAccept(Object) ] as it should. |
java.util.Collection |
getRelocationCandidates(java.lang.Object root)
Create a collection of candidate modelelements to relocate this diagram to. |
protected java.lang.Object[] |
getUmlActions()
Get the Uml actions that can be performed in the diagram |
void |
initialize(java.lang.Object owner)
Method called by PGML parser during diagram load to initialize a diagram. |
boolean |
isRelocationAllowed(java.lang.Object base)
This function should return true if it is allowed to relocate this type of diagram to the given modelelement. |
void |
postLoad()
Ensure that all elements represented in this diagram are part of this diagrams collaboration |
boolean |
relocate(java.lang.Object base)
Relocate this diagram, e.g. |
Methods inherited from class org.argouml.uml.diagram.ArgoDiagramImpl |
---|
damage, diagramFontChanged, getContainingFig, getDependentElement, getDiagramSettings, getEdges, getFigIterator, getItemUID, getNamespace, getNodes, getOwner, getProject, getVetoMessage, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, presentationsFor, propertyChange, remove, renderingChanged, repair, setDiagramSettings, setItemUID, setModelElementNamespace, setName, setNamespace, toString, vetoableChange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.argouml.uml.diagram.ArgoDiagram |
---|
add, addPropertyChangeListener, addVetoableChangeListener, countContained, damage, getContainingFig, getDependentElement, getDiagramSettings, getEdges, getFigIterator, getGraphModel, getItemUID, getLayer, getName, getNamespace, getNodes, getOwner, getProject, getVetoMessage, postSave, preSave, presentationFor, presentationsFor, propertyChange, remove, removePropertyChangeListener, removeVetoableChangeListener, repair, setDiagramSettings, setItemUID, setModelElementNamespace, setName, setNamespace, setProject |
Methods inherited from interface org.argouml.application.events.ArgoNotationEventListener |
---|
notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved |
Methods inherited from interface org.argouml.application.events.ArgoDiagramAppearanceEventListener |
---|
diagramFontChanged |
Constructor Detail |
---|
@Deprecated public UMLSequenceDiagram()
#UMLActivityDiagram(String, Object, GraphModel)
.
public UMLSequenceDiagram(java.lang.Object collaboration)
collaboration
- The collaborationMethod Detail |
---|
public void initialize(java.lang.Object owner)
initialize
in class UMLDiagram
owner
- UML model element representing the collaborationorg.tigris.gef.base.Diagram#initialize(java.lang.Object)
protected java.lang.Object[] getUmlActions()
getUmlActions
in class UMLDiagram
UMLDiagram.getUmlActions()
public java.lang.String getLabelName()
getLabelName
in class UMLDiagram
UMLDiagram.getLabelName()
public void encloserChanged(FigNode enclosed, FigNode oldEncloser, FigNode newEncloser)
ArgoDiagram
encloserChanged
in interface ArgoDiagram
encloserChanged
in class ArgoDiagramImpl
enclosed
- the enclosed FigNode that was dragged into the encloseroldEncloser
- the previous enclosernewEncloser
- the FigNode that encloses the dragged FigNodepublic boolean isRelocationAllowed(java.lang.Object base)
Relocatable
isRelocationAllowed
in interface Relocatable
isRelocationAllowed
in class UMLDiagram
base
- the given modelelement
public java.util.Collection getRelocationCandidates(java.lang.Object root)
Relocatable
getRelocationCandidates
in interface Relocatable
root
- all returned candidates are contained in this namespace
public boolean relocate(java.lang.Object base)
Relocatable
Precondition: isRelocationAllowed(base) is true.
relocate
in interface Relocatable
relocate
in class UMLDiagram
base
- the new location, i.e. base modelelement
public boolean doesAccept(java.lang.Object objectToAccept)
doesAccept
in class UMLDiagram
objectToAccept
- element to test for acceptability
UMLDiagram.doesAccept(java.lang.Object)
public DiagramElement createDiagramElement(java.lang.Object modelElement, java.awt.Rectangle bounds)
ArgoDiagram
createDiagramElement
in interface ArgoDiagram
modelElement
- the model element the diagram element
will representbounds
- the bounds of the newly created diagram element
public java.lang.String getInstructions(java.lang.Object droppedObject)
UMLDiagram
getInstructions
in class UMLDiagram
droppedObject
- The object for which instructions will be given.
public ModePlace getModePlace(GraphFactory gf, java.lang.String instructions)
UMLDiagram
getModePlace
in class UMLDiagram
gf
- TODOinstructions
- a help string for the user
public java.lang.Object getCollaboration()
getCollaboration
in interface SequenceDiagram
public void postLoad()
postLoad
in interface ArgoDiagram
org.tigris.gef.base.Diagram#postLoad()
|
||||||||||
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 |