|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFigText
org.argouml.uml.diagram.ui.ArgoFigText
org.argouml.uml.diagram.ui.FigSingleLineText
org.argouml.uml.diagram.ui.FigSingleLineTextWithNotation
org.argouml.uml.diagram.ui.CompartmentFigText
public abstract class CompartmentFigText
A single line FigText class extension for editable FigClass/FigInterface/FigUseCase compartments that use notation. When selected, this compartment is highlighted.
This implementation now supports the extension point compartment in a use case.
Field Summary |
---|
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 | |
---|---|
CompartmentFigText(java.lang.Object element,
java.awt.Rectangle bounds,
DiagramSettings settings)
Construct a CompartmentFigText. |
|
CompartmentFigText(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings,
java.lang.String property)
Build a new compartment figText of the given dimensions, within the compartment described by aFig . |
|
CompartmentFigText(java.lang.Object owner,
java.awt.Rectangle bounds,
DiagramSettings settings,
java.lang.String[] properties)
Build a new compartment figText of the given dimensions, within the compartment described by aFig . |
Method Summary | |
---|---|
java.awt.Color |
getLineColor()
Override for correct graphical behaviour. |
boolean |
isFilled()
|
boolean |
isHighlighted()
Return whether this item is highlighted. |
void |
paint(java.awt.Graphics g)
Extends the normal paint function in order to display a similar selection-box to that given for a non-resizable FigNode. |
void |
removeFromDiagram()
|
void |
setHighlighted(boolean flag)
This is actually used to mark this Fig as selected, however setSelected is set final in GEF. |
void |
targetAdded(TargetEvent e)
Fired when a target is added to the list of targets. |
void |
targetRemoved(TargetEvent e)
Fired when a target is removed from the list of targets |
void |
targetSet(TargetEvent e)
Fired when a total new set of targets is set |
protected void |
textEdited()
Called when text editing has completed on this Fig. |
Methods inherited from class org.argouml.uml.diagram.ui.FigSingleLineTextWithNotation |
---|
getNotationProvider, getNotationProviderType, getNotationSettings, initNotationProviders, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, propertyChange, renderingChanged, setText, showHelp, textEditStarted, updateLayout |
Methods inherited from class org.argouml.uml.diagram.ui.FigSingleLineText |
---|
getMinimumSize, isStartEditingKey, setFilled |
Methods inherited from class org.argouml.uml.diagram.ui.ArgoFigText |
---|
addNotificationListener, deleteFromModel, getFigFontStyle, getNotificationInfo, getProject, getSettings, removeNotificationListener, removeNotificationListener, setOwner, setProject, setSettings, updateFont, updateListeners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompartmentFigText(java.lang.Object element, java.awt.Rectangle bounds, DiagramSettings settings)
element
- owning uml elementbounds
- position and sizesettings
- render settingspublic CompartmentFigText(java.lang.Object owner, java.awt.Rectangle bounds, DiagramSettings settings, java.lang.String property)
aFig
.
Invoke the parent constructor, then set the reference to the associated compartment figure. The associated FigText is marked as expand only.
owner
- owning UML elementbounds
- position and sizesettings
- render settingsproperty
- The property this Fig should listen forpublic CompartmentFigText(java.lang.Object owner, java.awt.Rectangle bounds, DiagramSettings settings, java.lang.String[] properties)
aFig
.
Invoke the parent constructor, then set the reference to the associated compartment figure. The associated FigText is marked as expand only.
owner
- owning UML elementbounds
- position and sizesettings
- render settingsproperties
- The properties this Fig should listen forMethod Detail |
---|
public void removeFromDiagram()
removeFromDiagram
in class FigSingleLineTextWithNotation
public boolean isFilled()
false
.public java.awt.Color getLineColor()
public void setHighlighted(boolean flag)
flag
- true
if the entry is to be highlighted,
false
otherwise.public void paint(java.awt.Graphics g)
g
- the graphics objectorg.tigris.gef.presentation.FigText#paint(java.awt.Graphics)
public boolean isHighlighted()
true
if the entry is highlighted,
false
otherwise.protected void textEdited()
textEdited
in class FigSingleLineTextWithNotation
public void targetAdded(TargetEvent e)
TargetListener
targetAdded
in interface TargetListener
e
- The targetevent, name will be TARGET_ADDEDpublic void targetRemoved(TargetEvent e)
TargetListener
targetRemoved
in interface TargetListener
e
- The targetevent, name will be TARGET_REMOVEDpublic void targetSet(TargetEvent e)
TargetListener
targetSet
in interface TargetListener
e
- The targetevent, name will be TARGET_SET
|
||||||||||
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 |