|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FigEdgePoly | +--org.argouml.uml.diagram.ui.FigEdgeModelElement | +--org.argouml.uml.diagram.use_case.ui.FigExtend
A fig for use with extend relationships on use case diagrams.
Realised as a dotted line with an open arrow head and the label «extend» together with any condition alongside.
Field Summary | |
---|---|
protected FigText |
_condition
The condition expression. |
protected FigGroup |
_fg
The group of label and condition. |
protected FigText |
_label
The «extend» label. |
private ArrowHeadGreater |
endArrow
|
Fields inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement |
---|
_name, _stereo, BUNDLE, cat, ITALIC_LABEL_FONT, LABEL_FONT, MARGIN, POPUP_ADD_OFFSET |
Constructor Summary | |
---|---|
FigExtend()
The default constructor, but should never be called directly (use FigExtend(Object) , since that sets the
owner. |
|
FigExtend(java.lang.Object edge)
The main constructor. |
Method Summary | |
---|---|
protected boolean |
canEdit(Fig f)
Define whether the given fig can be edited (it can't). |
protected void |
modelChanged(MElementEvent e)
This is called after any part of the UML MModelElement has changed. |
void |
paint(java.awt.Graphics g)
|
void |
setFig(Fig f)
Set a new fig to represent this edge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected FigText _label
protected FigText _condition
protected FigGroup _fg
private ArrowHeadGreater endArrow
Constructor Detail |
public FigExtend()
FigExtend(Object)
, since that sets the
owner. However we can't mark it as private, since GEF expects
to be able to call this when creating the diagram.
public FigExtend(java.lang.Object edge)
edge
- The edge that will own the figMethod Detail |
public void setFig(Fig f)
We invoke the superclass accessor. Then change aspects of the new fig that are not as we want. In this case to use dashed lines.
f
- The fig to use.protected boolean canEdit(Fig f)
canEdit
in class FigEdgeModelElement
f
- The fig about which the enquiry is being made. Ignored in this
implementation.
false
under all circumstances.protected void modelChanged(MElementEvent e)
We reset the condition text. We really ought to check that there has actually been a change, but for now we do it every time.
modelChanged
in class FigEdgeModelElement
public void paint(java.awt.Graphics g)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |