TUM CCSM Commons

edu.tum.cs.commons.color
Class ColorUtils

java.lang.Object
  extended by edu.tum.cs.commons.color.ColorUtils

public class ColorUtils
extends java.lang.Object

Methods for handling colors.

Version:
$Rev: 26283 $
Author:
Benjamin Hummel, $Author: juergens $
Rating:
GREEN Hash: 38B8ECE8FE52143FC23C834589C88499

Constructor Summary
ColorUtils()
           
 
Method Summary
static java.awt.Color fromString(java.lang.String s)
          Returns a color from a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorUtils

public ColorUtils()
Method Detail

fromString

public static java.awt.Color fromString(java.lang.String s)
Returns a color from a string. If the string could not be decoded, null is returned. This methods supports the html color format (i.e. #RRGGBB) and some predefined names (e.g. red, green, etc.).


TUM CCSM Commons

TUM CCSM Commons - 2.7