This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing
class GrayFilter
- All Implemented Interfaces:
- ImageConsumer, Cloneable
public class GrayFilter
extends RGBImageFilter
An image filter that "disables" an image by turning
it into a grayscale image, and brightening the pixels
in the image. Used by buttons to create an image for
a disabled button.
Constructor Summary |
Constructs a GrayFilter object that filters a color image to a
grayscale image.
|
Method Summary |
static Image |
Creates a disabled image
|
int |
Overrides RGBImageFilter.filterRGB .
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrayFilter
public GrayFilter(boolean b,
int p)
-
Constructs a GrayFilter object that filters a color image to a
grayscale image. Used by buttons to create disabled ("grayed out")
button images.
- Parameters:
b
- a boolean -- true if the pixels should be brightened
p
- an int in the range 0..100 that determines the percentage
of gray, where 100 is the darkest gray, and 0 is the lightest
createDisabledImage
public static Image createDisabledImage(Image i)
-
Creates a disabled image
- Parameters:
i
filterRGB
public int filterRGB(int x,
int y,
int rgb)
-
Overrides
RGBImageFilter.filterRGB
.
- Overrides:
filterRGB
in class RGBImageFilter
- Parameters:
x
y
rgb
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.