com.jhlabs.image
Class FourColorFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.PointFilter
          extended by com.jhlabs.image.FourColorFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable

public class FourColorFilter
extends PointFilter

A filter which draws a gradient interpolated between four colors defined at the corners of the image.


Constructor Summary
FourColorFilter()
           
 
Method Summary
 int filterRGB(int x, int y, int rgb)
           
 int getColorNE()
           
 int getColorNW()
           
 int getColorSE()
           
 int getColorSW()
           
 void setColorNE(int color)
           
 void setColorNW(int color)
           
 void setColorSE(int color)
           
 void setColorSW(int color)
           
 void setDimensions(int width, int height)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.PointFilter
filter
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FourColorFilter

public FourColorFilter()
Method Detail

setColorNW

public void setColorNW(int color)

getColorNW

public int getColorNW()

setColorNE

public void setColorNE(int color)

getColorNE

public int getColorNE()

setColorSW

public void setColorSW(int color)

getColorSW

public int getColorSW()

setColorSE

public void setColorSE(int color)

getColorSE

public int getColorSE()

setDimensions

public void setDimensions(int width,
                          int height)
Overrides:
setDimensions in class PointFilter

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Specified by:
filterRGB in class PointFilter

toString

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