org.jscience.media.pictures.filters
Class DistanceFilter

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

public class DistanceFilter
extends WholeImageFilter

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
protected  Colormap colormap
          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
DistanceFilter()
          Creates a new DistanceFilter object.
 
Method Summary
 int distanceMap(int[] pixels, int width, int height)
          DOCUMENT ME!
 Colormap getColormap()
          DOCUMENT ME!
 float getFactor()
          DOCUMENT ME!
 boolean getUseAlpha()
          DOCUMENT ME!
 void imageComplete(int status)
          DOCUMENT ME!
 void setColormap(Colormap colormap)
          DOCUMENT ME!
 void setFactor(float factor)
          DOCUMENT ME!
 void setUseAlpha(boolean useAlpha)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.WholeImageFilter
setColorModel, setDimensions, setPixels, setPixels, transformSpace
 
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, wait, wait, wait
 

Field Detail

colormap

protected Colormap colormap
DOCUMENT ME!

Constructor Detail

DistanceFilter

public DistanceFilter()
Creates a new DistanceFilter object.

Method Detail

setFactor

public void setFactor(float factor)
DOCUMENT ME!

Parameters:
factor - DOCUMENT ME!

getFactor

public float getFactor()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setColormap

public void setColormap(Colormap colormap)
DOCUMENT ME!

Parameters:
colormap - DOCUMENT ME!

getColormap

public Colormap getColormap()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setUseAlpha

public void setUseAlpha(boolean useAlpha)
DOCUMENT ME!

Parameters:
useAlpha - DOCUMENT ME!

getUseAlpha

public boolean getUseAlpha()
DOCUMENT ME!

Returns:
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!

distanceMap

public int distanceMap(int[] pixels,
                       int width,
                       int height)
DOCUMENT ME!

Parameters:
pixels - DOCUMENT ME!
width - DOCUMENT ME!
height - DOCUMENT ME!
Returns:
DOCUMENT ME!

toString

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

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