|
||||||||||
| 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.FigCompartment
public abstract class FigCompartment
Presentation logic for a UML List Compartment.
The UML defines a Name Compartment, and a List Compartment. This class implements the latter.
A List Compartment is a boxed compartment, containing vertically stacked figs, which is common to e.g. an operations compartment and an attributes compartment.
The bigPort is filled, but has no border. All other figs contained in this group may not be filled, but can have a border.
The size calculation done here supports vertically stacked sub-figs of this group and supports all compartment specializations.
| 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 | |
|---|---|
FigCompartment(int x,
int y,
int w,
int h)
Deprecated. for 0.27.3 by tfmorris. Use FigCompartment(Object, Rectangle, DiagramSettings). |
|
FigCompartment(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings)
Construct a new FigCompartment. |
|
| Method Summary | |
|---|---|
protected abstract void |
createModelElement()
Create a new model element for the compartment. |
Fig |
getBigPort()
|
abstract java.lang.Object |
getCompartmentType()
Implemented in the subclass to indicate the primary type of model element the compartment is designed to hold. |
boolean |
getFilled()
Deprecated. |
java.awt.Dimension |
getMinimumSize()
The minimum width is the minimum width of the child with the widest minimum width. |
abstract java.lang.String |
getName()
This operation shall return a name unique for this type of compartment. |
boolean |
isFilled()
|
abstract void |
populate()
The concrete Fig implements this to build all the child Figs |
protected void |
setBoundsImpl(int x,
int y,
int w,
int h)
|
void |
setFilled(boolean f)
|
void |
setLineWidth(int w)
|
| 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 FigCompartment(int x,
int y,
int w,
int h)
FigCompartment(Object, Rectangle, DiagramSettings).
x - xy - yw - widthh - height
public FigCompartment(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings)
owner - owning UML elementbounds - rectangle describing bounds of compartmentsettings - render settings| Method Detail |
|---|
public Fig getBigPort()
public java.awt.Dimension getMinimumSize()
protected void setBoundsImpl(int x,
int y,
int w,
int h)
protected abstract void createModelElement()
public void setLineWidth(int w)
public void setFilled(boolean f)
@Deprecated public boolean getFilled()
public boolean isFilled()
public abstract java.lang.String getName()
See UML 1.4.2 OMG, chapter 5.24.1.2: Compartment name.
public abstract java.lang.Object getCompartmentType()
public abstract void populate()
|
||||||||||
| 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 |