spiral.digitalize.filters
Class ThresholdFilter

java.lang.Object
  |
  +--java.awt.image.ImageFilter
        |
        +--java.awt.image.RGBImageFilter
              |
              +--spiral.digitalize.filters.ThresholdFilter
All Implemented Interfaces:
java.lang.Cloneable, java.awt.image.ImageConsumer, java.io.Serializable

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

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

ThresholdFilter

public ThresholdFilter()

ThresholdFilter

public ThresholdFilter(int t)
Method Detail

setLowerThreshold

public void setLowerThreshold(int lowerThreshold)

getLowerThreshold

public int getLowerThreshold()

setUpperThreshold

public void setUpperThreshold(int upperThreshold)

getUpperThreshold

public int getUpperThreshold()

setWhite

public void setWhite(int white)

getWhite

public int getWhite()

setBlack

public void setBlack(int black)

getBlack

public int getBlack()

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Specified by:
filterRGB in class java.awt.image.RGBImageFilter

toString

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