com.representqueens.util
Class ColorUtils

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

public final class ColorUtils
extends java.lang.Object

Utility methods for parsing Strings into Color Objects.


Method Summary
static java.awt.Color parseColor(java.lang.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 java.awt.Color parseColor(java.lang.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.