com.jhlabs.image
Class TransitionFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.TransitionFilter
All Implemented Interfaces:
java.awt.image.BufferedImageOp, java.lang.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 );


Field Summary
protected  java.awt.image.BufferedImageOp filter
           
protected  float maxValue
           
protected  float minValue
           
 
Constructor Summary
TransitionFilter(java.awt.image.BufferedImageOp filter, java.lang.String property, float minValue, float maxValue)
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 java.awt.image.BufferedImage getDestination()
           
 float getTransition()
           
 void prepareFilter(float transition)
           
 void setDestination(java.awt.image.BufferedImage destination)
           
 void setTransition(float transition)
          Set the transition of the image in the range 0..1.
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filter

protected java.awt.image.BufferedImageOp filter

minValue

protected float minValue

maxValue

protected float maxValue
Constructor Detail

TransitionFilter

public TransitionFilter(java.awt.image.BufferedImageOp filter,
                        java.lang.String property,
                        float minValue,
                        float maxValue)
Method Detail

setTransition

public void setTransition(float transition)
Set the transition of the image in the range 0..1. *arg transition The transition


getTransition

public float getTransition()

setDestination

public void setDestination(java.awt.image.BufferedImage destination)

getDestination

public java.awt.image.BufferedImage getDestination()

prepareFilter

public void prepareFilter(float transition)

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object