public interface ITextDecorator extends IDecorator, ILocation
IDecorator.| Modifier and Type | Method and Description |
|---|---|
IColorConstant |
getBackgroundColor()
Returns the color that will be used for painting the background of the
shape to decorate.
|
java.lang.String |
getFontName()
Gets the name of the font used in the decorator.
|
int |
getFontSize()
Gets the size of the font used in the decorator.
|
IColorConstant |
getForegroundColor()
Returns the color that will be used for painting the foreground of the
shape to decorate.
|
java.lang.String |
getText()
Returns the text of the decorator.
|
void |
setBackgroundColor(IColorConstant backgroundColor)
Sets the color that will be used for painting the background of the text.
|
void |
setFontName(java.lang.String fontName)
Sets the name of the font used in the decorator.
|
void |
setFontSize(int fontSize)
Sets the size of the font used in the decorator.
|
void |
setForegroundColor(IColorConstant foregroundColor)
Sets the color that will be used for painting the foreground of the text.
|
void |
setText(java.lang.String text)
Sets the text or the decorator.
|
getMessage, setMessagejava.lang.String getText()
String containing the textvoid setText(java.lang.String text)
text - A String containing the textjava.lang.String getFontName()
String containing the name of the font.void setFontName(java.lang.String fontName)
fontName - A String containing the name of the font.int getFontSize()
void setFontSize(int fontSize)
fontSize - An integer defining the size of the font.void setBackgroundColor(IColorConstant backgroundColor)
null) the original background
color of the text is kept.IColorConstant getBackgroundColor()
null) the
original background color of the shape is kept.IColorConstant defining the colorvoid setForegroundColor(IColorConstant foregroundColor)
null) the original foreground
color of the text is kept.IColorConstant getForegroundColor()
null) the
original foreground color of the shape is kept.IColorConstant defining the color