|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.Figure
de.cau.cs.kieler.core.ui.figures.AttributeAwareSwitchFigure
public abstract class AttributeAwareSwitchFigure
An attribute aware figure that switches the displayed figure according to attribute changes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure |
---|
Figure.FigureIterator, Figure.IdentitySearch |
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure |
---|
IFigure.NoInsets |
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
Adapter.Internal |
Field Summary |
---|
Fields inherited from class org.eclipse.draw2d.Figure |
---|
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
Fields inherited from interface org.eclipse.draw2d.IFigure |
---|
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
Constructor Summary | |
---|---|
AttributeAwareSwitchFigure()
The constructor. |
Method Summary | |
---|---|
protected void |
addConditionalFigure(IFigure figure,
ICondition<EObject> condition)
Adds a figure with associated condition. |
IFigure |
getCurrentFigure()
Returns the current figure that is to be drawn. |
Notifier |
getTarget()
|
void |
listenTo(EObject object)
Listen to changes in attributes of the given model element. |
void |
notifyChanged(Notification notification)
Adjust the appearance to the changes reported in the notification. |
void |
paint(Graphics graphics)
Paints the figure. |
void |
setBackgroundColor(Color bg)
|
void |
setDefaultFigure(IFigure figure)
Set the figure that is to be drawn if no condition is fulfilled. |
void |
setForegroundColor(Color fg)
|
void |
setTarget(Notifier newTarget)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
isAdapterForType |
Constructor Detail |
---|
public AttributeAwareSwitchFigure()
Method Detail |
---|
public void paint(Graphics graphics)
paint
in interface IFigure
paint
in class Figure
graphics
- The Graphics object used for paintingpublic void setDefaultFigure(IFigure figure)
figure
- The figure to be drawn if no condition is fulfilled.public IFigure getCurrentFigure()
public void setForegroundColor(Color fg)
setForegroundColor
in interface IFigure
setForegroundColor
in class Figure
public void setBackgroundColor(Color bg)
setBackgroundColor
in interface IFigure
setBackgroundColor
in class Figure
public void notifyChanged(Notification notification)
notifyChanged
in interface Adapter
notification
- The notification containing the changes made to the
model element.public Notifier getTarget()
getTarget
in interface Adapter
public void setTarget(Notifier newTarget)
setTarget
in interface Adapter
public void listenTo(EObject object)
listenTo
in interface IAttributeAwareFigure
object
- the model element that is watchedprotected void addConditionalFigure(IFigure figure, ICondition<EObject> condition)
figure
- the figurecondition
- the condition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |