public final class ColorUtil
extends java.lang.Object
This class supports parsing string values into color values and creating color values for strings. It provides a list of standard color names.
Modifier and Type | Method and Description |
---|---|
static boolean |
isGray(java.awt.Color col)
Indicates whether the color is a gray value.
|
static java.awt.Color |
lightenColor(java.awt.Color col,
float factor)
Lightens up a color for groove, ridge, inset and outset border effects.
|
public static java.awt.Color lightenColor(java.awt.Color col, float factor)
col
- the color to lighten upfactor
- factor by which to lighten up (negative values darken the color)public static boolean isGray(java.awt.Color col)
col
- the colorCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.