org.jscience.media.pictures.filters
Class TransferFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by org.jscience.media.pictures.filters.TransferFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
ContrastFilter, GammaFilter, RescaleFilter, SolarizeFilter

public abstract class TransferFilter
extends java.awt.image.RGBImageFilter
implements java.io.Serializable

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
protected  int[] bTable
          DOCUMENT ME!
protected  int[] gTable
          DOCUMENT ME!
protected  boolean initialized
          DOCUMENT ME!
protected  int[] rTable
          DOCUMENT ME!
 
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
TransferFilter()
          Creates a new TransferFilter object.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          DOCUMENT ME!
protected  void initialize()
          DOCUMENT ME!
protected  int[] makeTable()
          DOCUMENT ME!
 void setDimensions(int width, int height)
          DOCUMENT ME!
protected  int transferFunction(int v)
          DOCUMENT ME!
 
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, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rTable

protected int[] rTable
DOCUMENT ME!


gTable

protected int[] gTable
DOCUMENT ME!


bTable

protected int[] bTable
DOCUMENT ME!


initialized

protected boolean initialized
DOCUMENT ME!

Constructor Detail

TransferFilter

public TransferFilter()
Creates a new TransferFilter object.

Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
DOCUMENT ME!

Specified by:
filterRGB in class java.awt.image.RGBImageFilter
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
rgb - DOCUMENT ME!
Returns:
DOCUMENT ME!

setDimensions

public void setDimensions(int width,
                          int height)
DOCUMENT ME!

Specified by:
setDimensions in interface java.awt.image.ImageConsumer
Overrides:
setDimensions in class java.awt.image.ImageFilter
Parameters:
width - DOCUMENT ME!
height - DOCUMENT ME!

initialize

protected void initialize()
DOCUMENT ME!


makeTable

protected int[] makeTable()
DOCUMENT ME!

Returns:
DOCUMENT ME!

transferFunction

protected int transferFunction(int v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!