javax.swing
Class DebugGraphicsFilter

java.lang.Object
  extended byjava.awt.image.ImageFilter
      extended byjava.awt.image.RGBImageFilter
          extended byjavax.swing.DebugGraphicsFilter
All Implemented Interfaces:
Cloneable, ImageConsumer

class DebugGraphicsFilter
extends RGBImageFilter

Color filter for DebugGraphics, used for images only.

Author:
Dave Karlton

Field Summary
(package private)  Color color
           
 
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
(package private) DebugGraphicsFilter(Color c)
           
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          Subclasses must specify a method to convert a single input pixel in the default RGB ColorModel to a single output pixel.
 
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
 

Field Detail

color

Color color
Constructor Detail

DebugGraphicsFilter

DebugGraphicsFilter(Color c)
Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Description copied from class: RGBImageFilter
Subclasses must specify a method to convert a single input pixel in the default RGB ColorModel to a single output pixel.

Specified by:
filterRGB in class RGBImageFilter
Parameters:
rgb - the integer pixel representation in the default RGB color model
Returns:
a filtered pixel in the default RGB color model.
See Also:
ColorModel.getRGBdefault(), RGBImageFilter.filterRGBPixels(int, int, int, int, int[], int, int)