类 TransitionFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.TransitionFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class TransitionFilter extends AbstractBufferedImageOp
A filter which uses another filter to perform a transition. e.g. to create a blur transition, you could write: new TransitionFilter( new BoxBlurFilter(), "radius", 0, 100 );
-
-
字段概要
字段 修饰符和类型 字段 说明 protected BufferedImageOpfilterThe filter used for the transition.protected floatmaxValueThe end value for the filter property.protected floatminValueThe start value for the filter property.
-
构造器概要
构造器 构造器 说明 TransitionFilter(BufferedImageOp filter, String property, float minValue, float maxValue)Construct a TransitionFilter.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)BufferedImagegetDestination()Get the destination image.floatgetTransition()Get the transition of the image.voidprepareFilter(float transition)Prepare the filter for the transiton at a given time.voidsetDestination(BufferedImage destination)Set the destination image.voidsetTransition(float transition)Set the transition of the image in the range 0..1.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
字段详细资料
-
filter
protected BufferedImageOp filter
The filter used for the transition.
-
minValue
protected float minValue
The start value for the filter property.
-
maxValue
protected float maxValue
The end value for the filter property.
-
-
构造器详细资料
-
TransitionFilter
public TransitionFilter(BufferedImageOp filter, String property, float minValue, float maxValue)
Construct a TransitionFilter.- 参数:
filter- the filter to useproperty- the filter property which is changed over the transitionminValue- the start value for the filter propertymaxValue- the end value for the filter property
-
-
方法详细资料
-
setTransition
public void setTransition(float transition)
Set the transition of the image in the range 0..1.- 参数:
transition- the transition min-value 0 max-value 1- 另请参阅:
getTransition()
-
getTransition
public float getTransition()
Get the transition of the image.- 返回:
- the transition
- 另请参阅:
setTransition(float)
-
setDestination
public void setDestination(BufferedImage destination)
Set the destination image.- 参数:
destination- the destination image- 另请参阅:
getDestination()
-
getDestination
public BufferedImage getDestination()
Get the destination image.- 返回:
- the destination image
- 另请参阅:
setDestination(java.awt.image.BufferedImage)
-
prepareFilter
public void prepareFilter(float transition)
Prepare the filter for the transiton at a given time. The default implementation sets the given filter property, but you could override this method to make other changes.- 参数:
transition- the transition time in the range 0 - 1
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
-
-