com.jidesoft.treemap
Class ColorHelper
java.lang.Object
com.jidesoft.treemap.ColorHelper
public class ColorHelper
- extends Object
Helper class for dealing with colors.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorHelper
public ColorHelper()
desaturateColor
public static Color desaturateColor(Color color,
float saturationMutliplier,
float brightnessMultiplier)
darker
public static Color darker(Color color,
double factor)
brighter
public static Color brighter(Color color)
brighter
public static Color brighter(Color color,
double factor)
getHTMLColor
public static String getHTMLColor(Color c)
parseHTMLColor
public static Color parseHTMLColor(String c)
lum
public static double lum(Color color)
toGray
public static Color toGray(Color color)
compatible
public static boolean compatible(Color a,
Color b)
diff
public static float diff(Color c1,
Color c2)
luminance
public static float luminance(Color color)
brightness
public static float brightness(Color color)
replaceBrightness
public static Color replaceBrightness(Color color,
double brightness)