com.representqueens.util
Class ColorUtils

java.lang.Object
  extended by com.representqueens.util.ColorUtils

public final class ColorUtils
extends Object

Utility methods for parsing Strings into Color Objects.

Version:
$Revision: 1.2 $ $Date: 2006/07/17 20:22:40 $
Author:
Larry Ogrodnek

Method Summary
static Color parseColor(String s)
          Parse a String into a Color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseColor

public static Color parseColor(String s)
Parse a String into a Color. This method will accept either a color name (a field name from Color, case insensitive e.g. "red"), or a HTML hex color string (e.g. "#ff0000" for Color.RED).

Parameters:
s - String to parse for color name or color number.
Returns:
Color for s.