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

Constructor Index

 o ColorConverter()

Method Index

 o convertFromString(String)
Figures out the color the given string represents.
 o convertToString(Object)
Returns the string for a given color value.

Constructors

 o ColorConverter
  public ColorConverter()

Methods

 o 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
 o 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