public class ColorConverter
extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
Color.| Modifier and Type | Field and Description |
|---|---|
static String |
NONE_COLOR
Another constant for
null color. |
static String |
NULL_COLOR
Constant for
null color. |
| Constructor and Description |
|---|
ColorConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class type) |
static Color |
colorFromString(String string)
Parses
Color from its string form. |
static String |
colorToString(Color color)
Convert specified
Color into string form. |
Object |
fromString(String string) |
String |
toString(Object color) |
public static final String NULL_COLOR
null color.public static final String NONE_COLOR
null color.public boolean canConvert(@NotNull Class type)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatchercanConvert in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter@Nullable public String toString(@Nullable Object color)
toString in interface com.thoughtworks.xstream.converters.SingleValueConvertertoString in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter@Nullable public Object fromString(@Nullable String string)
fromString in interface com.thoughtworks.xstream.converters.SingleValueConverterfromString in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter@NotNull public static String colorToString(@Nullable Color color)
Color into string form.Copyright © 2020. All rights reserved.