|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFigNode
org.argouml.uml.diagram.ui.FigNodeModelElement
public abstract class FigNodeModelElement
Abstract class to display diagram icons for UML ModelElements that look like nodes and that have editable names and can be resized.
NOTE: This will drop the ArgoNotationEventListener and ArgoDiagramAppearanceEventListener interfaces in the next release. The corresponding methods have been marked as deprecated.
| Field Summary | |
|---|---|
protected static int |
ABSTRACT
Used for #buildModifierPopUp(). |
protected static int |
ACTIVE
Used for #buildModifierPopUp(). |
protected boolean |
invisibleAllowed
True if an instance is allowed to be invisible. |
protected static int |
LEAF
Used for #buildModifierPopUp(). |
protected static int |
NAME_FIG_HEIGHT
The default minimum height of the name fig, computed to allow room for the Critics "clarifiers" (red squiggly line) with the default font. |
protected static int |
NAME_V_PADDING
Padding to be used above and below the name. |
protected static int |
ROOT
Used for #buildModifierPopUp(). |
protected static int |
WIDTH
Default width for a node fig. |
| Fields inherited from interface org.argouml.uml.diagram.ui.ArgoFig |
|---|
DEBUG, DEBUG_COLOR, FILL_COLOR, INVISIBLE_LINE_COLOR, LINE_COLOR, LINE_WIDTH, ROWHEIGHT, SOLID_FILL_COLOR, STEREOHEIGHT, TEXT_COLOR, X0, Y0 |
| Constructor Summary | |
|---|---|
protected |
FigNodeModelElement(java.lang.Object element,
java.awt.Rectangle bounds,
DiagramSettings renderSettings)
Construct a figure at a specific position for a given model element with the given settings. |
| Method Summary | |
|---|---|
protected void |
addElementListener(java.lang.Object element)
Add an element listener and remember the registration. |
protected void |
addElementListener(java.lang.Object element,
java.lang.String property)
Add a listener for a given property name and remember the registration. |
protected void |
addElementListener(java.lang.Object element,
java.lang.String[] property)
Add a listener for an array of property names and remember the registration. |
void |
addEnclosedFig(Fig fig)
Add a Fig that is enclosed by this figure. |
protected void |
allowRemoveFromDiagram(boolean allowed)
|
void |
bindPort(java.lang.Object port,
Fig f)
|
protected java.lang.Object |
buildModifierPopUp(int items)
Build a pop-up menu item for the various modifiers. |
protected ArgoJMenu |
buildShowPopUp()
|
protected java.lang.Object |
buildVisibilityPopUp()
|
void |
calcBounds()
|
java.lang.String |
classNameAndBounds()
Deprecated. |
java.lang.Object |
clone()
Clone this figure. |
protected Fig |
createBigPortFig()
Overrule this if a rectangle is not usable. |
protected void |
createContainedModelElement(FigGroup fg,
java.awt.event.InputEvent me)
Create a new model element contained in the fig owner. |
protected FigStereotypesGroup |
createStereotypeFig()
|
void |
delayedVetoableChange(java.beans.PropertyChangeEvent pce)
|
void |
deleteFromModel()
|
protected void |
determineDefaultPathVisible()
At creation time of the Fig, we determine if the path should be visible by default. |
void |
diagramFontChanged(ArgoDiagramAppearanceEvent e)
Deprecated. for 0.27.2 by tfmorris. The owning diagram manages global changes to rendering defaults. |
void |
displace(int xInc,
int yInc)
To redraw each element correctly when changing its location with X and Y additions. |
void |
enableSizeChecking(boolean flag)
The setter for checkSize. |
Fig |
getBigPort()
|
DiElement |
getDiElement()
|
java.util.Vector<Fig> |
getEnclosedFigs()
|
protected Fig |
getEncloser()
|
Fig |
getEnclosingFig()
|
ItemUID |
getItemUID()
|
java.awt.Dimension |
getMinimumSize()
Returns the minimum size of the Fig. |
java.lang.String |
getName()
Get the name of the model element this Fig represents. |
java.awt.Rectangle |
getNameBounds()
Get the Rectangle in which the model elements name is displayed |
protected FigText |
getNameFig()
Get the Fig that displays the model element name. |
protected int |
getNameFigFontStyle()
Determines the font style based on the UML model. |
protected int |
getNotationProviderType()
Overrule this for subclasses that need a different NotationProvider. |
protected NotationSettings |
getNotationSettings()
|
java.util.Vector |
getPopUpActions(java.awt.event.MouseEvent me)
This method returns a Vector of one of these 4 types: AbstractAction, JMenu, JMenuItem, JSeparator. |
protected static int |
getPopupAddOffset()
|
Project |
getProject()
Deprecated. for 0.27.2 by tfmorris. Implementations should have all the information that they require in the DiagramSettings object. |
protected Fig |
getRemoveDelegate()
Subclasses should override this to redirect a remove request from one Fig to another. |
DiagramSettings |
getSettings()
|
int |
getStereotypeCount()
Get the number of stereotypes contained in this FigNode |
protected FigStereotypesGroup |
getStereotypeFig()
Get the Fig containing the stereotype(s). |
DiagramSettings.StereotypeStyle |
getStereotypeStyle()
|
int |
getStereotypeView()
Deprecated. for 0.27.2 by tfmorris. Use getStereotypeStyle(). |
java.lang.String |
getTipString(java.awt.event.MouseEvent me)
|
boolean |
hit(java.awt.Rectangle r)
|
protected ToDoItem |
hitClarifier(int x,
int y)
|
protected void |
initNotationProviders(java.lang.Object own)
Replace the NotationProvider(s). |
protected boolean |
isCheckSize()
|
boolean |
isDragConnectable()
|
boolean |
isEditable()
Determine if this node can be edited. |
protected boolean |
isPartlyOwner(Fig fig,
java.lang.Object o)
|
protected boolean |
isPartlyOwner(java.lang.Object o)
|
boolean |
isPathVisible()
Determine if the path is visible. |
protected boolean |
isReadyToEdit()
|
protected boolean |
isSingleTarget()
Determine if this Fig is the sole selected target in the TargetManager |
void |
keyPressed(java.awt.event.KeyEvent ke)
|
void |
keyReleased(java.awt.event.KeyEvent ke)
|
void |
keyTyped(java.awt.event.KeyEvent ke)
|
Selection |
makeSelection()
|
protected void |
modelChanged(java.beans.PropertyChangeEvent event)
This is a template method called by the ArgoUML framework as the result of a change to a model element. |
void |
mouseClicked(java.awt.event.MouseEvent me)
|
protected void |
moveIntoComponent(Fig newEncloser)
Handle the case where this fig is moved into a Component. |
void |
notationAdded(ArgoNotationEvent event)
Deprecated. for 0.27.2 by tfmorris. |
void |
notationChanged(ArgoNotationEvent event)
Deprecated. for 0.27.2 by tfmorris. Changes to notatation provider are now handled by the owning diagram. |
void |
notationProviderAdded(ArgoNotationEvent event)
Deprecated. for 0.27.2 by tfmorris. |
void |
notationProviderRemoved(ArgoNotationEvent event)
Deprecated. for 0.27.2 by tfmorris. |
void |
notationRemoved(ArgoNotationEvent event)
Deprecated. for 0.27.2 by tfmorris. |
void |
paintClarifiers(java.awt.Graphics g)
Displays visual indications of pending ToDoItems. |
java.lang.String |
placeString()
Default Reply text to be shown while placing node in diagram. |
void |
propertyChange(java.beans.PropertyChangeEvent pve)
|
protected void |
removeAllElementListeners()
Unregister all listeners registered through addElementListener |
protected void |
removeElementListener(java.lang.Object element)
Remove an element listener and remembered registration. |
void |
removeEnclosedFig(Fig fig)
Removes the given Fig from the list of enclosed Figs. |
void |
removeFromDiagram()
|
protected void |
removeFromDiagramImpl()
If you override this method, make sure to remove all listeners: If you don't, objects in a deleted project will still receive events. |
void |
renderingChanged()
Rerender the entire fig. |
protected void |
setBigPort(Fig bp)
Deprecated. by MVW since V0.28.1. Use createBigPortFig()
instead, to guarantee correct initialization. |
protected void |
setBoundsImpl(int x,
int y,
int w,
int h)
Sets the bounds of this node taking the stereotype view into consideration. Do not override this method, override setStandardBounds(int, int, int, int) instead. |
void |
setDiElement(DiElement element)
|
protected void |
setEditable(boolean canEdit)
By default a node is directly editable by simply selecting that node and starting to type. |
protected void |
setEncloser(Fig e)
|
void |
setEnclosingFig(Fig newEncloser)
|
void |
setItemUID(ItemUID id)
Set the item UID. |
void |
setLayer(Layer lay)
This is the final call at creation time of the Fig, i.e. |
void |
setLineWidth(int w)
|
void |
setName(java.lang.String n)
Change the name of the model element this Fig represents. |
protected void |
setNameFig(FigText fig)
Set the Fig that displays the model element name. |
void |
setOwner(java.lang.Object owner)
Deprecated. for 0.27.3 by tfmorris. Set owner in constructor. This method is implemented in GEF, so we'll leave this implementation here to block any attempts to use it within ArgoUML. |
void |
setPathVisible(boolean visible)
Set the visibility of the path. |
void |
setProject(Project project)
Deprecated. |
protected void |
setReadyToEdit(boolean v)
|
void |
setSettings(DiagramSettings renderSettings)
Set the rendering settings to be used for this fig. |
protected void |
setStandardBounds(int x,
int y,
int w,
int h)
Replaces setBoundsImpl(int, int, int, int). |
void |
setStereotypeStyle(DiagramSettings.StereotypeStyle style)
Set the stereotype style to be used for rendering this fig. |
void |
setStereotypeView(int s)
Deprecated. for 0.27.2 by tfmorris. Use #setStereotypeStyle(StereotypeStyle). |
protected void |
setSuppressCalcBounds(boolean scb)
TODO: Move this in FigGroup (in GEF). |
void |
setVisible(boolean visible)
Set visibility of figure. |
protected void |
showHelp(java.lang.String s)
Utility function to localize the given string with help text, and show it in the status bar of the ArgoUML window. |
protected void |
textEdited(FigText ft)
This method is called after the user finishes editing a text field that is in the FigNodeModelElement. |
protected void |
textEditStarted(FigText ft)
This method is called when the user doubleclicked on the text field, and starts editing. |
protected void |
updateBounds()
Determine new bounds. |
protected void |
updateElementListeners(java.util.Set<java.lang.Object[]> listenerSet)
Update the set of registered listeners to match the given set using a minimal update strategy to remove unneeded listeners and add new listeners. |
protected void |
updateFont()
This function should, for all FigTexts, recalculate the font-style (plain, bold, italic, bold/italic), and apply it by calling FigText.setFont(). |
protected void |
updateLayout(UmlChangeEvent event)
This is a template method called by the ArgoUML framework as the result of a change to a model element. |
protected void |
updateListeners(java.lang.Object oldOwner,
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 |
updateStereotypeIcon()
|
protected void |
updateStereotypeText()
Updates the text of the stereotype FigText. |
void |
vetoableChange(java.beans.PropertyChangeEvent pce)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, 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.argouml.cognitive.Highlightable |
|---|
getHighlight, setHighlight |
| Field Detail |
|---|
protected static final int WIDTH
protected static final int NAME_FIG_HEIGHT
protected static final int NAME_V_PADDING
protected boolean invisibleAllowed
protected static final int ROOT
protected static final int ABSTRACT
protected static final int LEAF
protected static final int ACTIVE
| Constructor Detail |
|---|
protected FigNodeModelElement(java.lang.Object element,
java.awt.Rectangle bounds,
DiagramSettings renderSettings)
Beware: the width and height in the given Rectangle are currently ignored. According issue 5604 this is a bug.
element - ModelElement associated with figurebounds - x & y are used to set position, width & height are ignoredrenderSettings - the rendering settings to use for the Fig| Method Detail |
|---|
protected Fig createBigPortFig()
protected FigStereotypesGroup createStereotypeFig()
public void setLayer(Layer lay)
lay - the Layer (which has a 1..1 relation to the Diagram)org.tigris.gef.presentation.Fig#setLayer(org.tigris.gef.base.Layer)public java.lang.Object clone()
TODO: enclosedFigs, encloser and eventSenders may also need to be cloned.
Object.clone()public java.lang.String placeString()
public void setItemUID(ItemUID id)
IItemUID
setItemUID in interface IItemUIDid - UIDpublic ItemUID getItemUID()
getItemUID in interface IItemUIDprotected FigText getNameFig()
public java.awt.Rectangle getNameBounds()
protected void setNameFig(FigText fig)
fig - the name Figpublic java.lang.String getName()
public void setName(java.lang.String n)
n - the name of the model elementpublic java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
protected ArgoJMenu buildShowPopUp()
protected java.lang.Object buildVisibilityPopUp()
protected java.lang.Object buildModifierPopUp(int items)
This function is designed to be easily extendable with new items.
items - bitwise OR of the items: ROOT, ABSTRACT, LEAF, ACTIVE.
public Fig getEnclosingFig()
public void setEnclosingFig(Fig newEncloser)
protected void moveIntoComponent(Fig newEncloser)
newEncloser - the new encloser for this Figpublic void addEnclosedFig(Fig fig)
fig - The fig to be addedpublic void removeEnclosedFig(Fig fig)
fig - The Fig to be removedpublic java.util.Vector<Fig> getEnclosedFigs()
public Selection makeSelection()
public void paintClarifiers(java.awt.Graphics g)
paintClarifiers in interface Clarifiableg - the graphics deviceClAttributeCompartment
protected ToDoItem hitClarifier(int x,
int y)
x - the x of the hity - the y of the hit
public java.lang.String getTipString(java.awt.event.MouseEvent me)
public void vetoableChange(java.beans.PropertyChangeEvent pce)
vetoableChange in interface java.beans.VetoableChangeListenerpublic void delayedVetoableChange(java.beans.PropertyChangeEvent pce)
delayedVetoableChange in interface DelayedVChangeListenerpce - the eventprotected void updateBounds()
This algorithm makes the box grow (if the calculated minimum size grows), but then it can never shrink again (not even if the calculated minimum size is smaller).
If the user can not resize the fig, e.g. like the FigActor or FigFinalState, then we return the original size.
public void propertyChange(java.beans.PropertyChangeEvent pve)
propertyChange in interface java.beans.PropertyChangeListenerprotected void textEditStarted(FigText ft)
It is also possible to alter the text to be edited already here, e.g. by adding the stereotype in front of the name, by using setFullyHandleStereotypes(true) in the NotationSettings argument of the NotationProvider.toString() function, but that seems not user-friendly. See issue 3838.
ft - the FigText that will be edited and contains the start-textprotected void showHelp(java.lang.String s)
TODO: Work this out. One matter to possibly improve: show multiple lines.
s - the given string to be localized and shown
protected void textEdited(FigText ft)
throws java.beans.PropertyVetoException
ft - the FigText that has been edited and contains the new text
java.beans.PropertyVetoException - thrown when new text represents
an unacceptable valuepublic void mouseClicked(java.awt.event.MouseEvent me)
mouseClicked in interface java.awt.event.MouseListenerpublic void keyPressed(java.awt.event.KeyEvent ke)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent ke)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent ke)
keyTyped in interface java.awt.event.KeyListenerprotected void modelChanged(java.beans.PropertyChangeEvent event)
Override this in any subclasses in order to change what model elements the FigNode is listening to as a result of change to the model.
This method is guaranteed by the framework to be running on the same thread as the model subsystem.
TODO: Lets refactor this at some time to take UmlChangeEvent argument
event - the UmlChangeEvent that caused the changeprotected void updateLayout(UmlChangeEvent event)
Override this in any subclasses in order to restructure the FigNode due to change of any model element that this FigNode is listening to.
This method automatically updates the stereotype rendering.
The default behavior is to update the name and stereotype text.
For e.g. a Package, if the visibility is changed via the properties panel, then the display of it on the diagram has to follow the change. This is not handled here, but by the notationProviderName.
This method is guaranteed by the framework to be running on the Swing/AWT thread.
event - the UmlChangeEvent that caused the change
protected void createContainedModelElement(FigGroup fg,
java.awt.event.InputEvent me)
fg - The fig group to which this appliesme - The input event that triggered us. In the current
implementation a mouse double click.protected boolean isPartlyOwner(java.lang.Object o)
o - the given object
protected boolean isPartlyOwner(Fig fig,
java.lang.Object o)
fig - the given fig (may be a group)o - the given object
public void deleteFromModel()
protected void initNotationProviders(java.lang.Object own)
This method shall not be used for the initial creation of notation providers, but only for replacing them when required. Initialization must be done in the constructor using methods which can't be overridden.
NotationProviders can not be updated - they are lightweight throw-away objects. Hence this method creates a (new) NotationProvider whenever needed. E.g. when the notation language is changed by the user, then the NPs are to be re-created. So, this method shall not be called from a Fig constructor.
After the removal of the deprecated method setOwner(), this method shall contain the following statement: assert notationProviderName != null
own - owning UML elementprotected int getNotationProviderType()
protected void updateStereotypeText()
protected void updateNameText()
public boolean isPathVisible()
PathContainer
isPathVisible in interface PathContainerpublic void setPathVisible(boolean visible)
PathContainer
setPathVisible in interface PathContainervisible - the new path status.protected void determineDefaultPathVisible()
The path is a concatenation of the names of all packages by which this modelelement is contained, seperated by "::" (for UML at least).
If the default namespace of the diagram corresponds to the namespace of the modelelement, then we do NOT show the path. Otherwise, we do.
RRose uses the same heuristic algorithm, but shows "(from <path>)" below the name, while we follow the UML syntax.
@Deprecated public java.lang.String classNameAndBounds()
protected void updateListeners(java.lang.Object oldOwner,
java.lang.Object newOwner)
An explanation of the original purpose of this method is given in issue 1321.
This function is used by the modelChanged() function.
In certain cases, it is imperative that indeed ALL listeners are updated, since they are ALL removed by a call to removeElementListener.
IF this method is called with both the oldOwner and the newOwner equal and not null, AND we listen only to the owner itself, THEN we can safely ignore the call, but ELSE we need to update the listeners of the related elements, since the related elements may have been replaced.
newOwner - null, or the owner of this.
The former means that all listeners have to be removed.oldOwner - null, or the previous owner
The former means that all listeners have to be set.@Deprecated public void notationChanged(ArgoNotationEvent event)
ArgoNotationEventListener
notationChanged in interface ArgoNotationEventListenerevent - ArgoNotationEvent describing the change.ArgoNotationEventListener.notationChanged(org.argouml.application.events.ArgoNotationEvent)@Deprecated public void notationAdded(ArgoNotationEvent event)
ArgoNotationEventListener
notationAdded in interface ArgoNotationEventListenerevent - ArgoNotationEvent describing the added notation.ArgoNotationEventListener.notationAdded(org.argouml.application.events.ArgoNotationEvent)@Deprecated public void notationRemoved(ArgoNotationEvent event)
ArgoNotationEventListener
notationRemoved in interface ArgoNotationEventListenerevent - ArgoNotationEvent describing the removed notation.ArgoNotationEventListener.notationRemoved(org.argouml.application.events.ArgoNotationEvent)@Deprecated public void notationProviderAdded(ArgoNotationEvent event)
ArgoNotationEventListener
notationProviderAdded in interface ArgoNotationEventListenerevent - ArgoNotationEvent describing
the added notation provider.ArgoNotationEventListener.notationProviderAdded(org.argouml.application.events.ArgoNotationEvent)@Deprecated public void notationProviderRemoved(ArgoNotationEvent event)
ArgoNotationEventListener
notationProviderRemoved in interface ArgoNotationEventListenerevent - ArgoNotationEvent describing
the removed notation provider.ArgoNotationEventListener.notationProviderRemoved(org.argouml.application.events.ArgoNotationEvent)public void renderingChanged()
This is may be an expensive operation for subclasses which are complex, so should be used sparingly. This functionality was originally the functionality of modelChanged but modelChanged takes the event now into account.
renderingChanged in interface ArgoFigprotected void updateStereotypeIcon()
public void calcBounds()
public void enableSizeChecking(boolean flag)
flag - the new valuepublic boolean hit(java.awt.Rectangle r)
public final void removeFromDiagram()
protected Fig getRemoveDelegate()
protected void removeFromDiagramImpl()
Also important for remove from diagram!
protected FigStereotypesGroup getStereotypeFig()
protected void setBigPort(Fig bp)
createBigPortFig()
instead, to guarantee correct initialization.
bp - the bigPort, which is the port where edges
connect to this nodepublic Fig getBigPort()
protected boolean isCheckSize()
public boolean isDragConnectable()
protected void setEncloser(Fig e)
e - The _encloser to set.protected Fig getEncloser()
protected boolean isReadyToEdit()
protected void setReadyToEdit(boolean v)
v - if ready to editprotected void setSuppressCalcBounds(boolean scb)
scb - The suppressCalcBounds to set.public void setVisible(boolean visible)
invisibleAllowed is not
true and this method is passed a parameter of
false it will throw an IllegalArgumentException.
visible - new visibility - true = visible.org.tigris.gef.presentation.Fig#setVisible(boolean)
public void displace(int xInc,
int yInc)
xInc - the increment in the x directionyInc - the increment in the y directionprotected void allowRemoveFromDiagram(boolean allowed)
allowed - true if the function RemoveFromDiagram is allowedpublic void setDiElement(DiElement element)
public DiElement getDiElement()
protected static int getPopupAddOffset()
public boolean isEditable()
protected void setEditable(boolean canEdit)
canEdit - new state, false = editing disabled.protected void addElementListener(java.lang.Object element)
element - element to listen for changes onModelEventPump.addModelEventListener(PropertyChangeListener, Object, String)
protected void addElementListener(java.lang.Object element,
java.lang.String property)
element - element to listen for changes onproperty - name of property to listen for changes ofModelEventPump.addModelEventListener(PropertyChangeListener,
Object, String)
protected void addElementListener(java.lang.Object element,
java.lang.String[] property)
element - element to listen for changes onproperty - array of property names (Strings) to listen for changes ofModelEventPump.addModelEventListener(PropertyChangeListener,
Object, String)protected void removeElementListener(java.lang.Object element)
element - element to listen for changes onModelEventPump.addModelEventListener(PropertyChangeListener, Object, String)protected void removeAllElementListeners()
addElementListener(Object, String)protected void updateElementListeners(java.util.Set<java.lang.Object[]> listenerSet)
listenerSet - a set of arrays containing a tuple of a UML element
to be listened to and a set of property to be listened for.@Deprecated public void setProject(Project project)
UnsupportedOperationException if used. Figs are
added to a GraphModel which is, in turn, owned by a project.
setProject in interface ArgoFigproject - the project@Deprecated public Project getProject()
ArgoFig
getProject in interface ArgoFigArgoFig.getProject()protected boolean isSingleTarget()
public int getStereotypeView()
getStereotypeStyle().
public DiagramSettings.StereotypeStyle getStereotypeStyle()
getStereotypeStyle in interface StereotypeStyledStereotypeStyled.getStereotypeStyle()public int getStereotypeCount()
public void setStereotypeView(int s)
#setStereotypeStyle(StereotypeStyle).
s - the stereotype view to be setpublic void setStereotypeStyle(DiagramSettings.StereotypeStyle style)
setStereotypeStyle in interface StereotypeStyledstyle - the stereotype style to be set
protected void setBoundsImpl(int x,
int y,
int w,
int h)
setStandardBounds(int, int, int, int) instead.
public java.awt.Dimension getMinimumSize()
Do not call this function if the Fig is not resizable! In ArgoUML we decided that it is not needed to implement suitable getMinimumSize() methods for Figs that are not resizable.
protected void setStandardBounds(int x,
int y,
int w,
int h)
setBoundsImpl(int, int, int, int).
x - Desired X coordinate of upper left cornery - Desired Y coordinate of upper left cornerw - Desired width of the FigClassh - Desired height of the FigClassorg.tigris.gef.presentation.Fig#setBoundsImpl(int, int, int, int)public void diagramFontChanged(ArgoDiagramAppearanceEvent e)
diagramFontChanged in interface ArgoDiagramAppearanceEventListenere - the event or nullArgoDiagramAppearanceEventListener.diagramFontChanged(org.argouml.application.events.ArgoDiagramAppearanceEvent)protected void updateFont()
If the "deepUpdateFont" function does not work for a subclass, then override this method.
protected int getNameFigFontStyle()
public DiagramSettings getSettings()
getSettings in interface ArgoFigpublic void setSettings(DiagramSettings renderSettings)
ArgoFig
setSettings in interface ArgoFigrenderSettings - the rendering settings to useprotected NotationSettings getNotationSettings()
public void setLineWidth(int w)
@Deprecated public void setOwner(java.lang.Object owner)
setOwner in interface ArgoFigowner - owning UML element
java.lang.UnsupportedOperationExceptionorg.tigris.gef.presentation.Fig#setOwner(java.lang.Object)
public void bindPort(java.lang.Object port,
Fig f)
|
||||||||||
| 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 |