model.fish.display
Class ImageFishDisplay.TintFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by model.fish.display.ImageFishDisplay.TintFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.lang.Cloneable
Enclosing class:
ImageFishDisplay

private static class ImageFishDisplay.TintFilter
extends java.awt.image.RGBImageFilter

An image filter class that tints colors based on the tint provided to the constructor (the color of a fish).


Field Summary
private  int tintB
           
private  int tintG
           
private  int tintR
           
 
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
ImageFishDisplay.TintFilter(java.awt.Color color)
          Construct an image filter for tinting colors in an image.
 
Method Summary
 int filterRGB(int x, int y, int argb)
           
 
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

tintR

private int tintR

tintG

private int tintG

tintB

private int tintB
Constructor Detail

ImageFishDisplay.TintFilter

public ImageFishDisplay.TintFilter(java.awt.Color color)
Construct an image filter for tinting colors in an image.

Parameters:
color - tint
Method Detail

filterRGB

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