org.argouml.uml.diagram.ui
Class FigNodeModelElement

java.lang.Object
  extended byorg.tigris.gef.presentation.Fig
      extended byorg.tigris.gef.presentation.FigGroup
          extended byorg.tigris.gef.presentation.FigNode
              extended byorg.argouml.uml.diagram.ui.FigNodeModelElement
All Implemented Interfaces:
ArgoEventListener, ArgoNotationEventListener, java.lang.Cloneable, DelayedVChangeListener, java.util.EventListener, org.tigris.gef.ui.Highlightable, java.awt.event.KeyListener, ru.novosoft.uml.MElementListener, java.awt.event.MouseListener, NotationContext, org.tigris.gef.ui.PopupGenerator, java.beans.PropertyChangeListener, java.io.Serializable, java.beans.VetoableChangeListener
Direct Known Subclasses:
FigActor, FigClass, FigClassifierRole, FigComment, FigComponent, FigComponentInstance, FigInstance, FigInterface, FigMessage, FigMNode, FigMNodeInstance, FigNote, FigObject, FigObject, FigPackage, FigStateVertex, FigUseCase, ShadowComboBox.ShadowFig

public abstract class FigNodeModelElement
extends org.tigris.gef.presentation.FigNode
implements java.beans.VetoableChangeListener, DelayedVChangeListener, java.awt.event.MouseListener, java.awt.event.KeyListener, java.beans.PropertyChangeListener, ru.novosoft.uml.MElementListener, NotationContext, ArgoNotationEventListener

Abstract class to display diagram icons for UML ModelElements that look like nodes and that have editiable names and can be resized.

See Also:
Serialized Form

Field Summary
protected  org.tigris.gef.presentation.FigRect _bigPort
          Deprecated. 0.15.3 visibility will change use getter/setter. TODO: What is the name of the getter? What is the name of the setter?
private  int _cachedHeight
           
private  int _cachedWidth
           
private  NotationName _currentNotationName
           
protected  java.util.Vector _enclosedFigs
           
protected  org.tigris.gef.presentation.Fig _encloser
           
private  java.util.Set _eventSenders
          A set of object arrays consisting of a sender of events and the event types this object is interested in.
private  ItemUID _id
           
 org.tigris.gef.presentation.FigText _name
          Deprecated. 0.15.3 visibility will change use getNameFig() and setNameFig() to access the Figs. Use getName() and setName() to just change the text.
protected  boolean _readyToEdit
           
private static java.awt.image.ConvolveOp _shadowConvolveOp
           
private  java.awt.image.BufferedImage _shadowImage
           
private static java.awt.image.LookupOp _shadowLookupOp
           
 int _shadowSize
          Deprecated. 0.15.3 visibility will change use getter/setter
 org.tigris.gef.presentation.FigText _stereo
          Deprecated. 0.15.3 visibility will change use getter/setter getStereotypeFig() and setStereoTypeFig() to access the Figs. Use getStereotype() and setStereotype() to change stereotype text. TODO: How shall the calls _stereo.setJustificationByName("Center"); _stereo.setAllowsTab(false); _stereo.setEditable(false); _stereo.setExpandOnly(true); center(getStereotypeFig()); where private void center(FigText figText); be converted?
protected static java.lang.String BUNDLE
           
private  org.apache.log4j.Logger cat
           
protected  boolean checkSize
           
static java.awt.Font ITALIC_LABEL_FONT
           
static java.awt.Font LABEL_FONT
           
 int MARGIN
           
protected static int POPUP_ADD_OFFSET
          Offset from the end of the set of popup actions at which new items should be inserted by concrete figures.
protected static int ROWHEIGHT
           
protected static int SHADOW_COLOR_ALPHA
          The transparency value of the shadow color (0-255).
protected static int SHADOW_COLOR_VALUE
          The intensity value of the shadow color (0-255).
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, _extraFrameSpace
 
Fields inherited from class org.tigris.gef.presentation.Fig
_allowsSaving, _context, _dashes, _displayed, _fillColor, _filled, _g2dashes, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _selected, _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 addFig(org.tigris.gef.presentation.Fig f)
          Adds a fig to this FigNodeModelElement and removes it from the group it belonged to if any.
 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()
           
 java.lang.String getName()
          Get the name of the model element this Fig represents
 org.tigris.gef.presentation.FigText getNameFig()
          Get the Fig that displays the model element name
 java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
           
 int getShadowSize()
           
 java.lang.String getStereotype()
          Get the text describing the stereotype
protected  org.tigris.gef.presentation.Fig getStereotypeFig()
          Get the Fig containing the stereotype
 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)
          not used, do nothing.
 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 paint(java.awt.Graphics g)
          Overridden to paint shadows.
 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 setHandleBox(int x, int y, int w, int h)
          Overridden to notify project that save is needed when figure is resized.
 void setItemUID(ItemUID id)
           
 void setName(java.lang.String name)
          Change the name of the model element this Fig represents
protected  void setNameFig(org.tigris.gef.presentation.FigText fig)
          Set the Fig that displays the model element name
 void setOwner(java.lang.Object own)
           
 void setShadowSize(int size)
           
 void setStereotype(java.lang.String stereotype)
          Set the text describing the stereotype
protected  void setStereotypeFig(org.tigris.gef.presentation.Fig fig)
          Set the Fig containing the stereotype
 void superTranslate(int dx, int dy)
          Overridden to notify project that save is needed when figure is moved.
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, getPortFigs, getPortSector, hidePorts, hitPort, hitPort, isBlinkPorts, isDragConnectable, mouseEntered, mouseExited, mousePressed, mouseReleased, removeFigEdge, removePort, setBlinkPorts, setBounds, setHighlight, showPorts, translate, updateEdges
 
Methods inherited from class org.tigris.gef.presentation.FigGroup
addFigs, deepSelect, elements, getDisplayedFigs, getExtraFrameSpace, getFigAt, getFigs, getFigs, getFillColor, getFilled, getFont, getFontFamily, getFontSize, getLineColor, getLineWidth, getPrivateData, getSize, getSubFigBounds, getTextColor, getTextFillColor, getTextFilled, hitFig, isReshapable, isRotatable, iterator, parseDynObjects, removeAll, removeFig, setExtraFrameSpace, setFigs, 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, 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, getSingle, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, hasFillColor, hasLineColor, initAnnotations, insertPoint, intersects, intersectsPerimeter, isAnnotation, isCopieable, isCopyable, isCutable, isDisplayed, isFactoryConstructed, isLowerRightResizable, isMovable, isResizable, isSelected, isVisible, OK, pointAlongPerimeter, postSave, preSave, print, redraw, removeAnnotation, removeAnnotation, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setCenter, setContext, setDashed, setDashedString, setDisplayed, setGroup, setHeight, setLayer, setLocation, setLocation, setLocked, setMovable, setNumPoints, setPoints, setPoints, setPoints, setPoints, setPoints, setResizable, setResource, setSavingAllowed, setSelected, setSingle, setSize, setSize, setVisible, setVisState, setWidth, setX, setXs, setY, setYs, stuffBounds, stuffPointAlongPerimeter, translateAnnotations, 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

cat

private org.apache.log4j.Logger cat

_currentNotationName

private NotationName _currentNotationName

LABEL_FONT

public static java.awt.Font LABEL_FONT

ITALIC_LABEL_FONT

public static java.awt.Font ITALIC_LABEL_FONT

MARGIN

public final int MARGIN
See Also:
Constant Field Values

ROWHEIGHT

protected static final int ROWHEIGHT
See Also:
Constant Field Values

STEREOHEIGHT

protected static final int STEREOHEIGHT
See Also:
Constant Field Values

checkSize

protected boolean checkSize

POPUP_ADD_OFFSET

protected static final int POPUP_ADD_OFFSET
Offset from the end of the set of popup actions at which new items should be inserted by concrete figures.

See Also:
Constant Field Values

_shadowImage

private java.awt.image.BufferedImage _shadowImage

_cachedWidth

private int _cachedWidth

_cachedHeight

private int _cachedHeight

_shadowLookupOp

private static final java.awt.image.LookupOp _shadowLookupOp

_shadowConvolveOp

private static final java.awt.image.ConvolveOp _shadowConvolveOp

SHADOW_COLOR_VALUE

protected static final int SHADOW_COLOR_VALUE
The intensity value of the shadow color (0-255).

See Also:
Constant Field Values

SHADOW_COLOR_ALPHA

protected static final int SHADOW_COLOR_ALPHA
The transparency value of the shadow color (0-255).

See Also:
Constant Field Values

BUNDLE

protected static final java.lang.String BUNDLE
See Also:
Constant Field Values

_bigPort

protected org.tigris.gef.presentation.FigRect _bigPort
Deprecated. 0.15.3 visibility will change use getter/setter. TODO: What is the name of the getter? What is the name of the setter?


_name

public org.tigris.gef.presentation.FigText _name
Deprecated. 0.15.3 visibility will change use getNameFig() and setNameFig() to access the Figs. Use getName() and setName() to just change the text.


_stereo

public org.tigris.gef.presentation.FigText _stereo
Deprecated. 0.15.3 visibility will change use getter/setter getStereotypeFig() and setStereoTypeFig() to access the Figs. Use getStereotype() and setStereotype() to change stereotype text. TODO: How shall the calls _stereo.setJustificationByName("Center"); _stereo.setAllowsTab(false); _stereo.setEditable(false); _stereo.setExpandOnly(true); center(getStereotypeFig()); where private void center(FigText figText); be converted?


_enclosedFigs

protected java.util.Vector _enclosedFigs

_encloser

protected org.tigris.gef.presentation.Fig _encloser

_readyToEdit

protected boolean _readyToEdit

suppressCalcBounds

protected boolean suppressCalcBounds

_shadowSize

public int _shadowSize
Deprecated. 0.15.3 visibility will change use getter/setter


_id

private ItemUID _id

_eventSenders

private java.util.Set _eventSenders
A set of object arrays consisting of a sender of events and the event types this object is interested in. The eventSenders are a cache to improve performance when this fig is disabled/enabled as interested listener to the events maintained in the _eventSenders set.

Constructor Detail

FigNodeModelElement

public FigNodeModelElement()

FigNodeModelElement

public FigNodeModelElement(org.tigris.gef.graph.GraphModel gm,
                           java.lang.Object node)
Partially construct a new FigNode. This method creates the _name element that holds the name of the model element and adds itself as a listener.

Method Detail

finalize

public void finalize()

placeString

public java.lang.String placeString()
Reply text to be shown while placing node in diagram


setItemUID

public void setItemUID(ItemUID id)

getItemUID

public ItemUID getItemUID()

getNameFig

public org.tigris.gef.presentation.FigText getNameFig()
Get the Fig that displays the model element name

Returns:
the name Fig

setNameFig

protected void setNameFig(org.tigris.gef.presentation.FigText fig)
Set the Fig that displays the model element name

Parameters:
fig - the name Fig

getName

public java.lang.String getName()
Get the name of the model element this Fig represents

Returns:
the name of the model element

setName

public void setName(java.lang.String name)
Change the name of the model element this Fig represents

Parameters:
name - the name of the model element

getPopUpActions

public java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
Specified by:
getPopUpActions in interface org.tigris.gef.ui.PopupGenerator

getEnclosingFig

public org.tigris.gef.presentation.Fig getEnclosingFig()

setEnclosingFig

public void setEnclosingFig(org.tigris.gef.presentation.Fig encloser)
Updates the modelelement container if the fig is moved in or out another fig. If this fig doesn't have an enclosing fig anymore, the namespace of the diagram will be the owning modelelement. If this fig is moved inside another FigNodeModelElement the owner of that fignodemodelelement will be the owning modelelement.

See Also:
Fig.setEnclosingFig(Fig)

getEnclosedFigs

public java.util.Vector getEnclosedFigs()

elementOrdering

public void elementOrdering(java.util.Vector figures)
Update the order of this fig and the order of the figs that are inside of this fig


makeSelection

public org.tigris.gef.base.Selection makeSelection()

paint

public void paint(java.awt.Graphics g)
Overridden to paint shadows. This method supports painting shadows for any FigNodeModelElement. Any Figs that are nested within the FigNodeModelElement will be shadowed.

TODO: If g is not a Graphics2D shadows cannot be painted. This is a problem when saving the diagram as SVG.

Parameters:
g - is a Graphics that we paint this object on.

paintClarifiers

public void paintClarifiers(java.awt.Graphics g)
Displays visual indications of pending ToDoItems. Please note that the list of advices (ToDoList) is not the same as the list of element known by the FigNode (_figs). Therefore, it is necessary to check if the graphic item exists before drawing on it. See ClAttributeCompartment for an example.

See Also:
ClAttributeCompartment

hitClarifier

public ToDoItem hitClarifier(int x,
                             int y)

getTipString

public java.lang.String getTipString(java.awt.event.MouseEvent me)

vetoableChange

public void vetoableChange(java.beans.PropertyChangeEvent pce)
Specified by:
vetoableChange in interface java.beans.VetoableChangeListener

delayedVetoableChange

public void delayedVetoableChange(java.beans.PropertyChangeEvent pce)
Specified by:
delayedVetoableChange in interface DelayedVChangeListener

updateBounds

protected void updateBounds()

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent pve)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

textEdited

protected void textEdited(org.tigris.gef.presentation.FigText ft)
                   throws java.beans.PropertyVetoException
This method is called after the user finishes editing a text field that is in the FigNodeModelElement. Determine which field and update the model. This class handles the name, subclasses should override to handle other text elements.

Throws:
java.beans.PropertyVetoException

mouseClicked

public 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. This allows the user to initiate direct text editing.

Specified by:
mouseClicked in interface java.awt.event.MouseListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent ke)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent ke)
not used, do nothing.

Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent ke)
not used, do nothing.

Specified by:
keyTyped in interface java.awt.event.KeyListener

modelChanged

protected void modelChanged(ru.novosoft.uml.MElementEvent mee)
This is called aftern any part of the UML MModelElement has changed. This method automatically updates the name FigText. Subclasses should override and update other parts.


createFeatureIn

protected void createFeatureIn(org.tigris.gef.presentation.FigGroup fg,
                               java.awt.event.InputEvent me)

propertySet

public void propertySet(ru.novosoft.uml.MElementEvent mee)
Specified by:
propertySet in interface ru.novosoft.uml.MElementListener

listRoleItemSet

public void listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
Specified by:
listRoleItemSet in interface ru.novosoft.uml.MElementListener

recovered

public void recovered(ru.novosoft.uml.MElementEvent mee)
Specified by:
recovered in interface ru.novosoft.uml.MElementListener

removed

public void removed(ru.novosoft.uml.MElementEvent mee)
Specified by:
removed in interface ru.novosoft.uml.MElementListener

isPartlyOwner

protected boolean isPartlyOwner(java.lang.Object o)

isPartlyOwner

protected boolean isPartlyOwner(org.tigris.gef.presentation.Fig fig,
                                java.lang.Object o)

roleAdded

public void roleAdded(ru.novosoft.uml.MElementEvent mee)
Specified by:
roleAdded in interface ru.novosoft.uml.MElementListener

roleRemoved

public void roleRemoved(ru.novosoft.uml.MElementEvent mee)
Specified by:
roleRemoved in interface ru.novosoft.uml.MElementListener

dispose

public void dispose()

setOwner

public void setOwner(java.lang.Object own)

updateStereotypeText

protected void updateStereotypeText()
Updates the text of the sterotype FigText. Override in subclasses to get wanted behaviour. TODO: remove all 'misuses' of the stereotype figtexts (like in FigInterface)


updateNameText

protected void updateNameText()
Updates the text of the name FigText.


updateListeners

protected void updateListeners(java.lang.Object newOwner)
Implementations of this method should register/unregister the fig for all (model)events. For FigNodeModelElement only the fig itself is registred as listening to events fired by the owner itself. But for, for example, FigClass the fig must also register for events fired by the operations and attributes of the owner.

Parameters:
newOwner -

getContextNotation

public NotationName getContextNotation()
Returns the notation name for this fig. First start to implement notations on a per fig basis.

Specified by:
getContextNotation in interface NotationContext
Returns:
null if the context does not wish to name a specific notation
See Also:
NotationContext.getContextNotation()

notationChanged

public void notationChanged(ArgoNotationEvent event)
Description copied from interface: ArgoNotationEventListener
Invoked when any aspect of the notation has been changed.

Specified by:
notationChanged in interface ArgoNotationEventListener
Parameters:
event - ArgoNotationEvent describing the change.

notationAdded

public void notationAdded(ArgoNotationEvent event)
Description copied from interface: ArgoNotationEventListener
Invoked when a notation has been added.

Specified by:
notationAdded in interface ArgoNotationEventListener
Parameters:
event - ArgoNotationEvent describing the added notation.

notationRemoved

public void notationRemoved(ArgoNotationEvent event)
Description copied from interface: ArgoNotationEventListener
Invoked when a notation has been removed.

Specified by:
notationRemoved in interface ArgoNotationEventListener
Parameters:
event - ArgoNotationEvent describing the removed notation.

notationProviderAdded

public void notationProviderAdded(ArgoNotationEvent event)
Description copied from interface: ArgoNotationEventListener
Invoked when a notation provider has been added.

Specified by:
notationProviderAdded in interface ArgoNotationEventListener
Parameters:
event - ArgoNotationEvent describing the added notation provider.

notationProviderRemoved

public void notationProviderRemoved(ArgoNotationEvent event)
Description copied from interface: ArgoNotationEventListener
Invoked when a notation provider has been removed.

Specified by:
notationProviderRemoved in interface ArgoNotationEventListener
Parameters:
event - ArgoNotationEvent describing the removed notation provider.

renderingChanged

public void renderingChanged()
Rerenders the fig if needed. This functionality was originally the functionality of modelChanged but modelChanged takes the event now into account.


calcBounds

public void calcBounds()

enableSizeChecking

public void enableSizeChecking(boolean flag)

getUpdatedSize

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


setShadowSize

public void setShadowSize(int size)

getShadowSize

public int getShadowSize()

hit

public boolean hit(java.awt.Rectangle r)
Necessary since GEF contains some errors regarding the hit subject.

See Also:
Fig.hit(Rectangle)

delete

public void delete()
See Also:
Fig.delete()

damage

public void damage()
See Also:
Fig.damage()

postLoad

public void postLoad()
See Also:
Fig.postLoad()

superTranslate

public void superTranslate(int dx,
                           int dy)
Overridden to notify project that save is needed when figure is moved.


setHandleBox

public void setHandleBox(int x,
                         int y,
                         int w,
                         int h)
Overridden to notify project that save is needed when figure is resized.


addFig

public void addFig(org.tigris.gef.presentation.Fig f)
Adds a fig to this FigNodeModelElement and removes it from the group it belonged to if any. Correction to the GEF implementation that does not handle the double association correctly.

See Also:
TODO: remove this once GEF0.10 is in place and tested

setStereotypeFig

protected void setStereotypeFig(org.tigris.gef.presentation.Fig fig)
Set the Fig containing the stereotype

Parameters:
fig - the stereotype Fig

getStereotypeFig

protected org.tigris.gef.presentation.Fig getStereotypeFig()
Get the Fig containing the stereotype

Returns:
the stereotype Fig

setStereotype

public void setStereotype(java.lang.String stereotype)
Set the text describing the stereotype

Parameters:
stereotype - the stereotype text

getStereotype

public java.lang.String getStereotype()
Get the text describing the stereotype

Returns:
the stereotype text


ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook