| Modifier and Type | Field and Description |
|---|---|
static ColorConverter |
INSTANCE |
| Constructor and Description |
|---|
ColorConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Color color)
Converts a value of the type returned by
Converter.getValueType() to its
plain text representation. |
Class<Color> |
getValueType()
Gets the value type.
|
Color |
parse(String text)
Converts a value from its plain text representation to a Java object instance
of the type returned by
Converter.getValueType(). |
public static final ColorConverter INSTANCE
public Class<Color> getValueType()
ConvertergetValueType in interface Converter<Color>public Color parse(String text) throws ConversionException
ConverterConverter.getValueType().parse in interface Converter<Color>text - The textual representation of the value.ConversionException - If the conversion fails.public String format(Color color)
ConverterConverter.getValueType() to its
plain text representation.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.