|
|||||||||||
| 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.FigGroup
org.tigris.gef.presentation.FigNode
org.argouml.uml.diagram.ui.FigNodeModelElement
org.argouml.uml.diagram.static_structure.ui.FigClassifierBox
Class to display graphics for a UML Class in a diagram.
Note that the upper line of the name box will be blanked out if there is eventually a stereotype above.
| Field Summary | |
protected Fig |
borderFig
|
protected CompartmentFigText |
highlightedFigText
Text highlighted by mouse actions on the diagram. |
protected FigOperationsCompartment |
operationsFig
The Fig for the operations compartment (if any). |
| Fields inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement |
ABSTRACT, ACTIVE, invisibleAllowed, LEAF, notationProviderName, ROOT, ROWHEIGHT, SHADOW_COLOR_ALPHA, SHADOW_COLOR_VALUE, STEREOHEIGHT |
| Fields inherited from class org.tigris.gef.presentation.FigNode |
_blinkPorts, _highlight, ang135, ang225, ang315, ang45 |
| Fields inherited from class org.tigris.gef.presentation.Fig |
_allowsSaving, _context, _dashes, _dashPeriod, _dashStyle, _filled, _h, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, MIN_SIZE, plotter |
| Method Summary | |
Object |
clone()
After the base clone method has been called determine which child figs of the clone represent the name, stereotype and port. |
protected void |
createFeatureIn(FigGroup fg,
InputEvent ie)
Create a new feature in the owner fig. |
Rectangle |
getOperationsBounds()
Get the bounds of the operations compartment. |
protected FigOperationsCompartment |
getOperationsFig()
|
boolean |
isOperationsVisible()
Returns the visibility status of the operations compartment. |
void |
mouseClicked(MouseEvent mouseEvent)
If the user double clicks on any part of this FigNode, pass it down to one of the internal Figs. |
void |
mouseExited(MouseEvent me)
|
void |
translate(int dx,
int dy)
|
protected CompartmentFigText |
unhighlight()
Remove the highlight from the currently highlit FigText. |
protected CompartmentFigText |
unhighlight(FigFeaturesCompartment fc)
Search the given compartment for a highlighted CompartmentFigText and unhighlight it. |
protected void |
updateOperations()
Updates the operations box. |
| Methods inherited from class org.tigris.gef.presentation.FigNode |
addFigEdge, bindPort, cleanUp, contains, deepHitPort, dispose, endTrans, getFigEdges, getFigEdges, getHighlight, getPortFig, getPortFigs, getPortSector, hidePorts, hitPort, hitPort, isBlinkPorts, mouseEntered, mousePressed, mouseReleased, paint, removeFigEdge, removePort, setBlinkPorts, setBoundsImpl, setHighlight, showPorts, superTranslate, translateImpl, updateEdges |
| Methods inherited from class org.tigris.gef.presentation.FigGroup |
addFig, addFigs, deepSelect, elements, getDisplayedFigs, getExtraFrameSpace, getFigAt, getFigCount, getFigPosn, getFigs, getFont, getFontFamily, getFontSize, getPrivateData, getSubFigBounds, getTextColor, getTextFillColor, getTextFilled, hitFig, isReshapable, isRotatable, iterator, parseDynObjects, removeAll, removeFig, setExtraFrameSpace, setFigs, setFigs, setFillColor, setFilled, setFont, setFontFamily, setFontSize, setLineColor, setLineWidth, setPrivateData, setTextColor, setTextFillColor, setTextFilled |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.argouml.uml.diagram.ui.OperationsCompartmentContainer |
setOperationsVisible |
| Methods inherited from interface java.awt.event.MouseListener |
mouseEntered, mousePressed, mouseReleased |
| Methods inherited from interface org.argouml.cognitive.Highlightable |
getHighlight, setHighlight |
| Methods inherited from interface org.tigris.gef.di.GraphicElement |
getId, getOwner, routingRect |
| Field Detail |
protected FigOperationsCompartment operationsFig
protected CompartmentFigText highlightedFigText
protected Fig borderFig
| Method Detail |
public Object clone()
FigNodeModelElementThe clone function is used by Copy/Paste operations.
clone in class FigNodeModelElementObject.clone()protected void updateOperations()
protected FigOperationsCompartment getOperationsFig()
public Rectangle getOperationsBounds()
getOperationsBounds in interface OperationsCompartmentContainerpublic boolean isOperationsVisible()
isOperationsVisible in interface OperationsCompartmentContainerOperationsCompartmentContainer.isOperationsVisible()
public void translate(int dx,
int dy)
Fig.translate(int, int)public void mouseClicked(MouseEvent mouseEvent)
FigNodeModelElement
mouseClicked in interface MouseListenermouseClicked in class FigNodeModelElementMouseListener.mouseClicked(java.awt.event.MouseEvent)public void mouseExited(MouseEvent me)
mouseExited in interface MouseListenerMouseListener.mouseExited(java.awt.event.MouseEvent)protected CompartmentFigText unhighlight()
protected final CompartmentFigText unhighlight(FigFeaturesCompartment fc)
fc - compartment to search for highlight item
protected void createFeatureIn(FigGroup fg,
InputEvent ie)
FigNodeModelElement
createFeatureIn in class FigNodeModelElementfg - The fig group to which this appliesie - The input event that triggered us. In the current
implementation a mouse double click.FigNodeModelElement.createFeatureIn(
org.tigris.gef.presentation.FigGroup,
java.awt.event.InputEvent)
|
|||||||||||
| 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 |