Package com.l2fprod.util
Class ColorFillFilter
- java.lang.Object
-
- java.awt.image.ImageFilter
-
- java.awt.image.RGBImageFilter
-
- com.l2fprod.util.ColorFillFilter
-
- All Implemented Interfaces:
java.awt.image.ImageConsumer
,java.lang.Cloneable
public class ColorFillFilter extends java.awt.image.RGBImageFilter
- Version:
- $Revision: 1.1 $, $Date: 2004/07/18 11:19:44 $
- Author:
- $Author: l2fprod $
-
-
Constructor Summary
Constructors Constructor Description ColorFillFilter()
Constructor for the ColorFillFilter objectColorFillFilter(int r, int g, int b)
Constructor for the ColorFillFilter objectColorFillFilter(java.awt.Color color)
Constructor for the ColorFillFilter object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dest)
int
filterRGB(int x, int y, int rgb)
Description of the Methodvoid
setBlue(int b)
Sets the Blue attribute of the ColorFillFilter objectvoid
setColor(int r, int g, int b)
Sets the Color attribute of the ColorFillFilter objectvoid
setGreen(int g)
Sets the Green attribute of the ColorFillFilter objectvoid
setRed(int r)
Sets the Red attribute of the ColorFillFilter object-
Methods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
-
-
-
-
Constructor Detail
-
ColorFillFilter
public ColorFillFilter(int r, int g, int b)
Constructor for the ColorFillFilter object- Parameters:
r
- Description of Parameterg
- Description of Parameterb
- Description of Parameter
-
ColorFillFilter
public ColorFillFilter(java.awt.Color color)
Constructor for the ColorFillFilter object- Parameters:
color
- Description of Parameter
-
ColorFillFilter
public ColorFillFilter()
Constructor for the ColorFillFilter object
-
-
Method Detail
-
setColor
public void setColor(int r, int g, int b)
Sets the Color attribute of the ColorFillFilter object- Parameters:
r
- The new Color valueg
- The new Color valueb
- The new Color value
-
setRed
public void setRed(int r)
Sets the Red attribute of the ColorFillFilter object- Parameters:
r
- The new Red value
-
setGreen
public void setGreen(int g)
Sets the Green attribute of the ColorFillFilter object- Parameters:
g
- The new Green value
-
setBlue
public void setBlue(int b)
Sets the Blue attribute of the ColorFillFilter object- Parameters:
b
- The new Blue value
-
filterRGB
public int filterRGB(int x, int y, int rgb)
Description of the Method- Specified by:
filterRGB
in classjava.awt.image.RGBImageFilter
- Parameters:
x
- Description of Parametery
- Description of Parameterrgb
- Description of Parameter- Returns:
- Description of the Returned Value
-
filter
public void filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dest)
-
-