ColorUtils
Keywords: com.representqueens.util.ColorUtils class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.representqueens.util
Class ColorUtils

    java.lang.Object
      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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD