org.jscience.media.pictures.filters
Class SparkleFilter

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

public class SparkleFilter
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
SparkleFilter()
          Creates a new SparkleFilter object.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          DOCUMENT ME!
 int getAmount()
          DOCUMENT ME!
 int getColor()
          DOCUMENT ME!
 int getRadius()
          DOCUMENT ME!
 int getRandomness()
          DOCUMENT ME!
 int getRays()
          DOCUMENT ME!
 void setAmount(int amount)
          DOCUMENT ME!
 void setColor(int color)
          DOCUMENT ME!
 void setDimensions(int width, int height)
          DOCUMENT ME!
 void setRadius(int radius)
          DOCUMENT ME!
 void setRandomness(int randomness)
          DOCUMENT ME!
 void setRays(int rays)
          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, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SparkleFilter

public SparkleFilter()
Creates a new SparkleFilter object.

Method Detail

setColor

public void setColor(int color)
DOCUMENT ME!

Parameters:
color - DOCUMENT ME!

getColor

public int getColor()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setRandomness

public void setRandomness(int randomness)
DOCUMENT ME!

Parameters:
randomness - DOCUMENT ME!

getRandomness

public int getRandomness()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setAmount

public void setAmount(int amount)
DOCUMENT ME!

Parameters:
amount - DOCUMENT ME!

getAmount

public int getAmount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setRays

public void setRays(int rays)
DOCUMENT ME!

Parameters:
rays - DOCUMENT ME!

getRays

public int getRays()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setRadius

public void setRadius(int radius)
DOCUMENT ME!

Parameters:
radius - DOCUMENT ME!

getRadius

public int getRadius()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setDimensions

public void setDimensions(int width,
                          int height)
DOCUMENT ME!

Specified by:
setDimensions in interface java.awt.image.ImageConsumer
Overrides:
setDimensions in class java.awt.image.ImageFilter
Parameters:
width - DOCUMENT ME!
height - 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!