|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextDecorator
Text decorators can be used to add a text to the visualization of a shape
without modifying the dirty state of the displaying editor, see
IDecorator
.
Method Summary | |
---|---|
IColorConstant |
getBackgroundColor()
Returns the color that will be used for painting the background of the shape to decorate. |
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. |
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(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(String text)
Sets the text or the decorator. |
Methods inherited from interface org.eclipse.graphiti.tb.IDecorator |
---|
getMessage, setMessage |
Methods inherited from interface org.eclipse.graphiti.datatypes.ILocation |
---|
getX, getY, setX, setY |
Method Detail |
---|
String getText()
String
containing the textvoid setText(String text)
text
- A String
containing the textString getFontName()
String
containing the name of the font.void setFontName(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |