public class TransitionFilter extends AbstractBufferedImageOp
Modifier and Type | Field and Description |
---|---|
private BufferedImage |
destination |
protected BufferedImageOp |
filter
The filter used for the transition.
|
protected float |
maxValue
The end value for the filter property.
|
private Method |
method |
protected float |
minValue
The start value for the filter property.
|
private String |
property |
private float |
transition |
Modifier | Constructor and Description |
---|---|
private |
TransitionFilter()
Construct a TransitionFilter.
|
|
TransitionFilter(BufferedImageOp filter,
String property,
float minValue,
float maxValue)
Construct a TransitionFilter.
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
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(BufferedImage destination)
Set the destination image.
|
void |
setTransition(float transition)
Set the transition of the image in the range 0..1.
|
String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private float transition
private BufferedImage destination
protected BufferedImageOp filter
protected float minValue
protected float maxValue
private TransitionFilter()
public TransitionFilter(BufferedImageOp filter, 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 transitiongetTransition()
public float getTransition()
setTransition(float)
public void setDestination(BufferedImage destination)
destination
- the destination imagegetDestination()
public BufferedImage getDestination()
setDestination(java.awt.image.BufferedImage)
public void prepareFilter(float transition)
transition
- the transition time in the range 0 - 1public BufferedImage filter(BufferedImage src, BufferedImage dst)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses