info.magnolia.imaging.util
Class ColorConverter

java.lang.Object
  extended by info.magnolia.imaging.util.ColorConverter

public class ColorConverter
extends Object

A class that is able to convert java.lang.String instances to java.awt.Color instances. It recognizes multiple String representations, such as named colors (using the java.awt.Color constants), hexadecimal, TODO -- "r:100,g:100,b:100,a:80", "100, 100, 100, 80", ... TODO - and vice-versa.

Version:
$Id$

Constructor Summary
ColorConverter()
           
 
Method Summary
static Color toColor(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorConverter

public ColorConverter()
Method Detail

toColor

public static Color toColor(String s)


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.