public class TextColor extends StyleElement
| Constructor and Description |
|---|
TextColor(Color color)
Create text color instance based on color
|
TextColor(ColorName colorName)
Create text color instance based on color name
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
draw()
All descendant have to implement how to draw it
|
Color |
getColor() |
protected StyleElementType |
getElementType() |
TextColor |
setColor(Color color) |
TextColor |
setColor(ColorName colorName) |
drawClass, drawScript, getRoot, setRoot, toStringpublic TextColor(Color color)
color - the color to setpublic TextColor(ColorName colorName)
colorName - of textprotected StyleElementType getElementType()
getElementType in class StyleElementprotected java.lang.String draw()
StyleElementdraw in class StyleElementpublic Color getColor()