API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. GrayFilter View Source
Author(s)
Jeff Dinkins
Tom Ball
Jim Graham
Since
Version
1.16 11/17/05
Serial
Hierarchy
 Object
      ImageFilter
          RGBImageFilter
              GrayFilter
Implements
Subclasses
Description
public class GrayFilter
  An image filter that "disables" an image by turning it into a grayscale image, and brightening the pixels in the image.
See also:   
Constructors
public GrayFilter (boolean b, int p)
  Constructs a GrayFilter object that filters a color image to a grayscale image.
Methods
Hide/Show inherited methods
public Object clone () [Inherited From ImageFilter]
Clones this object.
publicstatic Image createDisabledImage (Image i)
Creates a disabled image
public IndexColorModel filterIndexColorModel (IndexColorModel icm) [Inherited From RGBImageFilter]
  Filters an IndexColorModel object by running each entry in its color tables through the filterRGB function that RGBImageFilter subclasses must provide.
public int filterRGB (int x, int y, int rgb) [Specified in RGBImageFilter]
Overrides RGBImageFilter.filterRGB.
public void filterRGBPixels (int x, int y, int w, int h, int[] pixels, int off, int scansize) [Inherited From RGBImageFilter]
  Filters a buffer of pixels in the default RGB ColorModel by passing them one by one through the filterRGB method.
public ImageFilter getFilterInstance (ImageConsumer ic) [Inherited From ImageFilter]
  Returns a unique instance of an ImageFilter object which will actually perform the filtering for the specified ImageConsumer.
public void imageComplete (int status) [Inherited From ImageFilter]
  Filters the information provided in the imageComplete method of the ImageConsumer interface.
public void resendTopDownLeftRight (ImageProducer ip) [Inherited From ImageFilter]
  Responds to a request for a TopDownLeftRight (TDLR) ordered resend of the pixel data from an ImageConsumer.
public void setColorModel (ColorModel model) [Inherited From RGBImageFilter]
  If the ColorModel is an IndexColorModel and the subclass has set the canFilterIndexColorModel flag to true, we substitute a filtered version of the color model here and wherever that original ColorModel object appears in the setPixels methods.
public void setDimensions (int width, int height) [Inherited From ImageFilter]
  Filters the information provided in the setDimensions method of the ImageConsumer interface.
public void setHints (int hints) [Inherited From ImageFilter]
  Filters the information provided in the setHints method of the ImageConsumer interface.
public void setPixels (int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) [Inherited From RGBImageFilter]
  If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel.
public void setPixels (int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) [Inherited From RGBImageFilter]
  If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel, otherwise converts the buffer of integer pixels to the default RGB ColorModel and passes the converted buffer to the filterRGBPixels method to be converted one by one.
public void setProperties (Hashtable<Object, Object> props) [Inherited From ImageFilter]
  Passes the properties from the source object along after adding a property indicating the stream of filters it has been run through.
public void substituteColorModel (ColorModel oldcm, ColorModel newcm) [Inherited From RGBImageFilter]
  Registers two ColorModel objects for substitution.
Fields
Hide/Show inherited fields
protected boolean canFilterIndexColorModel [Inherited From RGBImageFilter]
  This boolean indicates whether or not it is acceptable to apply the color filtering of the filterRGB method to the color table entries of an IndexColorModel object in lieu of pixel by pixel filtering.
protected ImageConsumer consumer [Inherited From ImageFilter]
  The consumer of the particular image data stream for which this instance of the ImageFilter is filtering data.
protected ColorModel newmodel [Inherited From RGBImageFilter]
The ColorModel with which to replace origmodel when the user calls substituteColorModel.
protected ColorModel origmodel [Inherited From RGBImageFilter]
The ColorModel to be replaced by newmodel when the user calls substituteColorModel.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar