org.jvnet.flamingo.utils
Class ColorShiftFilter

java.lang.Object
  extended by org.jvnet.flamingo.utils.AbstractFilter
      extended by org.jvnet.flamingo.utils.ColorShiftFilter
All Implemented Interfaces:
java.awt.image.BufferedImageOp

public class ColorShiftFilter
extends AbstractFilter

Image filter that shifts the colors of the original image.

Author:
Kirill Grouchnikov

Constructor Summary
ColorShiftFilter(java.awt.Color shiftColor, double shiftAmount)
          Creates a new color shift filter.
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 
Methods inherited from class org.jvnet.flamingo.utils.AbstractFilter
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorShiftFilter

public ColorShiftFilter(java.awt.Color shiftColor,
                        double shiftAmount)
Creates a new color shift filter.

Parameters:
shiftColor - Shift color.
shiftAmount - Shift amount in 0.0-1.0 range.
Method Detail

filter

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