com.jhlabs.image
Class FillFilter

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

public class FillFilter
extends PointFilter

A filter which fills an image with a given color. Normally you would just call Graphics.fillRect but it can sometimes be useful to go via a filter to fit in with an existing API.


Constructor Summary
FillFilter()
           
FillFilter(int color)
           
 
Method Summary
 int filterRGB(int x, int y, int rgb)
           
 int getFillColor()
           
 void setFillColor(int fillColor)
           
 
Methods inherited from class com.jhlabs.image.PointFilter
filter, setDimensions
 
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, toString, wait, wait, wait
 

Constructor Detail

FillFilter

public FillFilter()

FillFilter

public FillFilter(int color)
Method Detail

setFillColor

public void setFillColor(int fillColor)

getFillColor

public int getFillColor()

filterRGB

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