|
|||||||||||
| 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
This class represents the Fig of a binary association on a diagram.
| Field Summary | |
protected NotationProvider4 |
notationProviderDestRole
|
protected NotationProvider4 |
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 | |
FigAssociation()
Main constructor Don't call this constructor directly. |
|
FigAssociation(Object edge,
Layer lay)
Constructor that hooks the Fig to an existing UML element. |
|
| Method Summary | |
protected FigTextGroup |
getMiddleGroup()
|
Vector |
getPopUpActions(MouseEvent me)
|
protected void |
initNotationProviders(Object own)
Create the NotationProviders. |
protected void |
layoutEdge()
Lays out the association edges as any other edge except for special rules for an association that loops back to the same class. |
protected void |
modelChanged(PropertyChangeEvent e)
This is called after any part of the UML ModelElement has changed. |
void |
paint(Graphics g)
|
void |
paintClarifiers(Graphics g)
|
void |
propertyChange(PropertyChangeEvent e)
|
protected void |
renderingChanged()
Rerenders the fig if needed. |
protected void |
textEdited(FigText ft)
This method is called after the user finishes editing a text field that is in the FigEdgeModelElement. |
protected void |
textEditStarted(FigText ft)
This method is called when the user doubleclicked on the text field, and starts editing. |
protected void |
updateAbstract()
Updates the name if modelchanged receives an "isAbstract" event. |
void |
updateListeners(Object oldOwner,
Object newOwner)
Implementations of this method should register/unregister the fig for all (model)events. |
| 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 |
| Field Detail |
protected NotationProvider4 notationProviderSrcRole
protected NotationProvider4 notationProviderDestRole
| Constructor Detail |
public FigAssociation()
public FigAssociation(Object edge,
Layer lay)
edge - the UMl elementlay - the layer| Method Detail |
protected void initNotationProviders(Object own)
FigEdgeModelElement
initNotationProviders in class FigEdgeModelElementown - 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 FigEdgeModelElementnewOwner - the new owner for the listenersorg.argouml.uml.diagram.ui.FigEdgeModelElement#updateListeners(java.lang.Object)protected void textEdited(FigText ft)
FigEdgeModelElement
textEdited in class FigEdgeModelElementft - the text Fig that has been editedFigEdgeModelElement.textEdited(org.tigris.gef.presentation.FigText)protected 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 FigEdgeModelElementft - the FigText that will be edited and contains the start-textFigEdgeModelElement.textEditStarted(org.tigris.gef.presentation.FigText)public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpropertyChange in class FigEdgeModelElementPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)protected void modelChanged(PropertyChangeEvent e)
FigEdgeModelElement
modelChanged in class FigEdgeModelElemente - the eventFigEdgeModelElement.modelChanged(java.beans.PropertyChangeEvent)protected void renderingChanged()
FigEdgeModelElementNOTE: If you override this method you probably also want to override the modelChanged() method TODO: Call this method something sensible. What it does rather than one example of when it is called. Its purpose seems to be to update everything if anything has changed. Not very efficient.
renderingChanged in class FigEdgeModelElementFigEdgeModelElement.renderingChanged()public Vector getPopUpActions(MouseEvent me)
getPopUpActions in interface PopupGeneratorgetPopUpActions in class FigEdgeModelElementPopupGenerator.getPopUpActions(java.awt.event.MouseEvent)protected void updateAbstract()
public void paint(Graphics g)
Fig.paint(java.awt.Graphics)public void paintClarifiers(Graphics g)
paintClarifiers in class FigEdgeModelElementg - the Graphics objectFigEdgeModelElement.paintClarifiers(java.awt.Graphics)protected FigTextGroup getMiddleGroup()
protected void layoutEdge()
FigEdgePoly.layoutEdge()
|
|||||||||||
| 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 |