railo.runtime.img.filter
Class FillFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.PointFilter
          extended by railo.runtime.img.filter.FillFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class FillFilter
extends PointFilter
implements DynFiltering

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()
          Construct a FillFilter.
FillFilter(int color)
          Construct a FillFilter.
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 int filterRGB(int x, int y, int rgb)
           
 int getFillColor()
          Get the fill color.
 void setFillColor(int fillColor)
          Set the fill color.
 
Methods inherited from class railo.runtime.img.filter.PointFilter
filter, setDimensions
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FillFilter

public FillFilter()
Construct a FillFilter.


FillFilter

public FillFilter(int color)
Construct a FillFilter.

Parameters:
color - the fill color
Method Detail

setFillColor

public void setFillColor(int fillColor)
Set the fill color.

Parameters:
fillColor - the fill color
See Also:
getFillColor()

getFillColor

public int getFillColor()
Get the fill color.

Returns:
the fill color
See Also:
setFillColor(int)

filterRGB

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

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Overrides:
filter in class PointFilter
Throws:
PageException


Copyright © 2012 Railo