|
|||||||||||
| 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.static_structure.ui.FigEdgeNote
Class to display a UML note connection to a annotated model element.
The owner of this fig is always CommentEdge
| Field Summary |
| 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 | |
FigEdgeNote()
Construct a new note connection. |
|
FigEdgeNote(Object commentEdge,
Layer theLayer)
Constructor that hooks the Fig to a CommentEdge. |
|
| Method Summary | |
protected boolean |
canEdit(Fig f)
|
protected Action[] |
getApplyStereotypeActions()
Overrides the standard method to return null. |
protected Object |
getDestination()
Returns the destination of the edge. |
Object |
getOwner()
|
protected Object |
getSource()
Returns the source of the edge. |
String |
getTipString(MouseEvent me)
|
protected void |
modelChanged(PropertyChangeEvent e)
Listen for a RemoveAssociationEvent between the comment and the annotated element. |
void |
postLoad()
|
void |
propertyChange(PropertyChangeEvent pve)
|
void |
removeFromDiagramImpl()
|
void |
setDestFigNode(FigNode fn)
|
void |
setFig(Fig f)
|
void |
setOwner(Object newOwner)
This method should only be called once for any one Fig instance that represents a model element (ie not for a FigEdgeNote). |
void |
setSourceFigNode(FigNode fn)
|
String |
toString()
|
protected void |
updateListeners(Object oldOwner,
Object newOwner)
Implementations of this method should register/unregister the fig for all (model)events. |
protected void |
updateNameText()
generate the notation for the modelelement and stuff it into the text Fig |
protected void |
updateStereotypeText()
generate the notation for the stereotype and stuff it into the text Fig |
| Methods inherited from class org.tigris.gef.presentation.FigEdgePoly |
computeRouteImpl, findAvoidPt, getPolygon, insertPoint, layoutEdge, makeEdgeFig, moveVertex, paint, routingRectPoint, segOK, setEndPoints, setInitiallyLaidOut, setPoint, setPolygon, tryRoute |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.beans.VetoableChangeListener |
vetoableChange |
| Methods inherited from interface org.argouml.kernel.DelayedVChangeListener |
delayedVetoableChange |
| Methods inherited from interface java.awt.event.MouseListener |
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased |
| Methods inherited from interface java.awt.event.KeyListener |
keyPressed, keyReleased, keyTyped |
| Methods inherited from interface org.argouml.cognitive.Highlightable |
getHighlight, setHighlight |
| Methods inherited from interface org.tigris.gef.di.GraphicElement |
getId, routingRect |
| Constructor Detail |
public FigEdgeNote()
public FigEdgeNote(Object commentEdge,
Layer theLayer)
commentEdge - the CommentEdgetheLayer - the layer (ignored)| Method Detail |
public void setFig(Fig f)
FigEdge.setFig(org.tigris.gef.presentation.Fig)protected boolean canEdit(Fig f)
canEdit in class FigEdgeModelElementf - the Fig
FigEdgeModelElement.canEdit(org.tigris.gef.presentation.Fig)public String toString()
Object.toString()protected void modelChanged(PropertyChangeEvent e)
modelChanged in class FigEdgeModelElemente - the eventFigEdgeModelElement.modelChanged(java.beans.PropertyChangeEvent)public String getTipString(MouseEvent me)
getTipString in class FigEdgeModelElementFig.getTipString(java.awt.event.MouseEvent)public void setOwner(Object newOwner)
FigEdgeModelElement
setOwner in class FigEdgeModelElementFig.setOwner(java.lang.Object)public Object getOwner()
getOwner in interface org.tigris.gef.di.GraphicElementFig.getOwner()protected final Action[] getApplyStereotypeActions()
getApplyStereotypeActions in class FigEdgeModelElementpublic void postLoad()
postLoad in class FigEdgeModelElementFig.postLoad()protected void updateNameText()
updateNameText in class FigEdgeModelElementprotected void updateStereotypeText()
updateStereotypeText in class FigEdgeModelElement
protected 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)public void propertyChange(PropertyChangeEvent pve)
propertyChange in interface PropertyChangeListenerpropertyChange in class FigEdgeModelElementPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)public void removeFromDiagramImpl()
removeFromDiagramImpl in class FigEdgeModelElementFig.removeFromDiagram()protected Object getSource()
getSource in class FigEdgeModelElementprotected Object getDestination()
getDestination in class FigEdgeModelElementpublic void setDestFigNode(FigNode fn)
FigEdge.setDestFigNode(org.tigris.gef.presentation.FigNode)public void setSourceFigNode(FigNode fn)
FigEdge.setSourceFigNode(org.tigris.gef.presentation.FigNode)
|
|||||||||||
| 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 |