|
|||||||||||
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.FigGroup
org.tigris.gef.presentation.FigNode
org.argouml.uml.diagram.ui.FigNodeModelElement
Abstract class to display diagram icons for UML ModelElements that look like nodes and that have editiable names and can be resized.
Field Summary | |
protected org.tigris.gef.presentation.FigRect |
_bigPort
|
protected java.util.Vector |
_enclosedFigs
|
protected org.tigris.gef.presentation.Fig |
_encloser
|
org.tigris.gef.presentation.FigText |
_name
|
protected boolean |
_readyToEdit
|
int |
_shadowSize
|
org.tigris.gef.presentation.FigText |
_stereo
|
protected boolean |
checkSize
|
static java.awt.Font |
ITALIC_LABEL_FONT
|
static java.awt.Font |
LABEL_FONT
|
int |
MARGIN
|
protected static int |
ROWHEIGHT
|
protected static int |
STEREOHEIGHT
|
protected boolean |
suppressCalcBounds
|
Fields inherited from class org.tigris.gef.presentation.FigNode |
_blinkPorts, _figEdges, _highlight, ang135, ang225, ang315, ang45 |
Fields inherited from class org.tigris.gef.presentation.FigGroup |
_dynObjects, _figs |
Fields inherited from class org.tigris.gef.presentation.Fig |
_allowsSaving, _context, _dashes, _displayed, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _shown, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, DASH_ARRAYS, DASHED_CHOICES, MIN_SIZE |
Constructor Summary | |
FigNodeModelElement()
|
|
FigNodeModelElement(org.tigris.gef.graph.GraphModel gm,
java.lang.Object node)
Partially construct a new FigNode. |
Method Summary | |
void |
calcBounds()
|
protected void |
createFeatureIn(org.tigris.gef.presentation.FigGroup fg,
java.awt.event.InputEvent me)
|
void |
damage()
|
void |
delayedVetoableChange(java.beans.PropertyChangeEvent pce)
|
void |
delete()
|
void |
dispose()
|
void |
elementOrdering(java.util.Vector figures)
Update the order of this fig and the order of the figs that are inside of this fig |
void |
enableSizeChecking(boolean flag)
|
void |
finalize()
|
NotationName |
getContextNotation()
Returns the notation name for this fig. |
java.util.Vector |
getEnclosedFigs()
|
org.tigris.gef.presentation.Fig |
getEnclosingFig()
|
ItemUID |
getItemUID()
|
org.tigris.gef.presentation.FigText |
getNameFig()
|
java.util.Vector |
getPopUpActions(java.awt.event.MouseEvent me)
|
int |
getShadowSize()
|
java.lang.String |
getTipString(java.awt.event.MouseEvent me)
|
protected java.awt.Dimension |
getUpdatedSize(org.tigris.gef.presentation.FigGroup fg,
int x,
int y,
int w,
int h)
returns the new size of the FigGroup (either attributes or operations) after calculation new bounds for all sub-figs, considering their minimal sizes; FigGroup need not be displayed; no update event is fired |
boolean |
hit(java.awt.Rectangle r)
Necessary since GEF contains some errors regarding the hit subject. |
ToDoItem |
hitClarifier(int x,
int y)
|
protected boolean |
isPartlyOwner(org.tigris.gef.presentation.Fig fig,
java.lang.Object o)
|
protected boolean |
isPartlyOwner(java.lang.Object o)
|
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(ru.novosoft.uml.MElementEvent mee)
|
org.tigris.gef.base.Selection |
makeSelection()
|
protected void |
modelChanged(ru.novosoft.uml.MElementEvent mee)
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 any part of this FigNode, pass it down to one of the internal Figs. |
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)
Displays visual indications of pending ToDoItems. |
java.lang.String |
placeString()
Reply text to be shown while placing node in diagram |
void |
postLoad()
|
void |
propertyChange(java.beans.PropertyChangeEvent pve)
|
void |
propertySet(ru.novosoft.uml.MElementEvent mee)
|
void |
recovered(ru.novosoft.uml.MElementEvent mee)
|
void |
removed(ru.novosoft.uml.MElementEvent mee)
|
void |
renderingChanged()
Rerenders the fig if needed. |
void |
roleAdded(ru.novosoft.uml.MElementEvent mee)
|
void |
roleRemoved(ru.novosoft.uml.MElementEvent mee)
|
void |
setEnclosingFig(org.tigris.gef.presentation.Fig encloser)
Updates the modelelement container if the fig is moved in or out another fig. |
void |
setItemUID(ItemUID id)
|
void |
setOwner(java.lang.Object own)
|
void |
setShadowSize(int size)
|
protected void |
textEdited(org.tigris.gef.presentation.FigText ft)
This method is called after the user finishes editing a text field that is in the FigNodeModelElement. |
protected void |
updateBounds()
|
protected void |
updateListeners(java.lang.Object newOwner)
Implementations of this method should register/unregister the fig for all (model)events. |
protected void |
updateNameText()
Updates the text of the name FigText. |
protected void |
updateStereotypeText()
Updates the text of the sterotype FigText. |
void |
vetoableChange(java.beans.PropertyChangeEvent pce)
|
Methods inherited from class org.tigris.gef.presentation.FigNode |
addFigEdge, bindPort, cleanUp, clone, contains, deepHitPort, endTrans, getBlinkPorts, getFigEdges, getHighlight, getPortFig, getPortFigs, getPortSector, hidePorts, hitPort, hitPort, mouseEntered, mouseExited, mousePressed, mouseReleased, paint, removeFigEdge, removePort, setBlinkPorts, setBounds, setHighlight, showPorts, startTrans, superTranslate, translate, updateEdges |
Methods inherited from class org.tigris.gef.presentation.FigGroup |
addFig, elements, getDisplayedFigs, getFigs, getFillColor, getFilled, getFont, getFontFamily, getFontSize, getLineColor, getLineWidth, getPrivateData, getTextColor, getTextFillColor, getTextFilled, hitFig, isReshapable, isResizable, isRotatable, parseDynObjects, removeAll, removeFig, setFigs, setFillColor, setFilled, setFont, setFontFamily, setFontSize, setLineColor, setLineWidth, setPrivateData, setTextColor, setTextFillColor, setTextFilled |
Methods inherited from class org.tigris.gef.presentation.Fig |
addAnnotation, addPoint, addPropertyChangeListener, align, center, classNameAndBounds, connectionPoint, contains, contains, countCornersContained, createDrag, drawDashedLine, drawDashedPerimeter, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getClosestPoint, getContext, getDashed, getDashed01, getDashedString, getFilled01, getFirstPoint, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLastPoint, getLayer, getLocation, getLocked, getMinimumSize, getNumPoints, getOwner, getPerimeterLength, getPoints, getPoints, getPreferedSize, getResource, getSize, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, initAnnotations, insertPoint, intersects, isAnnotation, isDisplayed, isLowerRightResizable, isMovable, OK, pointAlongPerimeter, postSave, preSave, print, removeAnnotation, removeAnnotation, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setCenter, setContext, setDashed, setDashedString, setDisplayed, setGroup, setHandleBox, setHeight, setLayer, setLocation, setLocation, setLocked, setNumPoints, setPoints, setPoints, setPoints, setPoints, setPoints, setResource, setSavingAllowed, setSize, setSize, setVisState, setWidth, setX, setXs, setY, setYs, stuffBounds, stuffPointAlongPerimeter, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, within |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseListener |
mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from interface org.tigris.gef.ui.Highlightable |
addPropertyChangeListener, removePropertyChangeListener |
Field Detail |
public static java.awt.Font LABEL_FONT
public static java.awt.Font ITALIC_LABEL_FONT
public final int MARGIN
protected static final int ROWHEIGHT
protected static final int STEREOHEIGHT
protected boolean checkSize
protected org.tigris.gef.presentation.FigRect _bigPort
public org.tigris.gef.presentation.FigText _name
public org.tigris.gef.presentation.FigText _stereo
protected java.util.Vector _enclosedFigs
protected org.tigris.gef.presentation.Fig _encloser
protected boolean _readyToEdit
protected boolean suppressCalcBounds
public int _shadowSize
Constructor Detail |
public FigNodeModelElement()
public FigNodeModelElement(org.tigris.gef.graph.GraphModel gm, java.lang.Object node)
Method Detail |
public void finalize()
public java.lang.String placeString()
public void setItemUID(ItemUID id)
public ItemUID getItemUID()
public org.tigris.gef.presentation.FigText getNameFig()
public java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
getPopUpActions
in interface org.tigris.gef.ui.PopupGenerator
public org.tigris.gef.presentation.Fig getEnclosingFig()
public void setEnclosingFig(org.tigris.gef.presentation.Fig encloser)
Fig.setEnclosingFig(org.tigris.gef.presentation.Fig)
public java.util.Vector getEnclosedFigs()
public void elementOrdering(java.util.Vector figures)
public org.tigris.gef.base.Selection makeSelection()
public void paintClarifiers(java.awt.Graphics g)
ClAttributeCompartment
public ToDoItem hitClarifier(int x, int y)
public java.lang.String getTipString(java.awt.event.MouseEvent me)
public void vetoableChange(java.beans.PropertyChangeEvent pce)
vetoableChange
in interface java.beans.VetoableChangeListener
public void delayedVetoableChange(java.beans.PropertyChangeEvent pce)
delayedVetoableChange
in interface DelayedVChangeListener
protected void updateBounds()
public void propertyChange(java.beans.PropertyChangeEvent pve)
propertyChange
in interface java.beans.PropertyChangeListener
protected void textEdited(org.tigris.gef.presentation.FigText ft) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
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(ru.novosoft.uml.MElementEvent mee)
protected void createFeatureIn(org.tigris.gef.presentation.FigGroup fg, java.awt.event.InputEvent me)
public void propertySet(ru.novosoft.uml.MElementEvent mee)
propertySet
in interface ru.novosoft.uml.MElementListener
public void listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
listRoleItemSet
in interface ru.novosoft.uml.MElementListener
public void recovered(ru.novosoft.uml.MElementEvent mee)
recovered
in interface ru.novosoft.uml.MElementListener
public void removed(ru.novosoft.uml.MElementEvent mee)
removed
in interface ru.novosoft.uml.MElementListener
protected boolean isPartlyOwner(java.lang.Object o)
protected boolean isPartlyOwner(org.tigris.gef.presentation.Fig fig, java.lang.Object o)
public void roleAdded(ru.novosoft.uml.MElementEvent mee)
roleAdded
in interface ru.novosoft.uml.MElementListener
public void roleRemoved(ru.novosoft.uml.MElementEvent mee)
roleRemoved
in interface ru.novosoft.uml.MElementListener
public void dispose()
public void setOwner(java.lang.Object own)
protected void updateStereotypeText()
protected void updateNameText()
protected void updateListeners(java.lang.Object newOwner)
newOwner
- public NotationName getContextNotation()
getContextNotation
in interface NotationContext
NotationContext.getContextNotation()
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 void calcBounds()
public void enableSizeChecking(boolean flag)
protected java.awt.Dimension getUpdatedSize(org.tigris.gef.presentation.FigGroup fg, int x, int y, int w, int h)
public void setShadowSize(int size)
public int getShadowSize()
public boolean hit(java.awt.Rectangle r)
Fig.hit(Rectangle)
public void delete()
Fig.delete()
public void damage()
Fig.damage()
public void postLoad()
Fig.postLoad()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040125) | ArgoUML Project Home | ArgoUML Cookbook |