Class sunsoft.jws.visual.rt.type.ColorConverter
All Packages Class Hierarchy This Package Previous Next Index
Class sunsoft.jws.visual.rt.type.ColorConverter
java.lang.Object
|
+----sunsoft.jws.visual.rt.type.Converter
|
+----sunsoft.jws.visual.rt.type.ColorConverter
- public class ColorConverter
- extends Converter
Converts Color objects to strings and back again.
- See Also:
- Color
-
ColorConverter()
-
-
convertFromString(String)
- Figures out the color the given string represents.
-
convertToString(Object)
- Returns the string for a given color value.
ColorConverter
public ColorConverter()
convertToString
public String convertToString(Object obj)
- Returns the string for a given color value. Looks in the
ColorStore fisrt, for a good name for the color, or if it can't
find one, returns rgb hexadecimal format (e.g. #ef6caf).
- Parameters:
- obj - instance of Color
- Overrides:
- convertToString in class Converter
- See Also:
- ColorStore
convertFromString
public Object convertFromString(String s)
- Figures out the color the given string represents.
- Throws: ParseException
- when the color can't be figured
- Overrides:
- convertFromString in class Converter
All Packages Class Hierarchy This Package Previous Next Index