| Method from javax.swing.text.html.CSS$ColorValue Detail: |
Object fromStyleConstants(StyleConstants key,
Object value) {
ColorValue colorValue = new ColorValue();
colorValue.c = (Color)value;
colorValue.svalue = colorToHex(colorValue.c);
return colorValue;
}
Converts a StyleConstants attribute value to
a CSS attribute value. If there is no conversion
returns null. By default, there is no conversion. |
Color getValue() {
return c;
}
Returns the color to use. |
Object parseCssValue(String value) {
Color c = stringToColor(value);
if (c != null) {
ColorValue cv = new ColorValue();
cv.svalue = value;
cv.c = c;
return cv;
}
return null;
}
|
Object parseHtmlValue(String value) {
return parseCssValue(value);
}
|
Object toStyleConstants(StyleConstants key,
View v) {
return c;
}
Converts a CSS attribute value to a StyleConstants
value. If there is no conversion, returns null.
By default, there is no conversion. |