|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.tb.AbstractDecorator
org.eclipse.graphiti.tb.ColorDecorator
public class ColorDecorator
Color decorators can be used to modify the visualization of a shape without
modifying the dirty state of the displaying editor, see IDecorator
.
Note that modifying background and foreground colors as it is possible with
this decorator will have no effect if the shape is invisible, the complete
shape is hidden underneath other (possibly contained) shapes or the shape
uses gradients.
Field Summary | |
---|---|
private IColorConstant |
backgroundColor
|
private IColorConstant |
foregroundColor
|
Constructor Summary | |
---|---|
ColorDecorator()
Creates a new color decorator that decorates a shape with foreground and background colors. |
|
ColorDecorator(IColorConstant foregroundColor,
IColorConstant backgroundColor)
Creates a new color decorator that decorates a shape with the given foreground and background colors. |
Method Summary | |
---|---|
IColorConstant |
getBackgroundColor()
Returns the color that will be used for painting the background of the shape to decorate. |
IColorConstant |
getForegroundColor()
Returns the color that will be used for painting the foreground of the shape to decorate. |
void |
setBackgroundColor(IColorConstant backgroundColor)
Sets the color to be used for the background of the shape. |
void |
setForegroundColor(IColorConstant foregroundColor)
Sets the color to be used for the foreground of the shape. |
Methods inherited from class org.eclipse.graphiti.tb.AbstractDecorator |
---|
getMessage, setMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.graphiti.tb.IDecorator |
---|
getMessage, setMessage |
Field Detail |
---|
private IColorConstant foregroundColor
private IColorConstant backgroundColor
Constructor Detail |
---|
public ColorDecorator()
public ColorDecorator(IColorConstant foregroundColor, IColorConstant backgroundColor)
foregroundColor
- an IColorConstant
defining the color for the
foreground of the shapebackgroundColor
- an IColorConstant
defining the color for the
background of the shapeMethod Detail |
---|
public IColorConstant getForegroundColor()
IColorDecorator
null
) the
original foreground color of the shape is kept.
getForegroundColor
in interface IColorDecorator
IColorConstant
defining the colorpublic void setForegroundColor(IColorConstant foregroundColor)
null
is set)the original foreground color of the shape
is kept.
foregroundColor
- an IColorConstant
defining the color for the
foreground of the shapepublic IColorConstant getBackgroundColor()
IColorDecorator
null
) the
original background color of the shape is kept.
getBackgroundColor
in interface IColorDecorator
IColorConstant
defining the colorpublic void setBackgroundColor(IColorConstant backgroundColor)
null
is set) the original background color of the
shape is kept.
backgroundColor
- an IColorConstant
defining the color for the
background of the shape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |