Class ColorFillFilter
java.lang.Object
java.awt.image.ImageFilter
java.awt.image.RGBImageFilter
com.l2fprod.util.ColorFillFilter
- All Implemented Interfaces:
ImageConsumer, Cloneable
- Version:
- $Revision: 1.1 $, $Date: 2004/07/18 11:19:44 $
- Author:
- $Author: l2fprod $
-
Field Summary
FieldsModifier and TypeFieldDescriptionintDescription of the FieldintDescription of the FieldintDescription of the FieldFields inherited from class RGBImageFilter
canFilterIndexColorModel, newmodel, origmodelFields inherited from class ImageFilter
consumerFields inherited from interface ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the ColorFillFilter objectColorFillFilter(int r, int g, int b) Constructor for the ColorFillFilter objectColorFillFilter(Color color) Constructor for the ColorFillFilter object -
Method Summary
Modifier and TypeMethodDescriptionvoidfilter(BufferedImage src, BufferedImage dest) intfilterRGB(int x, int y, int rgb) Description of the MethodvoidsetBlue(int b) Sets the Blue attribute of the ColorFillFilter objectvoidsetColor(int r, int g, int b) Sets the Color attribute of the ColorFillFilter objectvoidsetGreen(int g) Sets the Green attribute of the ColorFillFilter objectvoidsetRed(int r) Sets the Red attribute of the ColorFillFilter objectMethods inherited from class RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModelMethods inherited from class ImageFilter
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties
-
Field Details
-
m_Red
public int m_RedDescription of the Field -
m_Green
public int m_GreenDescription of the Field -
m_Blue
public int m_BlueDescription of the Field
-
-
Constructor Details
-
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
Constructor for the ColorFillFilter object- Parameters:
color- Description of Parameter
-
ColorFillFilter
public ColorFillFilter()Constructor for the ColorFillFilter object
-
-
Method Details
-
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:
filterRGBin classRGBImageFilter- Parameters:
x- Description of Parametery- Description of Parameterrgb- Description of Parameter- Returns:
- Description of the Returned Value
-
filter
-