|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFigNode
org.argouml.uml.diagram.ui.FigNodeModelElement
org.argouml.uml.diagram.ui.FigCompartmentBox
org.argouml.uml.diagram.static_structure.ui.FigClassifierBox
public abstract class FigClassifierBox
Class to display graphics for any UML Classifier in a diagram.
This abstract Fig adds an Operations compartment.
| Field Summary |
|---|
| Fields inherited from class org.argouml.uml.diagram.ui.FigCompartmentBox |
|---|
containerBox, DEFAULT_COMPARTMENT_BOUNDS |
| Fields inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement |
|---|
ABSTRACT, ACTIVE, invisibleAllowed, LEAF, NAME_FIG_HEIGHT, NAME_V_PADDING, ROOT, WIDTH |
| 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 | |
|---|---|
FigClassifierBox(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings)
Construct a Fig with owner, bounds, and settings. |
|
| Method Summary | |
|---|---|
protected ArgoJMenu |
buildAddMenu()
|
protected java.lang.Object |
buildModifierPopUp()
|
protected ArgoJMenu |
buildShowPopUp()
|
java.lang.String |
classNameAndBounds()
USED BY PGML.tee. |
java.lang.Object |
clone()
Clone this figure. |
java.awt.Rectangle |
getAttributesBounds()
Deprecated. by Bob Tarling in 0.29.2 use getCompartment(Model.getMetaTypes().getAttribute()).getBounds() |
protected FigAttributesCompartment |
getAttributesFig()
Deprecated. in 0.29.1 use getCompartment(Model.getUmlFactory(Model.getMetaTypes(),getAttribute())) to determine if an attribute compartment exists and return it. The attributesCompartment should be created by the concrete class |
java.awt.Rectangle |
getOperationsBounds()
Get the bounds of the operations compartment. |
protected FigOperationsCompartment |
getOperationsFig()
|
java.util.Vector |
getPopUpActions(java.awt.event.MouseEvent me)
Build a collection of menu items relevant for a right-click popup menu on an Interface. |
boolean |
isAttributesVisible()
Deprecated. by Bob Tarling in 0.29.2 use getCompartment(Model.getMetaTypes().getAttribute()).isVisible() |
boolean |
isOperationsVisible()
Determine if the operations compartment is visible. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
We are getting events we don't want. |
void |
renderingChanged()
Rerender the entire fig. |
void |
setAttributesVisible(boolean isVisible)
Deprecated. by Bob Tarling in 0.29.2 use setCompartmentVisible |
void |
setOperationsVisible(boolean isVisible)
Set the visibility of the operations compartment. |
void |
translate(int dx,
int dy)
|
protected void |
updateLayout(UmlChangeEvent event)
This is a template method called by the ArgoUML framework as the result of a change to a model element. |
protected void |
updateOperations()
Updates the operations box. |
| Methods inherited from class org.argouml.uml.diagram.ui.FigCompartmentBox |
|---|
addCompartmentBoxSurroundings, addFig, calculateCompartmentBoxDimensions, createBorderFig, createContainedModelElement, getBorderFig, getCompartment, getFillColor, getLineWidth, getMinimumSize, getVisibleCompartmentCount, modelChanged, mouseClicked, setCompartmentBounds, setCompartmentVisible, setFillColor, setFilled, setLineWidth, setStandardBounds, unhighlight, unhighlight, updateStereotypeText |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.MouseListener |
|---|
mouseEntered, mouseExited, mousePressed, mouseReleased |
| Methods inherited from interface org.argouml.cognitive.Highlightable |
|---|
getHighlight, setHighlight |
| Constructor Detail |
|---|
public FigClassifierBox(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings)
owner - the model element that owns this figbounds - the rectangle defining the boundssettings - the rendering settings| Method Detail |
|---|
public java.lang.Object clone()
FigNodeModelElementTODO: enclosedFigs, encloser and eventSenders may also need to be cloned.
clone in class FigNodeModelElementObject.clone()protected void updateOperations()
public void renderingChanged()
FigNodeModelElementThis is may be an expensive operation for subclasses which are complex, so should be used sparingly. This functionality was originally the functionality of modelChanged but modelChanged takes the event now into account.
renderingChanged in interface ArgoFigrenderingChanged in class FigNodeModelElementpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class FigNodeModelElementevent - the eventprotected void updateLayout(UmlChangeEvent event)
FigNodeModelElementOverride this in any subclasses in order to restructure the FigNode due to change of any model element that this FigNode is listening to.
This method automatically updates the stereotype rendering.
The default behavior is to update the name and stereotype text.
For e.g. a Package, if the visibility is changed via the properties panel, then the display of it on the diagram has to follow the change. This is not handled here, but by the notationProviderName.
This method is guaranteed by the framework to be running on the Swing/AWT thread.
updateLayout in class FigNodeModelElementevent - the UmlChangeEvent that caused the changeprotected FigOperationsCompartment getOperationsFig()
public java.awt.Rectangle getOperationsBounds()
getOperationsBounds in interface OperationsCompartmentContainerpublic boolean isOperationsVisible()
OperationsCompartmentContainer
isOperationsVisible in interface OperationsCompartmentContainerpublic void setOperationsVisible(boolean isVisible)
OperationsCompartmentContainer
setOperationsVisible in interface OperationsCompartmentContainerisVisible - the new visibility status.protected FigAttributesCompartment getAttributesFig()
@Deprecated public java.awt.Rectangle getAttributesBounds()
@Deprecated public boolean isAttributesVisible()
public void setAttributesVisible(boolean isVisible)
isVisible - true if the attribute compartment is visible
public void translate(int dx,
int dy)
translate in class FigCompartmentBoxpublic java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
getPopUpActions in class FigNodeModelElementme - a mouse event
protected ArgoJMenu buildShowPopUp()
buildShowPopUp in class FigNodeModelElementprotected ArgoJMenu buildAddMenu()
public java.lang.String classNameAndBounds()
classNameAndBounds in class FigNodeModelElementprotected java.lang.Object buildModifierPopUp()
|
||||||||||
| 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 |