com.lizardtech.djvubean.toolbar
Class GrayFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by com.lizardtech.djvubean.toolbar.GrayFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.lang.Cloneable

public class GrayFilter
extends java.awt.image.RGBImageFilter

Filter to create a gray image, for use with disabled buttons.

Version:
$Revision: 1.2 $
Author:
Bill C. Riemers

Field Summary
 
Fields inherited from class java.awt.image.RGBImageFilter
canFilterIndexColorModel, newmodel, origmodel
 
Fields inherited from class java.awt.image.ImageFilter
consumer
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
GrayFilter()
          Creates a new GrayFilter object.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          Filter to convert to gray.
 
Methods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrayFilter

public GrayFilter()
Creates a new GrayFilter object.

Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Filter to convert to gray.

Specified by:
filterRGB in class java.awt.image.RGBImageFilter
Parameters:
x - coordinate of pixel.
y - coordinate of pixel.
rgb - red blue green value of pixel.
Returns:
a darker color for the pixel.