|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFigGroup
org.argouml.uml.diagram.ui.ArgoFigGroup
org.argouml.uml.diagram.ui.FigStereotypesGroup
public class FigStereotypesGroup
A Fig designed to be the child of some FigNode or FigEdge to display the stereotypes of the model element represented by the parent Fig. Currently, multiple stereotypes are shown stacked one on top of the other, each enclosed by guillemets.
The minimum width of this fig is the largest minimum width of its child figs. The minimum height of this fig is the total minimum height of its child figs.
The owner of this Fig is the UML element that is extended with the stereotypes. We are listening to changes to the model: addition and removal of stereotypes.
This fig supports showing one keyword as the first "stereotype" in the list.
There is no way to remove a keyword fig, once added.
TODO: Allow for UML2 style display where all stereotypes are displayed in the same guillemet pair and are delimited by commas. The style should be changeable by calling getOrientation(Orientation). The swidget Orientation class can be used for this.
| Field Summary |
|---|
| 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 | |
|---|---|
FigStereotypesGroup(int x,
int y,
int w,
int h)
Deprecated. for 0.27.3 by tfmorris. Use FigStereotypesGroup(Object, Rectangle, DiagramSettings). |
|
FigStereotypesGroup(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings)
The constructor. |
|
| Method Summary | |
|---|---|
protected Fig |
getBigPort()
Deprecated. for 0.27.2. For backward compatibility only. The visibility of this method will be changed to private in the next release when FigStereotypesCompartment is removed. |
java.awt.Dimension |
getMinimumSize()
|
int |
getStereotypeCount()
Get the number of stereotypes contained in this group |
boolean |
isHidingStereotypesWithIcon()
|
void |
populate()
TODO: This should become private and only called from constructor |
void |
propertyChange(java.beans.PropertyChangeEvent event)
|
void |
removeFromDiagram()
|
protected void |
setBoundsImpl(int x,
int y,
int w,
int h)
|
void |
setHidingStereotypesWithIcon(boolean hideStereotypesWithIcon)
Turn on/off textual stereotype display in preference to icon. |
void |
setKeyword(java.lang.String word)
Allows a parent Fig to specify some keyword text to display amongst the stereotypes. |
| Methods inherited from class org.argouml.uml.diagram.ui.ArgoFigGroup |
|---|
getProject, getSettings, renderingChanged, setOwner, setProject, setSettings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public FigStereotypesGroup(int x,
int y,
int w,
int h)
FigStereotypesGroup(Object, Rectangle, DiagramSettings).
x - xy - yw - widthh - height
public FigStereotypesGroup(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings)
owner - owning UML elementbounds - position and sizesettings - render settings| Method Detail |
|---|
public void removeFromDiagram()
@Deprecated protected Fig getBigPort()
public void propertyChange(java.beans.PropertyChangeEvent event)
public void populate()
FigEditableCompartment.populate()public int getStereotypeCount()
protected void setBoundsImpl(int x,
int y,
int w,
int h)
public void setKeyword(java.lang.String word)
word - the text of the pseudo stereotypepublic boolean isHidingStereotypesWithIcon()
public void setHidingStereotypesWithIcon(boolean hideStereotypesWithIcon)
hideStereotypesWithIcon - true to hide textual stereotypes and
show icon instead.public java.awt.Dimension getMinimumSize()
|
||||||||||
| 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 |