org.jscience.media.pictures.filters
Class ShapeFilter

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

public class ShapeFilter
extends WholeImageFilter

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
static int CIRCLE_DOWN
          DOCUMENT ME!
static int CIRCLE_UP
          DOCUMENT ME!
protected  Colormap colormap
          DOCUMENT ME!
static int LINEAR
          DOCUMENT ME!
static int SMOOTH
          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
ShapeFilter()
          Creates a new ShapeFilter object.
 
Method Summary
 float ddistanceMap(int[] pixels, float[] map, int width, int height)
          DOCUMENT ME!
 int distanceMap(int[] map, int width, int height)
          DOCUMENT ME!
 float gddistanceMap(int[] pixels, float[] map, int width, int height)
          DOCUMENT ME!
 Colormap getColormap()
          DOCUMENT ME!
 float getFactor()
          DOCUMENT ME!
 boolean getInvert()
          DOCUMENT ME!
 boolean getMerge()
          DOCUMENT ME!
 int getType()
          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 setInvert(boolean invert)
          DOCUMENT ME!
 void setMerge(boolean merge)
          DOCUMENT ME!
 void setType(int type)
          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

LINEAR

public static final int LINEAR
DOCUMENT ME!

See Also:
Constant Field Values

CIRCLE_UP

public static final int CIRCLE_UP
DOCUMENT ME!

See Also:
Constant Field Values

CIRCLE_DOWN

public static final int CIRCLE_DOWN
DOCUMENT ME!

See Also:
Constant Field Values

SMOOTH

public static final int SMOOTH
DOCUMENT ME!

See Also:
Constant Field Values

colormap

protected Colormap colormap
DOCUMENT ME!

Constructor Detail

ShapeFilter

public ShapeFilter()
Creates a new ShapeFilter 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!

setType

public void setType(int type)
DOCUMENT ME!

Parameters:
type - DOCUMENT ME!

getType

public int getType()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setInvert

public void setInvert(boolean invert)
DOCUMENT ME!

Parameters:
invert - DOCUMENT ME!

getInvert

public boolean getInvert()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setMerge

public void setMerge(boolean merge)
DOCUMENT ME!

Parameters:
merge - DOCUMENT ME!

getMerge

public boolean getMerge()
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[] map,
                       int width,
                       int height)
DOCUMENT ME!

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

gddistanceMap

public float gddistanceMap(int[] pixels,
                           float[] map,
                           int width,
                           int height)
DOCUMENT ME!

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

ddistanceMap

public float ddistanceMap(int[] pixels,
                          float[] map,
                          int width,
                          int height)
DOCUMENT ME!

Parameters:
pixels - DOCUMENT ME!
map - 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!