|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FigText | +--org.argouml.uml.diagram.ui.CompartmentFigText
A FigText class extension for FigClass/FigInterface/FigUseCase compartments.
This implementation now supports the extension point compartment in a use
case. The getFeature()
and setFeature(MFeature)
methods
are now deprecated in favour of the more generic getModelElement()
and setModelElement(MModelElement)
methods.
Field Summary | |
---|---|
protected boolean |
_isHighlighted
Record whether we are currently highlighted. |
protected MModelElement |
_modelElement
The model element with which we are associated. |
protected Fig |
_refFig
The bounding figure of the compartment containing this fig text. |
protected static Category |
cat
|
Constructor Summary | |
---|---|
CompartmentFigText(int x,
int y,
int w,
int h,
Fig aFig)
Build a new compartment figText of the given dimensions, within the compartment described by aFig . |
Method Summary | |
---|---|
MFeature |
getFeature()
Deprecated. As of ArgoUml version 0.9.9, Use the more general #getOwner() instead. |
java.awt.Color |
getFillColor()
Override for correct graphical behaviour. |
boolean |
getFilled()
Override for correct graphical behaviour. |
java.awt.Color |
getLineColor()
Override for correct graphical behaviour. |
int |
getLineWidth()
Override for correct graphical behaviour. |
MModelElement |
getModelElement()
Deprecated. As of ArgoUml version 0.9.9, use getOwner() |
boolean |
isHighlighted()
Return whether this item is highlighted. |
void |
setFeature(MFeature feature)
Deprecated. As of ArgoUml version 0.9.9, Use the more general setModelElement(MModelElement) instead. |
void |
setHighlighted(boolean flag)
Mark whether this item is to be highlighted. |
void |
setLineWidth(int w)
Override for correct graphical behaviour. |
void |
setModelElement(MModelElement modelElement)
Deprecated. As of ArgoUml version 0.9.9, use the more general setOwner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Category cat
protected Fig _refFig
The bounding figure of the compartment containing this fig text.
protected boolean _isHighlighted
Record whether we are currently highlighted.
protected MModelElement _modelElement
The model element with which we are associated.
Constructor Detail |
public CompartmentFigText(int x, int y, int w, int h, Fig aFig)
Build a new compartment figText of the given dimensions, within the
compartment described by aFig
.
Invoke the parent constructor, then set the reference to the associated compartment figure. The associated FigText is marked as expand only.
Warning. Won't work properly if aFig
is
null. A warning is printed.
x
- X coordinate of the top left of the FigText.y
- Y coordinate of the top left of the FigText.w
- Width of the FigText.h
- Height of the FigText.aFig
- The figure describing the whole compartmentMethod Detail |
public void setLineWidth(int w)
Override for correct graphical behaviour.
w
- Desired line width. Overridden and set to zero anyway.public int getLineWidth()
Override for correct graphical behaviour.
public boolean getFilled()
Override for correct graphical behaviour.
true
.public java.awt.Color getFillColor()
Override for correct graphical behaviour.
public java.awt.Color getLineColor()
Override for correct graphical behaviour.
public void setHighlighted(boolean flag)
Mark whether this item is to be highlighted.
If it is highlighted, make the superclass line width 1 rather than 0 and set the associated component fig as the target in the browser.
flag
- true
if the entry is to be highlighted,
false
otherwise.public boolean isHighlighted()
Return whether this item is highlighted.
true
if the entry is highlighted,
false
otherwise.public void setFeature(MFeature feature)
setModelElement(MModelElement)
instead.
Set the NSUML feature associated with this compartment.
Note. This is implemented using setModelElement(MModelElement)
.
feature
- The feature to set.public MFeature getFeature()
#getOwner()
instead.
Get the NSUML feature associated with this compartment.
Note. This is implemented using getModelElement()
and will return null
if that does not return an instance
of MFeature
.
public void setModelElement(MModelElement modelElement)
Set the NSUML model element associated with this compartment.
modelElement
- The model element to set.public MModelElement getModelElement()
Get the NSUML modelElement associated with this compartment.
|
||||||||||||
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 |