public final class Color extends java.lang.Object implements StyleElement
Constructor and Description |
---|
Color()
Creates "color: initial".
|
Color(ColorName colorName)
Create text color instance based on color name
|
Color(ColorType color)
Create text color instance based on color
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
draw()
All descendant have to implement how to draw it
|
ColorType |
getColor() |
public Color()
public Color(ColorType color)
color
- the color to setpublic Color(ColorName colorName)
colorName
- of textpublic ColorType getColor()
public java.lang.String draw()
StyleElement
draw
in interface StyleElement