com.jhlabs.image
Class RippleFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.TransformFilter
          extended by com.jhlabs.image.RippleFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable

public class RippleFilter
extends 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.


Field Summary
static int NOISE
           
static int SAWTOOTH
           
static int SINE
           
static int TRIANGLE
           
 float xAmplitude
           
 float xWavelength
           
 float yAmplitude
           
 float yWavelength
           
 
Fields inherited from class com.jhlabs.image.TransformFilter
BILINEAR, CLAMP, NEAREST_NEIGHBOUR, WRAP, ZERO
 
Constructor Summary
RippleFilter()
          Construct a RIppleFIlter
 
Method Summary
 int getWaveType()
           
 float getXAmplitude()
          Get the amplitude of ripple in the X direction.
 float getXWavelength()
          Get the wavelength of ripple in the X direction.
 float getYAmplitude()
          Get the amplitude of ripple in the Y direction.
 float getYWavelength()
          Get the wavelength of ripple in the Y direction.
 void setWaveType(int waveType)
           
 void setXAmplitude(float xAmplitude)
          Set the amplitude of ripple in the X direction.
 void setXWavelength(float xWavelength)
          Set the wavelength of ripple in the X direction.
 void setYAmplitude(float yAmplitude)
          Set the amplitude of ripple in the Y direction.
 void setYWavelength(float yWavelength)
          Set the wavelength of ripple in the Y direction.
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.TransformFilter
filter, getBilinear, getEdgeAction, getInterpolation, getNearestNeighbour, getOriginalSpace, getTransformedSpace, setEdgeAction, setInterpolation, setOriginalSpace, setTransformedSpace
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SINE

public static final int SINE
See Also:
Constant Field Values

SAWTOOTH

public static final int SAWTOOTH
See Also:
Constant Field Values

TRIANGLE

public static final int TRIANGLE
See Also:
Constant Field Values

NOISE

public static final int NOISE
See Also:
Constant Field Values

xAmplitude

public float xAmplitude

yAmplitude

public float yAmplitude

xWavelength

public float xWavelength

yWavelength

public float yWavelength
Constructor Detail

RippleFilter

public RippleFilter()
Construct a RIppleFIlter

Method Detail

setXAmplitude

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

Parameters:
xAmplitude - the amplitude (in pixels).

getXAmplitude

public float getXAmplitude()
Get the amplitude of ripple in the X direction.

Returns:
the amplitude (in pixels).

setXWavelength

public void setXWavelength(float xWavelength)
Set the wavelength of ripple in the X direction.

Parameters:
xWavelength - the wavelength (in pixels).

getXWavelength

public float getXWavelength()
Get the wavelength of ripple in the X direction.

Returns:
the wavelength (in pixels).

setYAmplitude

public void setYAmplitude(float yAmplitude)
Set the amplitude of ripple in the Y direction.

Parameters:
yAmplitude - the amplitude (in pixels).

getYAmplitude

public float getYAmplitude()
Get the amplitude of ripple in the Y direction.

Returns:
the amplitude (in pixels).

setYWavelength

public void setYWavelength(float yWavelength)
Set the wavelength of ripple in the Y direction.

Parameters:
yWavelength - the wavelength (in pixels).

getYWavelength

public float getYWavelength()
Get the wavelength of ripple in the Y direction.

Returns:
the wavelength (in pixels).

setWaveType

public void setWaveType(int waveType)

getWaveType

public int getWaveType()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object