|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.
Field Summary | |
protected boolean |
_isHighlighted
Record whether we are currently highlighted. |
protected java.lang.Object |
_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.Logger |
cat
Deprecated. by Linus Tolke as of 0.15.4. Use your own logger in your class. This will be removed. |
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, _g2dashes, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _selected, _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 . |
Method Summary | |
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. |
boolean |
isHighlighted()
Return whether this item is highlighted. |
void |
setHighlighted(boolean flag)
Mark whether this item is to be highlighted. |
void |
setLineWidth(int w)
Override for correct graphical behaviour. |
Methods inherited from class org.tigris.gef.presentation.FigText |
append, append, calcBounds, deleteLastChar, deleteLastCharFromString, drawString, getAllowsTab, getBold, getBotMargin, getEditable, getExpandOnly, getFont, getFontFamily, getFontSize, getItalic, getJustification, getJustificationByName, getLeftMargin, getLineSpacing, getMinimumHeight, getMinimumSize, getMultiLine, getRightMargin, getText, getTextBounds, 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, setJustificationByName, setLeftMargin, setLineSpacing, setMultiLine, setRightMargin, setText, 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, 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, getSingle, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, hasFillColor, hasLineColor, initAnnotations, insertPoint, intersects, intersectsPerimeter, isAnnotation, isCopieable, isCopyable, isCutable, isDisplayed, isFactoryConstructed, isLowerRightResizable, isMovable, isReshapable, isResizable, isRotatable, isSelected, isVisible, makeSelection, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, redraw, 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, setMovable, setNumPoints, setOwner, setPoints, setPoints, setPoints, setPoints, setPoints, setPrivateData, setResizable, setResource, setSavingAllowed, setSelected, setSingle, setSize, setSize, setVisible, setVisState, setWidth, setX, setXs, setY, setYs, stuffBounds, stuffPointAlongPerimeter, translate, translateAnnotations, 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.Logger cat
protected org.tigris.gef.presentation.Fig _refFig
protected boolean _isHighlighted
protected java.lang.Object _modelElement
Constructor Detail |
public CompartmentFigText(int x, int y, int w, int h, org.tigris.gef.presentation.Fig aFig)
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)
w
- Desired line width. Overridden and set to zero anyway.public int getLineWidth()
public boolean getFilled()
true
.public java.awt.Color getFillColor()
public java.awt.Color getLineColor()
public void setHighlighted(boolean flag)
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()
true
if the entry is highlighted,
false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |