org.jscience.media.pictures.filters
Class NoiseFilter

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

public class NoiseFilter
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
NoiseFilter()
          Creates a new NoiseFilter object.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          DOCUMENT ME!
 int getAmount()
          DOCUMENT ME!
 boolean getGaussian()
          DOCUMENT ME!
 boolean getMonochrome()
          DOCUMENT ME!
 void setAmount(int amount)
          DOCUMENT ME!
 void setGaussian(boolean gaussian)
          DOCUMENT ME!
 void setMonochrome(boolean monochrome)
          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

NoiseFilter

public NoiseFilter()
Creates a new NoiseFilter object.

Method Detail

setAmount

public void setAmount(int amount)
DOCUMENT ME!

Parameters:
amount - DOCUMENT ME!

getAmount

public int getAmount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setGaussian

public void setGaussian(boolean gaussian)
DOCUMENT ME!

Parameters:
gaussian - DOCUMENT ME!

getGaussian

public boolean getGaussian()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setMonochrome

public void setMonochrome(boolean monochrome)
DOCUMENT ME!

Parameters:
monochrome - DOCUMENT ME!

getMonochrome

public boolean getMonochrome()
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!