|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.tigris.gef.presentation.Fig | +--org.tigris.gef.presentation.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 ru.novosoft.uml.foundation.core.MModelElement |
_modelElement
The model element with which we are associated. |
protected org.tigris.gef.presentation.Fig |
_refFig
The bounding figure of the compartment containing this fig text. |
protected static org.apache.log4j.Category |
cat
|
Fields inherited from class org.tigris.gef.presentation.FigText |
_allowsTab, _botMargin, _curText, _editable, _editMode, _expandOnly, _fm, _font, _justification, _leftMargin, _lineHeight, _lineSpacing, _multiLine, _rightMargin, _textColor, _textEditorClass, _textFillColor, _textFilled, _topMargin, _underline, JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, MIN_TEXT_WIDTH |
Fields inherited from class org.tigris.gef.presentation.Fig |
_allowsSaving, _context, _dashes, _displayed, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _shown, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, DASH_ARRAYS, DASHED_CHOICES, MIN_SIZE |
Constructor Summary | |
CompartmentFigText(int x,
int y,
int w,
int h,
org.tigris.gef.presentation.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. |
Method Summary | |
ru.novosoft.uml.foundation.core.MFeature |
getFeature()
Deprecated. Use the more general Fig.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. |
ru.novosoft.uml.foundation.core.MModelElement |
getModelElement()
Deprecated. use getOwner() |
boolean |
isHighlighted()
Return whether this item is highlighted. |
void |
setFeature(ru.novosoft.uml.foundation.core.MFeature feature)
Deprecated. Use the more general setModelElement(MModelElement) instead. |
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. |
void |
setLineWidth(int w)
Override for correct graphical behaviour. |
void |
setModelElement(ru.novosoft.uml.foundation.core.MModelElement modelElement)
Deprecated. use the more general setOwner |
Methods inherited from class org.tigris.gef.presentation.FigText |
append, append, calcBounds, deleteLastChar, deleteLastCharFromString, getAllowsTab, getBold, getBotMargin, getEditable, getExpandOnly, getFont, getFontFamily, getFontSize, getItalic, getJustification, getJustificationByName, getLeftMargin, getLineSpacing, getMinimumSize, getMultiLine, getRightMargin, getText, getTextColor, getTextEditorClass, getTextFillColor, getTextFilled, getTopMargin, getUnderline, hit, isNonStartEditingKey, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, OK, paint, setAllowsTab, setBold, setBotMargin, setEditable, setExpandOnly, setFont, setFontFamily, setFontSize, setItalic, setJustifciaionByName, setJustification, setLeftMargin, setLineSpacing, setMultiLine, setRightMargin, setText, setTextColor, setTextEditorClass, setTextFillColor, setTextFilled, setTopMargin, setUnderline, startTextEditor, stuffMinimumSize |
Methods inherited from class org.tigris.gef.presentation.Fig |
addAnnotation, addPoint, addPropertyChangeListener, align, center, classNameAndBounds, cleanUp, clone, connectionPoint, contains, contains, contains, countCornersContained, createDrag, damage, delete, dispose, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getClosestPoint, getContext, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFilled01, getFirstPoint, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLastPoint, getLayer, getLocation, getLocked, getNumPoints, getOwner, getPerimeterLength, getPoints, getPoints, getPopUpActions, getPreferedSize, getPrivateData, getResource, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, initAnnotations, insertPoint, intersects, isAnnotation, isDisplayed, isLowerRightResizable, isMovable, isReshapable, isResizable, isRotatable, makeSelection, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, removeAnnotation, removeAnnotation, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setBounds, setCenter, setContext, setDashed, setDashedString, setDisplayed, setEnclosingFig, setFillColor, setFilled, setGroup, setHandleBox, setHeight, setLayer, setLineColor, setLocation, setLocation, setLocked, setNumPoints, setOwner, setPoints, setPoints, setPoints, setPoints, setPoints, setPrivateData, setResource, setSavingAllowed, setSize, setSize, setVisState, setWidth, setX, setXs, setY, setYs, startTrans, stuffBounds, stuffPointAlongPerimeter, translate, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, within |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Category cat
protected org.tigris.gef.presentation.Fig _refFig
The bounding figure of the compartment containing this fig text.
protected boolean _isHighlighted
Record whether we are currently highlighted.
protected ru.novosoft.uml.foundation.core.MModelElement _modelElement
The model element with which we are associated.
Constructor Detail |
public CompartmentFigText(int x, int y, int w, int h, org.tigris.gef.presentation.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.
setLineWidth
in class org.tigris.gef.presentation.FigText
w
- Desired line width. Overridden and set to zero anyway.public int getLineWidth()
Override for correct graphical behaviour.
getLineWidth
in class org.tigris.gef.presentation.Fig
public boolean getFilled()
Override for correct graphical behaviour.
getFilled
in class org.tigris.gef.presentation.Fig
true
.public java.awt.Color getFillColor()
Override for correct graphical behaviour.
getFillColor
in class org.tigris.gef.presentation.Fig
public java.awt.Color getLineColor()
Override for correct graphical behaviour.
getLineColor
in class org.tigris.gef.presentation.Fig
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(ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MFeature getFeature()
Fig.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(ru.novosoft.uml.foundation.core.MModelElement modelElement)
Set the NSUML model element associated with this compartment.
modelElement
- The model element to set.public ru.novosoft.uml.foundation.core.MModelElement getModelElement()
Get the NSUML modelElement associated with this compartment.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML (c) 1996-2002 |