|
||||||||||
| 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
org.argouml.uml.diagram.ui.FigEditableCompartment
public abstract class FigEditableCompartment
Presentation logic for a boxed compartment, which is common to e.g. an operations compartment and an attributes compartment.
It adds a separator line at the top of the compartment, which follows the line width and color of the parent.
This class adds the possibility to make the whole compartment invisible, and a NotationProvider is used to handle (generate and parse) the texts shown in the compartment, i.e. the compartment texts are editable by the user.
This FigGroup shall only contain its bigPort, and Figs of type FigSeparator, and CompartmentFigText.
| Nested Class Summary | |
|---|---|
protected static class |
FigEditableCompartment.FigSeparator
Fig representing a horizontal line separator for compartment. |
| 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 | |
|---|---|
FigEditableCompartment(int x,
int y,
int w,
int h)
Deprecated. for 0.27.3 by tfmorris. Use FigEditableCompartment(Object, Rectangle, DiagramSettings). |
|
FigEditableCompartment(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings)
Construct a new FigGroup containing a "bigPort" or rectangle which encloses the entire group for use in attaching edges, etc and a separator. |
|
| Method Summary | |
|---|---|
void |
addFig(Fig fig)
|
protected FigSingleLineTextWithNotation |
createFigText(int x,
int y,
int w,
int h,
Fig aFig,
NotationProvider np)
Deprecated. for 0.27.3 by tfmorris. Subclasses must implement createFigText(Object, Rectangle, DiagramSettings,
NotationProvider)
which will become abstract in the future when this deprecated method is
removed. |
protected FigSingleLineTextWithNotation |
createFigText(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings,
NotationProvider np)
Factory method to create a FigSingleLineTextWithNotation which must be implemented by all subclasses. |
java.awt.Dimension |
getMinimumSize()
The minimum width is the minimum width of the widest child element. |
protected abstract int |
getNotationType()
|
protected FigEditableCompartment.FigSeparator |
getSeperatorFig()
|
protected abstract java.util.Collection |
getUmlCollection()
|
Fig |
makeExternalSeparatorFig()
Create an external Fig as separator line. |
void |
populate()
Fills the Fig by adding all figs within. |
void |
setExternalSeparatorFigBounds(java.awt.Rectangle r)
Set new bounds for the external separator line (if it exists). |
void |
setFillColor(java.awt.Color col)
|
void |
setFilled(boolean f)
|
void |
setLineColor(java.awt.Color col)
|
void |
setLineWidth(int w)
|
void |
setVisible(boolean visible)
If a boxed compartment is set to invisible then remove all its children. |
java.awt.Dimension |
updateFigGroupSize(int x,
int y,
int w,
int h,
boolean checkSize,
int rowHeight)
Returns the new size of the FigGroup (e.g. |
| Methods inherited from class org.argouml.uml.diagram.ui.FigCompartment |
|---|
createModelElement, getBigPort, getCompartmentType, getFilled, getName, isFilled, setBoundsImpl |
| 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 FigEditableCompartment(int x,
int y,
int w,
int h)
FigEditableCompartment(Object, Rectangle, DiagramSettings).
Two figs are added to this FigGroup: The bigPort (i.e. a box that encloses all compartments), and a separator.
x - xy - yw - widthh - height
public FigEditableCompartment(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings)
NOTE: Subclasses should call populate() when they are fully constructed.
owner - owning UML elementbounds - bounding rectangle of figsettings - render settings| Method Detail |
|---|
protected FigEditableCompartment.FigSeparator getSeperatorFig()
public void setVisible(boolean visible)
public void addFig(Fig fig)
protected abstract java.util.Collection getUmlCollection()
protected abstract int getNotationType()
public void populate()
populate in class FigCompartment
@Deprecated
protected FigSingleLineTextWithNotation createFigText(int x,
int y,
int w,
int h,
Fig aFig,
NotationProvider np)
createFigText(Object, Rectangle, DiagramSettings,
NotationProvider)
which will become abstract in the future when this deprecated method is
removed.
protected FigSingleLineTextWithNotation createFigText(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings,
NotationProvider np)
owner - owning UML elementbounds - position and sizesettings - render settingsnp - notation provider
public java.awt.Dimension updateFigGroupSize(int x,
int y,
int w,
int h,
boolean checkSize,
int rowHeight)
This method has side effects that are sometimes used.
x - xy - yw - wh - h
public java.awt.Dimension getMinimumSize()
getMinimumSize in class FigCompartmentpublic void setLineColor(java.awt.Color col)
public void setLineWidth(int w)
setLineWidth in class FigCompartmentpublic void setFillColor(java.awt.Color col)
public void setFilled(boolean f)
setFilled in class FigCompartmentpublic void setExternalSeparatorFigBounds(java.awt.Rectangle r)
r - the new boundspublic Fig makeExternalSeparatorFig()
|
||||||||||
| 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 |