public class TransitionFilter extends AbstractBufferedImageOp
Modifier and Type | Field and Description |
---|---|
protected java.awt.image.BufferedImageOp |
filter
The filter used for the transition.
|
protected float |
maxValue
The end value for the filter property.
|
protected float |
minValue
The start value for the filter property.
|
Constructor and Description |
---|
TransitionFilter(java.awt.image.BufferedImageOp filter,
java.lang.String property,
float minValue,
float maxValue)
Construct a TransitionFilter.
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
java.awt.image.BufferedImage |
getDestination()
Get the destination image.
|
float |
getTransition()
Get the transition of the image.
|
void |
prepareFilter(float transition)
Prepare the filter for the transiton at a given time.
|
void |
setDestination(java.awt.image.BufferedImage destination)
Set the destination image.
|
void |
setTransition(float transition)
Set the transition of the image in the range 0..1.
|
java.lang.String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
protected java.awt.image.BufferedImageOp filter
protected float minValue
protected float maxValue
public TransitionFilter(java.awt.image.BufferedImageOp filter, java.lang.String property, float minValue, float maxValue)
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 propertypublic void setTransition(float transition)
transition
- the transition. Minimum value: 0, maximum value: 1getTransition()
public float getTransition()
setTransition(float)
public void setDestination(java.awt.image.BufferedImage destination)
destination
- the destination imagegetDestination()
public java.awt.image.BufferedImage getDestination()
setDestination(BufferedImage)
public void prepareFilter(float transition)
transition
- the transition time in the range 0 - 1public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
public java.lang.String toString()
toString
in class java.lang.Object