|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.gef.presentation.Fig
org.tigris.gef.presentation.FigEdge
org.tigris.gef.presentation.FigEdgePoly
org.argouml.uml.diagram.ui.FigEdgeModelElement
org.argouml.uml.diagram.ui.FigAssociation
org.argouml.uml.diagram.collaboration.ui.FigAssociationRole
This class represents the Fig of an AssociationRole for a collaboration diagram.
| Field Summary |
| Fields inherited from class org.argouml.uml.diagram.ui.FigAssociation |
notationProviderDestRole, notationProviderSrcRole |
| Fields inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement |
notationProviderName |
| Fields inherited from class org.tigris.gef.presentation.FigEdgePoly |
_initiallyLaidOut |
| Fields inherited from class org.tigris.gef.presentation.FigEdge |
_arrowHeadEnd, _arrowHeadStart, _destFigNode, _highlight, _pathItems, _sourceFigNode, _useNearest |
| Fields inherited from class org.tigris.gef.presentation.Fig |
_allowsSaving, _context, _dashes, _dashPeriod, _dashStyle, _filled, _h, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, MIN_SIZE, plotter |
| Constructor Summary | |
FigAssociationRole()
Main Constructor |
|
FigAssociationRole(Object edge,
Layer lay)
Constructor for FigAssociationRole. |
|
| Method Summary | |
void |
addMessage(FigMessage message)
|
protected void |
initNotationProviders(Object own)
Create the NotationProviders. |
protected void |
textEditStarted(FigText ft)
This method is called when the user doubleclicked on the text field, and starts editing. |
void |
updateListeners(Object oldOwner,
Object newOwner)
Implementations of this method should register/unregister the fig for all (model)events. |
| Methods inherited from class org.argouml.uml.diagram.ui.FigAssociation |
getMiddleGroup, getPopUpActions, layoutEdge, modelChanged, paint, paintClarifiers, propertyChange, renderingChanged, textEdited, updateAbstract |
| Methods inherited from class org.tigris.gef.presentation.FigEdgePoly |
computeRouteImpl, findAvoidPt, getPolygon, insertPoint, makeEdgeFig, moveVertex, paint, routingRectPoint, segOK, setEndPoints, setInitiallyLaidOut, setPoint, setPolygon, tryRoute |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.argouml.cognitive.Highlightable |
getHighlight, setHighlight |
| Methods inherited from interface org.tigris.gef.di.GraphicElement |
getId, getOwner, routingRect |
| Constructor Detail |
public FigAssociationRole()
public FigAssociationRole(Object edge,
Layer lay)
edge - the owning UML elementlay - the layer| Method Detail |
protected void initNotationProviders(Object own)
initNotationProviders in class FigAssociationown - the current ownerFigNodeModelElement.initNotationProviders(java.lang.Object)
public void updateListeners(Object oldOwner,
Object newOwner)
FigEdgeModelElementThis function is used in UMLDiagram, which removes all listeners to all Figs when a diagram is not displayed, and restore them when it becomes visible again.
In this case, it is not imperative that indeed ALL listeners are updated, as long as the ones removed get added again and vice versa.
Additionally, this function may be used by the modelChanged() function.
In this case, it IS imperative that all listeners get removed / added.
updateListeners in class FigAssociationorg.argouml.uml.diagram.ui.FigAssociation#updateListeners(
java.lang.Object)public void addMessage(FigMessage message)
message - the message to be addedprotected void textEditStarted(FigText ft)
FigEdgeModelElementIt is also possible to alter the text to be edited already here, e.g. by adding the stereotype in front of the name, but that seems not user-friendly.
textEditStarted in class FigAssociationFigEdgeModelElement.textEditStarted(org.tigris.gef.presentation.FigText)
|
|||||||||||
| 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 |