Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
public class: GrayFilter [javadoc | source]
java.lang.Object
   java.awt.image.ImageFilter
      java.awt.image.RGBImageFilter
         javax.swing.GrayFilter

All Implemented Interfaces:
    Cloneable, ImageConsumer

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.
Fields inherited from java.awt.image.RGBImageFilter:
origmodel,  newmodel,  canFilterIndexColorModel
Fields inherited from java.awt.image.ImageFilter:
consumer
Constructor:
 public GrayFilter(boolean b,
    int p) 
Method from javax.swing.GrayFilter Summary:
createDisabledImage,   filterRGB
Methods from java.awt.image.RGBImageFilter:
filterIndexColorModel,   filterRGB,   filterRGBPixels,   setColorModel,   setPixels,   setPixels,   substituteColorModel
Methods from java.awt.image.ImageFilter:
clone,   getFilterInstance,   imageComplete,   resendTopDownLeftRight,   setColorModel,   setDimensions,   setHints,   setPixels,   setPixels,   setProperties
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.GrayFilter Detail:
 public static Image createDisabledImage(Image i) 
    Creates a disabled image
 public int filterRGB(int x,
    int y,
    int rgb) 
    Overrides RGBImageFilter.filterRGB.