JIDE 3.5.15

com.jidesoft.icons
Class TintFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by com.jidesoft.icons.TintFilter
All Implemented Interfaces:
ImageConsumer, Cloneable

public class TintFilter
extends RGBImageFilter

An image filter that tints the image with a color.


Field Summary
 
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
TintFilter(Color color, int width, int height, Insets insets)
           
 
Method Summary
static Image createTintedImage(Image i, Color color, Insets insets)
          Creates a tinted image
 int filterRGB(int x, int y, int rgb)
           
 
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
 

Constructor Detail

TintFilter

public TintFilter(Color color,
                  int width,
                  int height,
                  Insets insets)
Method Detail

filterRGB

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

createTintedImage

public static Image createTintedImage(Image i,
                                      Color color,
                                      Insets insets)
Creates a tinted image

Parameters:
i - the original image
color - the color to be tinted
insets - the insets. The border area with the insets will not be tinted.
Returns:
a tinted image

JIDE 3.5.15