public class RippleFilter extends TransformFilter
| Modifier and Type | Field and Description |
|---|---|
static int |
NOISE |
static int |
SAWTOOTH |
static int |
SINE |
static int |
TRIANGLE |
float |
xAmplitude |
float |
xWavelength |
float |
yAmplitude |
float |
yWavelength |
CLAMP, edgeAction, WRAP, ZEROcanFilterIndexColorModel, defaultRGBModel, inBytePixels, inPixels, originalSpace, transformedSpace| Constructor and Description |
|---|
RippleFilter()
Construct a RIppleFIlter
|
| Modifier and Type | Method and Description |
|---|---|
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() |
protected void |
transformInverse(int x,
int y,
float[] out) |
protected void |
transformSpace(java.awt.Rectangle r) |
getEdgeAction, imageComplete, setEdgeActiongetTransformedSpace, setColorModel, setDimensions, setPixels, setPixelspublic static final int SINE
public static final int SAWTOOTH
public static final int TRIANGLE
public static final int NOISE
public float xAmplitude
public float yAmplitude
public float xWavelength
public float yWavelength
public void setXAmplitude(float xAmplitude)
xAmplitude - the amplitude (in pixels).public float getXAmplitude()
public void setXWavelength(float xWavelength)
xWavelength - the wavelength (in pixels).public float getXWavelength()
public void setYAmplitude(float yAmplitude)
yAmplitude - the amplitude (in pixels).public float getYAmplitude()
public void setYWavelength(float yWavelength)
yWavelength - the wavelength (in pixels).public float getYWavelength()
public void setWaveType(int waveType)
public int getWaveType()
protected void transformSpace(java.awt.Rectangle r)
transformSpace in class TransformFilterprotected void transformInverse(int x,
int y,
float[] out)
transformInverse in class TransformFilterpublic java.lang.String toString()
toString in class java.lang.Object