All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.jhlabs.image.RippleFilter

java.lang.Object
   |
   +----java.awt.image.ImageFilter
           |
           +----com.jhlabs.image.WholeImageFilter
                   |
                   +----com.jhlabs.image.TransformFilter
                           |
                           +----com.jhlabs.image.RippleFilter

public class RippleFilter
extends com.jhlabs.image.TransformFilter
A filter which distorts an image by rippling it in the X or Y directions. The amplitude and wavelength of rippling can be specified as well as whether pixels going off the edges are wrapped or not.


Variable Index

 o NOISE
 o SAWTOOTH
 o SINE
 o TRIANGLE
 o xAmplitude
 o xWavelength
 o yAmplitude
 o yWavelength

Constructor Index

 o RippleFilter()
Construct a RIppleFIlter

Method Index

 o getWaveType()
 o getXAmplitude()
Get the amplitude of ripple in the X direction.
 o getXWavelength()
Get the wavelength of ripple in the X direction.
 o getYAmplitude()
Get the amplitude of ripple in the Y direction.
 o getYWavelength()
Get the wavelength of ripple in the Y direction.
 o setWaveType(int)
 o setXAmplitude(double)
Set the amplitude of ripple in the X direction.
 o setXWavelength(double)
Set the wavelength of ripple in the X direction.
 o setYAmplitude(double)
Set the amplitude of ripple in the Y direction.
 o setYWavelength(double)
Set the wavelength of ripple in the Y direction.
 o toString()
 o transformInverse(int, int, double[])
 o transformSpace(Rectangle)

Variables

 o SINE
 public static final int SINE
 o SAWTOOTH
 public static final int SAWTOOTH
 o TRIANGLE
 public static final int TRIANGLE
 o NOISE
 public static final int NOISE
 o xAmplitude
 public double xAmplitude
 o yAmplitude
 public double yAmplitude
 o xWavelength
 public double xWavelength
 o yWavelength
 public double yWavelength

Constructors

 o RippleFilter
 public RippleFilter()
Construct a RIppleFIlter

Methods

 o setXAmplitude
 public void setXAmplitude(double xAmplitude)
Set the amplitude of ripple in the X direction.

Parameters:
xAmplitude - the amplitude (in pixels).
 o getXAmplitude
 public double getXAmplitude()
Get the amplitude of ripple in the X direction.

Returns:
the amplitude (in pixels).
 o setXWavelength
 public void setXWavelength(double xWavelength)
Set the wavelength of ripple in the X direction.

Parameters:
xWavelength - the wavelength (in pixels).
 o getXWavelength
 public double getXWavelength()
Get the wavelength of ripple in the X direction.

Returns:
the wavelength (in pixels).
 o setYAmplitude
 public void setYAmplitude(double yAmplitude)
Set the amplitude of ripple in the Y direction.

Parameters:
yAmplitude - the amplitude (in pixels).
 o getYAmplitude
 public double getYAmplitude()
Get the amplitude of ripple in the Y direction.

Returns:
the amplitude (in pixels).
 o setYWavelength
 public void setYWavelength(double yWavelength)
Set the wavelength of ripple in the Y direction.

Parameters:
yWavelength - the wavelength (in pixels).
 o getYWavelength
 public double getYWavelength()
Get the wavelength of ripple in the Y direction.

Returns:
the wavelength (in pixels).
 o setWaveType
 public void setWaveType(int waveType)
 o getWaveType
 public int getWaveType()
 o transformSpace
 protected void transformSpace(java.awt.Rectangle r)
Overrides:
transformSpace in class com.jhlabs.image.TransformFilter
 o transformInverse
 protected void transformInverse(int x,
                                 int y,
                                 double out[])
Overrides:
transformInverse in class com.jhlabs.image.TransformFilter
 o toString
 public java.lang.String toString()
Overrides:
toString in class java.lang.Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index