org.jscience.media.pictures.filters
Class GammaFilter

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

public class GammaFilter
extends TransferFilter

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.media.pictures.filters.TransferFilter
bTable, gTable, initialized, rTable
 
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
GammaFilter()
          Creates a new GammaFilter object.
GammaFilter(float gamma)
          Creates a new GammaFilter object.
GammaFilter(float rGamma, float gGamma, float bGamma)
          Creates a new GammaFilter object.
 
Method Summary
 float getGamma()
          DOCUMENT ME!
protected  void initialize()
          DOCUMENT ME!
protected  int[] makeTable(float gamma)
          DOCUMENT ME!
 void setGamma(float gamma)
          DOCUMENT ME!
 void setGamma(float rGamma, float gGamma, float bGamma)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.TransferFilter
filterRGB, makeTable, setDimensions, transferFunction
 
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, wait, wait, wait
 

Constructor Detail

GammaFilter

public GammaFilter()
Creates a new GammaFilter object.


GammaFilter

public GammaFilter(float gamma)
Creates a new GammaFilter object.

Parameters:
gamma - DOCUMENT ME!

GammaFilter

public GammaFilter(float rGamma,
                   float gGamma,
                   float bGamma)
Creates a new GammaFilter object.

Parameters:
rGamma - DOCUMENT ME!
gGamma - DOCUMENT ME!
bGamma - DOCUMENT ME!
Method Detail

setGamma

public void setGamma(float rGamma,
                     float gGamma,
                     float bGamma)
DOCUMENT ME!

Parameters:
rGamma - DOCUMENT ME!
gGamma - DOCUMENT ME!
bGamma - DOCUMENT ME!

setGamma

public void setGamma(float gamma)
DOCUMENT ME!

Parameters:
gamma - DOCUMENT ME!

getGamma

public float getGamma()
DOCUMENT ME!

Returns:
DOCUMENT ME!

initialize

protected void initialize()
DOCUMENT ME!

Overrides:
initialize in class TransferFilter

makeTable

protected int[] makeTable(float gamma)
DOCUMENT ME!

Parameters:
gamma - DOCUMENT ME!
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!