org.jscience.media.pictures.filters
Class TextureFilter

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

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

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
 float amount
          DOCUMENT ME!
 float bias
          DOCUMENT ME!
 float gain
          DOCUMENT ME!
 int operation
          DOCUMENT ME!
 float turbulence
          DOCUMENT ME!
 
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
TextureFilter()
          Creates a new TextureFilter object.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          DOCUMENT ME!
 float getAmount()
          DOCUMENT ME!
 float getAngle()
          DOCUMENT ME!
 Colormap getColormap()
          DOCUMENT ME!
 Function2D getFunction()
          DOCUMENT ME!
 int getOperation()
          DOCUMENT ME!
 float getScale()
          DOCUMENT ME!
 float getStretch()
          DOCUMENT ME!
 float getTurbulence()
          DOCUMENT ME!
 void setAmount(float amount)
          DOCUMENT ME!
 void setAngle(float angle)
          DOCUMENT ME!
 void setColormap(Colormap colormap)
          DOCUMENT ME!
 void setFunction(Function2D function)
          DOCUMENT ME!
 void setOperation(int operation)
          DOCUMENT ME!
 void setScale(float scale)
          DOCUMENT ME!
 void setStretch(float stretch)
          DOCUMENT ME!
 void setTurbulence(float turbulence)
          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
 

Field Detail

amount

public float amount
DOCUMENT ME!


turbulence

public float turbulence
DOCUMENT ME!


gain

public float gain
DOCUMENT ME!


bias

public float bias
DOCUMENT ME!


operation

public int operation
DOCUMENT ME!

Constructor Detail

TextureFilter

public TextureFilter()
Creates a new TextureFilter object.

Method Detail

setAmount

public void setAmount(float amount)
DOCUMENT ME!

Parameters:
amount - DOCUMENT ME!

getAmount

public float getAmount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setFunction

public void setFunction(Function2D function)
DOCUMENT ME!

Parameters:
function - DOCUMENT ME!

getFunction

public Function2D getFunction()
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!

setScale

public void setScale(float scale)
DOCUMENT ME!

Parameters:
scale - DOCUMENT ME!

getScale

public float getScale()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setStretch

public void setStretch(float stretch)
DOCUMENT ME!

Parameters:
stretch - DOCUMENT ME!

getStretch

public float getStretch()
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!

setTurbulence

public void setTurbulence(float turbulence)
DOCUMENT ME!

Parameters:
turbulence - DOCUMENT ME!

getTurbulence

public float getTurbulence()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setColormap

public void setColormap(Colormap colormap)
DOCUMENT ME!

Parameters:
colormap - DOCUMENT ME!

getColormap

public Colormap getColormap()
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!