|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FigNode | +--org.argouml.uml.diagram.ui.FigNodeModelElement | +--org.argouml.uml.diagram.static_structure.ui.FigPackage
Class to display graphics for a UML package in a class diagram.
Field Summary | |
---|---|
protected int |
_radius
|
protected boolean |
_showStereotype
Flags that indicates if the stereotype should be shown even if it is specified or not. |
protected FigRect |
_stereoLineBlinder
A rectangle to blank out the line that would otherwise appear at the bottom of the stereotype text box. |
protected static Category |
cat
|
int |
height
|
int |
indentX
|
int |
indentY
|
int |
MARGIN
|
int |
textH
|
int |
width
|
int |
x
|
int |
y
|
Fields inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement |
---|
_bigPort, _enclosedFigs, _encloser, _name, _readyToEdit, _shadowSize, _stereo, checkSize, ITALIC_LABEL_FONT, LABEL_FONT, ROWHEIGHT, STEREOHEIGHT, suppressCalcBounds |
Constructor Summary | |
---|---|
FigPackage()
|
|
FigPackage(GraphModel gm,
java.lang.Object node)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.awt.Color |
getFillColor()
|
boolean |
getFilled()
|
java.awt.Color |
getLineColor()
|
int |
getLineWidth()
|
java.awt.Dimension |
getMinimumSize()
|
java.util.Vector |
getPopUpActions(java.awt.event.MouseEvent me)
Build a collection of menu items relevant for a right-click popup menu on a Package. |
boolean |
getUseTrapRect()
|
java.lang.String |
placeString()
Reply text to be shown while placing node in diagram |
void |
renderingChanged()
Called to update the graphics. |
void |
setBounds(int x,
int y,
int w,
int h)
Sets the bounds, but the size will be at least the one returned by getMinimumSize() . |
void |
setFillColor(java.awt.Color col)
|
void |
setFilled(boolean f)
|
void |
setLineColor(java.awt.Color col)
|
void |
setLineWidth(int w)
|
protected void |
updateStereotypeText()
Updates the text of the sterotype FigText. |
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 |
Field Detail |
protected static Category cat
public final int MARGIN
public int x
public int y
public int width
public int height
public int indentX
public int indentY
public int textH
protected int _radius
protected boolean _showStereotype
protected FigRect _stereoLineBlinder
A rectangle to blank out the line that would otherwise appear at the bottom of the stereotype text box.
Constructor Detail |
public FigPackage()
public FigPackage(GraphModel gm, java.lang.Object node)
Method Detail |
public java.lang.String placeString()
FigNodeModelElement
placeString
in class FigNodeModelElement
public java.lang.Object clone()
public void setLineColor(java.awt.Color col)
public java.awt.Color getLineColor()
public void setFillColor(java.awt.Color col)
public java.awt.Color getFillColor()
public void setFilled(boolean f)
public boolean getFilled()
public void setLineWidth(int w)
public int getLineWidth()
public void renderingChanged()
renderingChanged
in class FigNodeModelElement
protected void updateStereotypeText()
FigNodeModelElement
updateStereotypeText
in class FigNodeModelElement
public boolean getUseTrapRect()
public java.awt.Dimension getMinimumSize()
public void setBounds(int x, int y, int w, int h)
Sets the bounds, but the size will be at least the one returned by
getMinimumSize()
.
If the required height is bigger, then the additional height is equally distributed among all figs (i.e. compartments), such that the cumulated height of all visible figs equals the demanded height
.
Some of this has "magic numbers" hardcoded in. In particular there is a knowledge that the minimum height of a name compartment is 21 pixels.
x
- Desired X coordinate of upper left cornery
- Desired Y coordinate of upper left cornerw
- Desired width of the FigClassh
- Desired height of the FigClasspublic java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
getPopUpActions
in class FigNodeModelElement
me
- a mouse event
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040216) | ArgoUML Project Home | ArgoUML Cookbook |