org.jscience.media.pictures.filters
Class ThresholdFilter

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

public class ThresholdFilter
extends java.awt.image.RGBImageFilter
implements java.io.Serializable

DOCUMENT ME!

See Also:
Serialized Form

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
ThresholdFilter()
          Creates a new ThresholdFilter object.
ThresholdFilter(int t)
          Creates a new ThresholdFilter object.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          DOCUMENT ME!
 int getBlack()
          DOCUMENT ME!
 int getLowerThreshold()
          DOCUMENT ME!
 int getUpperThreshold()
          DOCUMENT ME!
 int getWhite()
          DOCUMENT ME!
 void setBlack(int black)
          DOCUMENT ME!
 void setLowerThreshold(int lowerThreshold)
          DOCUMENT ME!
 void setUpperThreshold(int upperThreshold)
          DOCUMENT ME!
 void setWhite(int white)
          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

ThresholdFilter

public ThresholdFilter()
Creates a new ThresholdFilter object.


ThresholdFilter

public ThresholdFilter(int t)
Creates a new ThresholdFilter object.

Parameters:
t - DOCUMENT ME!
Method Detail

setLowerThreshold

public void setLowerThreshold(int lowerThreshold)
DOCUMENT ME!

Parameters:
lowerThreshold - DOCUMENT ME!

getLowerThreshold

public int getLowerThreshold()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setUpperThreshold

public void setUpperThreshold(int upperThreshold)
DOCUMENT ME!

Parameters:
upperThreshold - DOCUMENT ME!

getUpperThreshold

public int getUpperThreshold()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setWhite

public void setWhite(int white)
DOCUMENT ME!

Parameters:
white - DOCUMENT ME!

getWhite

public int getWhite()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setBlack

public void setBlack(int black)
DOCUMENT ME!

Parameters:
black - DOCUMENT ME!

getBlack

public int getBlack()
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!