org.jscience.media.pictures.filters
Class CheckFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by org.jscience.media.pictures.filters.CheckFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.lang.Cloneable

public class CheckFilter
extends java.awt.image.RGBImageFilter

A Filter to draw grids and check patterns.


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
CheckFilter()
          Creates a new CheckFilter object.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          DOCUMENT ME!
 float getAngle()
          DOCUMENT ME!
 int getBackground()
          DOCUMENT ME!
 int getForeground()
          DOCUMENT ME!
 int getFuzziness()
          DOCUMENT ME!
 int getOperation()
          DOCUMENT ME!
 int getXScale()
          DOCUMENT ME!
 int getYScale()
          DOCUMENT ME!
 void setAngle(float angle)
          DOCUMENT ME!
 void setBackground(int background)
          DOCUMENT ME!
 void setForeground(int foreground)
          DOCUMENT ME!
 void setFuzziness(int fuzziness)
          DOCUMENT ME!
 void setOperation(int operation)
          DOCUMENT ME!
 void setXScale(int xScale)
          DOCUMENT ME!
 void setYScale(int yScale)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
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

CheckFilter

public CheckFilter()
Creates a new CheckFilter object.

Method Detail

setForeground

public void setForeground(int foreground)
DOCUMENT ME!

Parameters:
foreground - DOCUMENT ME!

getForeground

public int getForeground()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setBackground

public void setBackground(int background)
DOCUMENT ME!

Parameters:
background - DOCUMENT ME!

getBackground

public int getBackground()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setXScale

public void setXScale(int xScale)
DOCUMENT ME!

Parameters:
xScale - DOCUMENT ME!

getXScale

public int getXScale()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setYScale

public void setYScale(int yScale)
DOCUMENT ME!

Parameters:
yScale - DOCUMENT ME!

getYScale

public int getYScale()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setFuzziness

public void setFuzziness(int fuzziness)
DOCUMENT ME!

Parameters:
fuzziness - DOCUMENT ME!

getFuzziness

public int getFuzziness()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setOperation

public void setOperation(int operation)
DOCUMENT ME!

Parameters:
operation - DOCUMENT ME!

getOperation

public int getOperation()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setAngle

public void setAngle(float angle)
DOCUMENT ME!

Parameters:
angle - DOCUMENT ME!

getAngle

public float getAngle()
DOCUMENT ME!

Returns:
DOCUMENT ME!

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
DOCUMENT ME!

Specified by:
filterRGB in class java.awt.image.RGBImageFilter
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
rgb - DOCUMENT ME!
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!