Class CssColorConverter
java.lang.Object
com.bc.ceres.swing.figure.support.CssColorConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a value of the type returned bygetValueType()to its plain text representation.Gets the value type.Converts a value from its plain text representation to a Java object instance of the type returned bygetValueType().
-
Constructor Details
-
CssColorConverter
public CssColorConverter()
-
-
Method Details
-
getValueType
Gets the value type.- Specified by:
getValueTypein interfaceConverter<Color>- Returns:
- The value type.
-
parse
Converts a value from its plain text representation to a Java object instance of the type returned bygetValueType().- Specified by:
parsein interfaceConverter<Color>- Parameters:
text- The textual representation of the value. It must be either in hexadecimal format (e.g. "#FFFFFF" or "FFFFFF") or given by a string of comma-separated numbers, such as "255,255,255".- Returns:
- The converted value.
- Throws:
ConversionException- If the conversion fails.
-
format
Converts a value of the type returned bygetValueType()to its plain text representation.
-