com.jgoodies.looks.common
public final class RGBGrayFilter extends RGBImageFilter
The high-resolution gray filter can be disabled globally using
{@link Options#setHiResGrayFilterEnabled(boolean)}; it is enabled by default.
The global setting can be overridden per component by setting
the client property key {@link Options#HI_RES_DISABLED_ICON_CLIENT_KEY}
to Boolean.FALSE
.
Version: $Revision: 1.5 $
Method Summary | |
---|---|
int | filterRGB(int x, int y, int rgb)
Converts a single input pixel in the default RGB ColorModel to a single
gray pixel.
|
static Icon | getDisabledIcon(JComponent component, Icon icon)
Returns an icon with a disabled appearance. |
Parameters: x the horizontal pixel coordinate y the vertical pixel coordinate rgb the integer pixel representation in the default RGB color model
Returns: a gray pixel in the default RGB color model.
See Also: ColorModel#getRGBdefault RGBGrayFilter
Parameters: component the component that will display the icon, may be null. icon the icon to generate disabled icon from.
Returns: disabled icon, or null if a suitable icon can not be generated.