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.
-
NOISE
-
-
SAWTOOTH
-
-
SINE
-
-
TRIANGLE
-
-
xAmplitude
-
-
xWavelength
-
-
yAmplitude
-
-
yWavelength
-
-
RippleFilter()
- Construct a RIppleFIlter
-
getWaveType()
-
-
getXAmplitude()
- Get the amplitude of ripple in the X direction.
-
getXWavelength()
- Get the wavelength of ripple in the X direction.
-
getYAmplitude()
- Get the amplitude of ripple in the Y direction.
-
getYWavelength()
- Get the wavelength of ripple in the Y direction.
-
setWaveType(int)
-
-
setXAmplitude(double)
- Set the amplitude of ripple in the X direction.
-
setXWavelength(double)
- Set the wavelength of ripple in the X direction.
-
setYAmplitude(double)
- Set the amplitude of ripple in the Y direction.
-
setYWavelength(double)
- Set the wavelength of ripple in the Y direction.
-
toString()
-
-
transformInverse(int, int, double[])
-
-
transformSpace(Rectangle)
-
SINE
public static final int SINE
SAWTOOTH
public static final int SAWTOOTH
TRIANGLE
public static final int TRIANGLE
NOISE
public static final int NOISE
xAmplitude
public double xAmplitude
yAmplitude
public double yAmplitude
xWavelength
public double xWavelength
yWavelength
public double yWavelength
RippleFilter
public RippleFilter()
- Construct a RIppleFIlter
setXAmplitude
public void setXAmplitude(double xAmplitude)
- Set the amplitude of ripple in the X direction.
- Parameters:
- xAmplitude - the amplitude (in pixels).
getXAmplitude
public double getXAmplitude()
- Get the amplitude of ripple in the X direction.
- Returns:
- the amplitude (in pixels).
setXWavelength
public void setXWavelength(double xWavelength)
- Set the wavelength of ripple in the X direction.
- Parameters:
- xWavelength - the wavelength (in pixels).
getXWavelength
public double getXWavelength()
- Get the wavelength of ripple in the X direction.
- Returns:
- the wavelength (in pixels).
setYAmplitude
public void setYAmplitude(double yAmplitude)
- Set the amplitude of ripple in the Y direction.
- Parameters:
- yAmplitude - the amplitude (in pixels).
getYAmplitude
public double getYAmplitude()
- Get the amplitude of ripple in the Y direction.
- Returns:
- the amplitude (in pixels).
setYWavelength
public void setYWavelength(double yWavelength)
- Set the wavelength of ripple in the Y direction.
- Parameters:
- yWavelength - the wavelength (in pixels).
getYWavelength
public double 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()
transformSpace
protected void transformSpace(java.awt.Rectangle r)
- Overrides:
- transformSpace in class com.jhlabs.image.TransformFilter
transformInverse
protected void transformInverse(int x,
int y,
double out[])
- Overrides:
- transformInverse in class com.jhlabs.image.TransformFilter
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
All Packages Class Hierarchy This Package Previous Next Index