类 WaterFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.TransformFilter
-
- org.meteoinfo.image.filter.WaterFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class WaterFilter extends TransformFilter
A filter which produces a water ripple distortion.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.image.filter.TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO
-
-
构造器概要
构造器 构造器 说明 WaterFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetAmplitude()Get the amplitude of the ripples.java.awt.geom.Point2DgetCentre()Get the centre of the effect as a proportion of the image size.floatgetCentreX()Get the centre of the effect in the X direction as a proportion of the image size.floatgetCentreY()Get the centre of the effect in the Y direction as a proportion of the image size.floatgetPhase()Get the phase of the ripples.floatgetRadius()Get the radius of the effect.floatgetWavelength()Get the wavelength of the ripples.voidsetAmplitude(float amplitude)Set the amplitude of the ripples.voidsetCentre(java.awt.geom.Point2D centre)Set the centre of the effect as a proportion of the image size.voidsetCentreX(float centreX)Set the centre of the effect in the X direction as a proportion of the image size.voidsetCentreY(float centreY)Set the centre of the effect in the Y direction as a proportion of the image size.voidsetPhase(float phase)Set the phase of the ripples.voidsetRadius(float radius)Set the radius of the effect.voidsetWavelength(float wavelength)Set the wavelength of the ripples.java.lang.StringtoString()protected voidtransformInverse(int x, int y, float[] out)Inverse transform a point.-
从类继承的方法 org.meteoinfo.image.filter.TransformFilter
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpace
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setWavelength
public void setWavelength(float wavelength)
Set the wavelength of the ripples.- 参数:
wavelength- the wavelength- 另请参阅:
getWavelength()
-
getWavelength
public float getWavelength()
Get the wavelength of the ripples.- 返回:
- the wavelength
- 另请参阅:
setWavelength(float)
-
setAmplitude
public void setAmplitude(float amplitude)
Set the amplitude of the ripples.- 参数:
amplitude- the amplitude- 另请参阅:
getAmplitude()
-
getAmplitude
public float getAmplitude()
Get the amplitude of the ripples.- 返回:
- the amplitude
- 另请参阅:
setAmplitude(float)
-
setPhase
public void setPhase(float phase)
Set the phase of the ripples.- 参数:
phase- the phase- 另请参阅:
getPhase()
-
getPhase
public float getPhase()
Get the phase of the ripples.- 返回:
- the phase
- 另请参阅:
setPhase(float)
-
setCentreX
public void setCentreX(float centreX)
Set the centre of the effect in the X direction as a proportion of the image size.- 参数:
centreX- the center- 另请参阅:
getCentreX()
-
getCentreX
public float getCentreX()
Get the centre of the effect in the X direction as a proportion of the image size.- 返回:
- the center
- 另请参阅:
setCentreX(float)
-
setCentreY
public void setCentreY(float centreY)
Set the centre of the effect in the Y direction as a proportion of the image size.- 参数:
centreY- the center- 另请参阅:
getCentreY()
-
getCentreY
public float getCentreY()
Get the centre of the effect in the Y direction as a proportion of the image size.- 返回:
- the center
- 另请参阅:
setCentreY(float)
-
setCentre
public void setCentre(java.awt.geom.Point2D centre)
Set the centre of the effect as a proportion of the image size.- 参数:
centre- the center- 另请参阅:
getCentre()
-
getCentre
public java.awt.geom.Point2D getCentre()
Get the centre of the effect as a proportion of the image size.- 返回:
- the center
- 另请参阅:
setCentre(java.awt.geom.Point2D)
-
setRadius
public void setRadius(float radius)
Set the radius of the effect.- 参数:
radius- the radius min-value 0- 另请参阅:
getRadius()
-
getRadius
public float getRadius()
Get the radius of the effect.- 返回:
- the radius
- 另请参阅:
setRadius(float)
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)- 指定者:
filter在接口中java.awt.image.BufferedImageOp- 覆盖:
filter在类中TransformFilter
-
transformInverse
protected void transformInverse(int x, int y, float[] out)从类复制的说明:TransformFilterInverse transform a point. This method needs to be overriden by all subclasses.- 指定者:
transformInverse在类中TransformFilter- 参数:
x- the X position of the pixel in the output imagey- the Y position of the pixel in the output imageout- the position of the pixel in the input image
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-