com.partnersoft.gui
Class ConfigurableColorFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by com.partnersoft.gui.ConfigurableColorFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.lang.Cloneable

public class ConfigurableColorFilter
extends java.awt.image.RGBImageFilter

Allows setting colors in an image in a configurable fashion. requires that only pure colors are used - currently either red, green, or blue at full strength (255). Replaces any instances of those with the specified colors. Leaves alpha alone.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

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
ConfigurableColorFilter(java.util.ArrayList colorArray)
           
 
Method Summary
 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

ConfigurableColorFilter

public ConfigurableColorFilter(java.util.ArrayList colorArray)
Method Detail

filterRGB

public final int filterRGB(int x,
                           int y,
                           int rgb)
Specified by:
filterRGB in class java.awt.image.RGBImageFilter