|
||||||||||
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.use_case.ui.FigActor
public class FigActor
Class to display graphics for an Actor in a diagram.
The dimensions of the stick-man figure are fixed at 40 wide by 55 high. It does not support different line-widths.
Stereotypes and the name are shown below the stick-man.
This seems to be the only ArgoUML element where the stereotypes are shown below the name. The UML 1.4.2 standard does not forbid nor prescribe this layout detail.
Field Summary | |
---|---|
protected static int |
MIN_VERT_PADDING
The padding between the actor body and name and the top of the stereotype. |
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 | |
---|---|
FigActor(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings)
Construct a new Actor with the given owner, bounds, and settings. |
Method Summary | |
---|---|
protected Fig |
createBigPortFig()
Overrule this if a rectangle is not usable. |
java.lang.Object |
deepHitPort(int x,
int y)
|
java.util.List<java.awt.Point> |
getGravityPoints()
|
java.awt.Dimension |
getMinimumSize()
Returns the minimum size of the Fig. |
protected int |
getNameFigFontStyle()
Determines the font style based on the UML model. |
java.util.Vector |
getPopUpActions(java.awt.event.MouseEvent me)
This method returns a Vector of one of these 4 types: AbstractAction, JMenu, JMenuItem, JSeparator. |
boolean |
isResizable()
|
Selection |
makeSelection()
|
protected void |
modelChanged(java.beans.PropertyChangeEvent mee)
This is a template method called by the ArgoUML framework as the result of a change to a model element. |
void |
setFillColor(java.awt.Color col)
|
void |
setFilled(boolean filled)
|
void |
setLineWidth(int width)
|
protected void |
setStandardBounds(int x,
int y,
int w,
int h)
Replaces FigNodeModelElement.setBoundsImpl(int, int, int, int) . |
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 |
Field Detail |
---|
protected static final int MIN_VERT_PADDING
Constructor Detail |
---|
public FigActor(java.lang.Object owner, java.awt.Rectangle bounds, DiagramSettings settings)
owner
- model element that owns this figbounds
- position and sizesettings
- rendering settingsMethod Detail |
---|
protected Fig createBigPortFig()
FigNodeModelElement
createBigPortFig
in class FigNodeModelElement
public void setLineWidth(int width)
setLineWidth
in class FigNodeModelElement
public void setFillColor(java.awt.Color col)
public void setFilled(boolean filled)
public Selection makeSelection()
makeSelection
in class FigNodeModelElement
public java.util.Vector getPopUpActions(java.awt.event.MouseEvent me)
FigNodeModelElement
getPopUpActions
in class FigNodeModelElement
public boolean isResizable()
public java.awt.Dimension getMinimumSize()
FigNodeModelElement
Do not call this function if the Fig is not resizable! In ArgoUML we decided that it is not needed to implement suitable getMinimumSize() methods for Figs that are not resizable.
getMinimumSize
in class FigNodeModelElement
protected void setStandardBounds(int x, int y, int w, int h)
FigNodeModelElement
FigNodeModelElement.setBoundsImpl(int, int, int, int)
.
setStandardBounds
in class FigNodeModelElement
x
- Desired X coordinate of upper left cornery
- Desired Y coordinate of upper left cornerw
- Desired width of the FigClassh
- Desired height of the FigClassorg.tigris.gef.presentation.Fig#setBoundsImpl(int, int, int, int)
public java.lang.Object deepHitPort(int x, int y)
public java.util.List<java.awt.Point> getGravityPoints()
protected void modelChanged(java.beans.PropertyChangeEvent mee)
FigNodeModelElement
Override this in any subclasses in order to change what model elements the FigNode is listening to as a result of change to the model.
This method is guaranteed by the framework to be running on the same thread as the model subsystem.
TODO: Lets refactor this at some time to take UmlChangeEvent argument
modelChanged
in class FigNodeModelElement
mee
- the UmlChangeEvent that caused the changeprotected int getNameFigFontStyle()
FigNodeModelElement
getNameFigFontStyle
in class FigNodeModelElement
|
||||||||||
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 |