ggz.cards
Class GrayFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by ggz.cards.GrayFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.lang.Cloneable

public class GrayFilter
extends java.awt.image.RGBImageFilter


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()
           
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          Averages the RGB values with another color to make it look greyed out.
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

GrayFilter

public GrayFilter()
Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Averages the RGB values with another color to make it look greyed out.

Specified by:
filterRGB in class java.awt.image.RGBImageFilter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object