railo.commons.color
Class ColorCaster

java.lang.Object
  extended by railo.commons.color.ColorCaster

public final class ColorCaster
extends Object


Constructor Summary
ColorCaster()
           
 
Method Summary
static int contrast(Color left, Color right)
          calculate the contrast between 2 colors
static void main(String[] args)
           
static Color toColor(String strColor)
           
static String toHexString(Color color)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorCaster

public ColorCaster()
Method Detail

contrast

public static int contrast(Color left,
                           Color right)
calculate the contrast between 2 colors

Parameters:
left -
right -
Returns:
a int between 0 (badest) and 510 (best)

toColor

public static Color toColor(String strColor)
                     throws ExpressionException
Throws:
ExpressionException

main

public static void main(String[] args)
                 throws ExpressionException
Throws:
ExpressionException

toHexString

public static String toHexString(Color color)


Copyright © 2012 Railo