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, toString
public TextColor(Color color)
color
- the color to setpublic TextColor(ColorName colorName)
colorName
- of textprotected StyleElementType getElementType()
getElementType
in class StyleElement
protected java.lang.String draw()
StyleElement
draw
in class StyleElement
public Color getColor()