org.jscience.media.pictures.filters
Class TransformFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by org.jscience.media.pictures.filters.WholeImageFilter
          extended by org.jscience.media.pictures.filters.TransformFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
BlockFilter, MarbleFilter, PerspectivFilter, PolarFilter, RippleFilter, RotateFilter, ShearFilter, SphereFilter, TwirlFilter

public abstract class TransformFilter
extends WholeImageFilter

An abstract superclass for filters which distort images in some way. The subclass only needs to override two methods to provide the mapping between source and destination pixels.

See Also:
Serialized Form

Field Summary
static int CLAMP
          DOCUMENT ME!
protected  int edgeAction
          DOCUMENT ME!
static int WRAP
          DOCUMENT ME!
static int ZERO
          DOCUMENT ME!
 
Fields inherited from class org.jscience.media.pictures.filters.WholeImageFilter
canFilterIndexColorModel, defaultRGBModel, inBytePixels, inPixels, originalSpace, transformedSpace
 
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
TransformFilter()
           
 
Method Summary
 int getEdgeAction()
          DOCUMENT ME!
 void imageComplete(int status)
          DOCUMENT ME!
 void setEdgeAction(int edgeAction)
          DOCUMENT ME!
protected abstract  void transformInverse(int x, int y, float[] out)
          DOCUMENT ME!
protected  void transformSpace(java.awt.Rectangle rect)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.WholeImageFilter
setColorModel, setDimensions, setPixels, setPixels
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, resendTopDownLeftRight, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

public static final int ZERO
DOCUMENT ME!

See Also:
Constant Field Values

CLAMP

public static final int CLAMP
DOCUMENT ME!

See Also:
Constant Field Values

WRAP

public static final int WRAP
DOCUMENT ME!

See Also:
Constant Field Values

edgeAction

protected int edgeAction
DOCUMENT ME!

Constructor Detail

TransformFilter

public TransformFilter()
Method Detail

setEdgeAction

public void setEdgeAction(int edgeAction)
DOCUMENT ME!

Parameters:
edgeAction - DOCUMENT ME!

getEdgeAction

public int getEdgeAction()
DOCUMENT ME!

Returns:
DOCUMENT ME!

transformInverse

protected abstract void transformInverse(int x,
                                         int y,
                                         float[] out)
DOCUMENT ME!

Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
out - DOCUMENT ME!

transformSpace

protected void transformSpace(java.awt.Rectangle rect)
DOCUMENT ME!

Overrides:
transformSpace in class WholeImageFilter
Parameters:
rect - DOCUMENT ME!

imageComplete

public void imageComplete(int status)
DOCUMENT ME!

Specified by:
imageComplete in interface java.awt.image.ImageConsumer
Overrides:
imageComplete in class java.awt.image.ImageFilter
Parameters:
status - DOCUMENT ME!