org.jscience.media.pictures.filters
Class MarbleFilter

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

public class MarbleFilter
extends TransformFilter

This filter applies a marbling effect to an image, displacing pixels by random amounts.

See Also:
Serialized Form

Field Summary
 float amount
          DOCUMENT ME!
 float[] cosTable
          DOCUMENT ME!
 float[] sinTable
          DOCUMENT ME!
 float turbulence
          DOCUMENT ME!
 float xScale
          DOCUMENT ME!
 float yScale
          DOCUMENT ME!
 
Fields inherited from class org.jscience.media.pictures.filters.TransformFilter
CLAMP, edgeAction, WRAP, ZERO
 
Fields inherited from class org.jscience.media.pictures.filters.WholeImageFilter
canFilterIndexColorModel, defaultRGBModel, inBytePixels, inPixels, originalSpace, transformedSpace
 
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
MarbleFilter()
          Creates a new MarbleFilter object.
 
Method Summary
 float getAmount()
          DOCUMENT ME!
 float getTurbulence()
          DOCUMENT ME!
 float getXScale()
          DOCUMENT ME!
 float getYScale()
          DOCUMENT ME!
 void imageComplete(int status)
          DOCUMENT ME!
 void setAmount(float amount)
          DOCUMENT ME!
 void setTurbulence(float turbulence)
          DOCUMENT ME!
 void setXScale(float xScale)
          DOCUMENT ME!
 void setYScale(float yScale)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
protected  void transformInverse(int x, int y, float[] out)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.TransformFilter
getEdgeAction, setEdgeAction, transformSpace
 
Methods inherited from class org.jscience.media.pictures.filters.WholeImageFilter
setColorModel, setDimensions, setPixels, setPixels
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, resendTopDownLeftRight, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sinTable

public float[] sinTable
DOCUMENT ME!


cosTable

public float[] cosTable
DOCUMENT ME!


xScale

public float xScale
DOCUMENT ME!


yScale

public float yScale
DOCUMENT ME!


amount

public float amount
DOCUMENT ME!


turbulence

public float turbulence
DOCUMENT ME!

Constructor Detail

MarbleFilter

public MarbleFilter()
Creates a new MarbleFilter object.

Method Detail

setXScale

public void setXScale(float xScale)
DOCUMENT ME!

Parameters:
xScale - DOCUMENT ME!

getXScale

public float getXScale()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setYScale

public void setYScale(float yScale)
DOCUMENT ME!

Parameters:
yScale - DOCUMENT ME!

getYScale

public float getYScale()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setAmount

public void setAmount(float amount)
DOCUMENT ME!

Parameters:
amount - DOCUMENT ME!

getAmount

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

transformInverse

protected void transformInverse(int x,
                                int y,
                                float[] out)
DOCUMENT ME!

Specified by:
transformInverse in class TransformFilter
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
out - DOCUMENT ME!

imageComplete

public void imageComplete(int status)
DOCUMENT ME!

Specified by:
imageComplete in interface java.awt.image.ImageConsumer
Overrides:
imageComplete in class TransformFilter
Parameters:
status - DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!