Liferay 6.2-ce-ga5

com.liferay.util
Class ColorUtil

java.lang.Object
  extended by com.liferay.util.ColorUtil

public class ColorUtil
extends Object


Constructor Summary
ColorUtil()
           
 
Method Summary
static Color blend(Color color1, Color color2, double ratio)
           
static Color blend(int[] color1, int[] color2, double ratio)
           
static Color darker(int[] color, double ratio)
           
static String getHex(int[] rgb)
           
static int[] getRGB(String hex)
           
static Color lighter(int[] color, double ratio)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorUtil

public ColorUtil()
Method Detail

blend

public static Color blend(Color color1,
                          Color color2,
                          double ratio)

blend

public static Color blend(int[] color1,
                          int[] color2,
                          double ratio)

darker

public static Color darker(int[] color,
                           double ratio)

getHex

public static String getHex(int[] rgb)

getRGB

public static int[] getRGB(String hex)

lighter

public static Color lighter(int[] color,
                            double ratio)

Liferay 6.2-ce-ga5