se.datadosen.util
Class Colors

java.lang.Object
  extended by se.datadosen.util.Colors

public class Colors
extends java.lang.Object

Utility Color class


Method Summary
static java.awt.Color getHTMLColor(java.lang.String htmlColor)
          Parse color strings in the #rrggbb hex format and standard html color string format Also handle comma-separated list of r,g,b,(a) integer values
static java.lang.String toHTMLColor(java.awt.Color c)
          Convert a Color to its HTML hex representation in the #rrggbb format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHTMLColor

public static java.awt.Color getHTMLColor(java.lang.String htmlColor)
                                   throws java.lang.IllegalArgumentException
Parse color strings in the #rrggbb hex format and standard html color string format Also handle comma-separated list of r,g,b,(a) integer values

Parameters:
htmlColor -
Returns:
Throws:
java.lang.IllegalArgumentException

toHTMLColor

public static java.lang.String toHTMLColor(java.awt.Color c)
Convert a Color to its HTML hex representation in the #rrggbb format

Since:
8.6.1