info.magnolia.imaging.util
Class ColorConverter
java.lang.Object
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$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorConverter
public ColorConverter()
toColor
public static Color toColor(String s)
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.