|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FigEdgePoly | +--org.argouml.uml.diagram.ui.FigEdgeModelElement
Abstract class to display diagram arcs for UML ModelElements that look like arcs and that have editiable names.
Field Summary | |
protected FigText |
_name
|
protected FigText |
_stereo
|
protected static Category |
cat
|
static java.awt.Font |
ITALIC_LABEL_FONT
|
static java.awt.Font |
LABEL_FONT
|
int |
MARGIN
|
Constructor Summary | |
FigEdgeModelElement()
Partially construct a new FigNode. |
|
FigEdgeModelElement(java.lang.Object edge)
|
Method Summary | |
protected boolean |
canEdit(Fig f)
|
void |
damage()
|
void |
delayedVetoableChange(java.beans.PropertyChangeEvent pce)
|
void |
delete()
|
void |
dispose()
|
void |
finalize()
|
NotationName |
getContextNotation()
This default implementation simply requests the default notation. |
protected java.lang.Object |
getDestination()
Returns the destination of the edge. |
ItemUID |
getItemUID()
|
FigText |
getNameFig()
|
java.util.Vector |
getPopUpActions(java.awt.event.MouseEvent me)
|
protected java.lang.Object |
getSource()
Returns the source of the edge. |
int |
getSquaredDistance(java.awt.Point p1,
java.awt.Point p2)
|
FigText |
getStereotypeFig()
|
java.lang.String |
getTipString(java.awt.event.MouseEvent me)
|
boolean |
hit(java.awt.Rectangle r)
Necessary since GEF contains some errors regarding the hit subject. |
ToDoItem |
hitClarifier(int x,
int y)
|
void |
keyPressed(java.awt.event.KeyEvent ke)
|
void |
keyReleased(java.awt.event.KeyEvent ke)
not used, do nothing. |
void |
keyTyped(java.awt.event.KeyEvent ke)
|
void |
listRoleItemSet(MElementEvent mee)
|
Selection |
makeSelection()
Returns a SelectionRerouteEdge object that manages selection and rerouting of the edge. |
protected void |
modelChanged(MElementEvent e)
This is called aftern any part of the UML MModelElement has changed. |
void |
mouseClicked(java.awt.event.MouseEvent me)
If the user double clicks on anu part of this FigNode, pass it down to one of the internal Figs. |
void |
mouseEntered(java.awt.event.MouseEvent me)
|
void |
mouseExited(java.awt.event.MouseEvent me)
|
void |
mousePressed(java.awt.event.MouseEvent me)
|
void |
mouseReleased(java.awt.event.MouseEvent me)
|
void |
notationAdded(ArgoNotationEvent event)
Invoked when a notation has been added. |
void |
notationChanged(ArgoNotationEvent event)
Invoked when any aspect of the notation has been changed. |
void |
notationProviderAdded(ArgoNotationEvent event)
Invoked when a notation provider has been added. |
void |
notationProviderRemoved(ArgoNotationEvent event)
Invoked when a notation provider has been removed. |
void |
notationRemoved(ArgoNotationEvent event)
Invoked when a notation has been removed. |
void |
paintClarifiers(java.awt.Graphics g)
|
void |
postLoad()
|
void |
propertyChange(java.beans.PropertyChangeEvent pve)
|
void |
propertySet(MElementEvent mee)
|
void |
recovered(MElementEvent mee)
|
void |
removed(MElementEvent mee)
|
void |
renderingChanged()
Rerenders the fig if needed. |
void |
roleAdded(MElementEvent mee)
|
void |
roleRemoved(MElementEvent mee)
|
void |
setItemUID(ItemUID id)
|
void |
setOwner(java.lang.Object own)
|
protected void |
textEdited(FigText ft)
This method is called after the user finishes editing a text field that is in the FigEdgeModelElement. |
protected boolean |
updateClassifiers()
Updates the classifiers the edge is attached to. |
protected void |
updateStereotypeText()
|
void |
vetoableChange(java.beans.PropertyChangeEvent pce)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Category cat
public static java.awt.Font LABEL_FONT
public static java.awt.Font ITALIC_LABEL_FONT
public final int MARGIN
protected FigText _name
protected FigText _stereo
Constructor Detail |
public FigEdgeModelElement()
public FigEdgeModelElement(java.lang.Object edge)
Method Detail |
public void finalize()
public void setItemUID(ItemUID id)
public ItemUID getItemUID()
public java.lang.String getTipString(java.awt.event.MouseEvent me)
public java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
public int getSquaredDistance(java.awt.Point p1, java.awt.Point p2)
public void paintClarifiers(java.awt.Graphics g)
public ToDoItem hitClarifier(int x, int y)
public Selection makeSelection()
public FigText getNameFig()
public FigText getStereotypeFig()
public void vetoableChange(java.beans.PropertyChangeEvent pce)
vetoableChange
in interface java.beans.VetoableChangeListener
public void delayedVetoableChange(java.beans.PropertyChangeEvent pce)
delayedVetoableChange
in interface DelayedVChangeListener
public void propertyChange(java.beans.PropertyChangeEvent pve)
propertyChange
in interface java.beans.PropertyChangeListener
protected void textEdited(FigText ft) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
protected boolean canEdit(Fig f)
public void mousePressed(java.awt.event.MouseEvent me)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent me)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent me)
mouseExited
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent me)
mouseClicked
in interface java.awt.event.MouseListener
public void keyPressed(java.awt.event.KeyEvent ke)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent ke)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent ke)
keyTyped
in interface java.awt.event.KeyListener
protected void modelChanged(MElementEvent e)
protected void updateStereotypeText()
public void setOwner(java.lang.Object own)
public void propertySet(MElementEvent mee)
public void listRoleItemSet(MElementEvent mee)
public void recovered(MElementEvent mee)
public void removed(MElementEvent mee)
public void roleAdded(MElementEvent mee)
public void roleRemoved(MElementEvent mee)
public void dispose()
org.tigris.gef.presentation.Fig#dispose()
public NotationName getContextNotation()
getContextNotation
in interface NotationContext
public void notationChanged(ArgoNotationEvent event)
ArgoNotationEventListener
notationChanged
in interface ArgoNotationEventListener
public void notationAdded(ArgoNotationEvent event)
ArgoNotationEventListener
notationAdded
in interface ArgoNotationEventListener
public void notationRemoved(ArgoNotationEvent event)
ArgoNotationEventListener
notationRemoved
in interface ArgoNotationEventListener
public void notationProviderAdded(ArgoNotationEvent event)
ArgoNotationEventListener
notationProviderAdded
in interface ArgoNotationEventListener
public void notationProviderRemoved(ArgoNotationEvent event)
ArgoNotationEventListener
notationProviderRemoved
in interface ArgoNotationEventListener
public void renderingChanged()
public boolean hit(java.awt.Rectangle r)
org.tigris.gef.presentation.Fig#hit(Rectangle)
public void delete()
org.tigris.gef.presentation.Fig#delete()
public void damage()
org.tigris.gef.presentation.Fig#damage()
protected boolean updateClassifiers()
Updates the classifiers the edge is attached to.
Calls a helper method (layoutThisToSelf) to avoid this edge disappearing if the new source and dest are the same node.
protected java.lang.Object getSource()
protected java.lang.Object getDestination()
public void postLoad()
org.tigris.gef.presentation.Fig#postLoad()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20030919) | ArgoUML Project Home | ArgoUML Cookbook |