|
||||||||||||
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.FigInclude
A fig for use with include relationships on use case diagrams.
Realised as a dotted line with an open arrow head and the label
<
Field Summary | |
---|---|
private ArrowHeadGreater |
endArrow
|
private FigText |
label
|
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 | |
---|---|
FigInclude()
The default constructor, but should never be called directly (use FigInclude(Object) , since that sets the owner. |
|
FigInclude(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 aftern 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 |
private FigText label
private ArrowHeadGreater endArrow
Constructor Detail |
public FigInclude()
The default constructor, but should never be called directly (use
FigInclude(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 FigInclude(java.lang.Object edge)
The main constructor. Builds the FigEdge required and makes the given edge object its owner.
edge
- The edge that will own the figMethod Detail |
public void setFig(Fig f)
Set a new fig to represent this edge.
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)
Define whether the given fig can be edited (it can't).
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)
This is called aftern any part of the UML MModelElement has changed. This method automatically updates things specific to this fig. Subclasses should override and update other parts.
This implementation does nothing.
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 |