Class 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 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int m_Blue
      Description of the Field
      int m_Green
      Description of the Field
      int m_Red
      Description of the Field
      • Fields inherited from class java.awt.image.RGBImageFilter

        canFilterIndexColorModel, newmodel, origmodel
      • Fields inherited from class java.awt.image.ImageFilter

        consumer
      • Fields inherited from interface java.awt.image.ImageConsumer

        COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorFillFilter()
      Constructor for the ColorFillFilter object
      ColorFillFilter​(int r, int g, int b)
      Constructor for the ColorFillFilter object
      ColorFillFilter​(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 Method
      void setBlue​(int b)
      Sets the Blue attribute of the ColorFillFilter object
      void setColor​(int r, int g, int b)
      Sets the Color attribute of the ColorFillFilter object
      void setGreen​(int g)
      Sets the Green attribute of the ColorFillFilter object
      void 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
      • Methods inherited from class java.awt.image.ImageFilter

        clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_Red

        public int m_Red
        Description of the Field
      • m_Green

        public int m_Green
        Description of the Field
      • m_Blue

        public int m_Blue
        Description of the Field
    • Constructor Detail

      • ColorFillFilter

        public ColorFillFilter​(int r,
                               int g,
                               int b)
        Constructor for the ColorFillFilter object
        Parameters:
        r - Description of Parameter
        g - Description of Parameter
        b - 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 value
        g - The new Color value
        b - 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 class java.awt.image.RGBImageFilter
        Parameters:
        x - Description of Parameter
        y - Description of Parameter
        rgb - Description of Parameter
        Returns:
        Description of the Returned Value
      • filter

        public void filter​(java.awt.image.BufferedImage src,
                           java.awt.image.BufferedImage dest)