j2d.filters
Class FillFilter

java.lang.Object
  extended by j2d.filters.AbstractBufferedImageOp
      extended by j2d.filters.PointFilter
          extended by j2d.filters.FillFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.io.Serializable, 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.

See Also:
Serialized Form

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 j2d.filters.PointFilter
filter, setDimensions
 
Methods inherited from class j2d.filters.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