org.jscience.media.pictures.filters
Class FBMFilter

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

public class FBMFilter
extends java.awt.image.RGBImageFilter
implements MutatableFilter, java.lang.Cloneable, java.io.Serializable

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
static int CELLULAR
          DOCUMENT ME!
static int NOISE
          DOCUMENT ME!
protected  java.util.Random random
          DOCUMENT ME!
static int RIDGED
          DOCUMENT ME!
static int SCNOISE
          DOCUMENT ME!
static int VLNOISE
          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
FBMFilter()
          Creates a new FBMFilter object.
 
Method Summary
 java.lang.Object clone()
          DOCUMENT ME!
 int filterRGB(int x, int y, int rgb)
          DOCUMENT ME!
 float getAmount()
          DOCUMENT ME!
 float getAngle()
          DOCUMENT ME!
 Function2D getBasis()
          DOCUMENT ME!
 int getBasisType()
          DOCUMENT ME!
 float getBias()
          DOCUMENT ME!
 Colormap getColormap()
          DOCUMENT ME!
 float getGain()
          DOCUMENT ME!
 float getH()
          DOCUMENT ME!
 float getLacunarity()
          DOCUMENT ME!
 float getOctaves()
          DOCUMENT ME!
 int getOperation()
          DOCUMENT ME!
 float getScale()
          DOCUMENT ME!
 float getStretch()
          DOCUMENT ME!
protected  FBM makeFBM(float H, float lacunarity, float octaves)
          DOCUMENT ME!
 void mutate(int amount, java.awt.image.ImageFilter d, boolean keepShape, boolean keepColors)
          DOCUMENT ME!
 void setAmount(float amount)
          DOCUMENT ME!
 void setAngle(float angle)
          DOCUMENT ME!
 void setBasis(Function2D basis)
          DOCUMENT ME!
 void setBasisType(int basisType)
          DOCUMENT ME!
 void setBias(float bias)
          DOCUMENT ME!
 void setColormap(Colormap colormap)
          DOCUMENT ME!
 void setDimensions(int width, int height)
          DOCUMENT ME!
 void setGain(float gain)
          DOCUMENT ME!
 void setH(float H)
          DOCUMENT ME!
 void setLacunarity(float lacunarity)
          DOCUMENT ME!
 void setOctaves(float octaves)
          DOCUMENT ME!
 void setOperation(int operation)
          DOCUMENT ME!
 void setScale(float scale)
          DOCUMENT ME!
 void setStretch(float stretch)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
 
Methods inherited from class java.awt.image.ImageFilter
getFilterInstance, imageComplete, resendTopDownLeftRight, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOISE

public static final int NOISE
DOCUMENT ME!

See Also:
Constant Field Values

RIDGED

public static final int RIDGED
DOCUMENT ME!

See Also:
Constant Field Values

VLNOISE

public static final int VLNOISE
DOCUMENT ME!

See Also:
Constant Field Values

SCNOISE

public static final int SCNOISE
DOCUMENT ME!

See Also:
Constant Field Values

CELLULAR

public static final int CELLULAR
DOCUMENT ME!

See Also:
Constant Field Values

random

protected java.util.Random random
DOCUMENT ME!

Constructor Detail

FBMFilter

public FBMFilter()
Creates a new FBMFilter object.

Method Detail

setAmount

public void setAmount(float amount)
DOCUMENT ME!

Parameters:
amount - DOCUMENT ME!

getAmount

public float getAmount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setOperation

public void setOperation(int operation)
DOCUMENT ME!

Parameters:
operation - DOCUMENT ME!

getOperation

public int getOperation()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setScale

public void setScale(float scale)
DOCUMENT ME!

Parameters:
scale - DOCUMENT ME!

getScale

public float getScale()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setStretch

public void setStretch(float stretch)
DOCUMENT ME!

Parameters:
stretch - DOCUMENT ME!

getStretch

public float getStretch()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setAngle

public void setAngle(float angle)
DOCUMENT ME!

Parameters:
angle - DOCUMENT ME!

getAngle

public float getAngle()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setOctaves

public void setOctaves(float octaves)
DOCUMENT ME!

Parameters:
octaves - DOCUMENT ME!

getOctaves

public float getOctaves()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setH

public void setH(float H)
DOCUMENT ME!

Parameters:
H - DOCUMENT ME!

getH

public float getH()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setLacunarity

public void setLacunarity(float lacunarity)
DOCUMENT ME!

Parameters:
lacunarity - DOCUMENT ME!

getLacunarity

public float getLacunarity()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setGain

public void setGain(float gain)
DOCUMENT ME!

Parameters:
gain - DOCUMENT ME!

getGain

public float getGain()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setBias

public void setBias(float bias)
DOCUMENT ME!

Parameters:
bias - DOCUMENT ME!

getBias

public float getBias()
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!

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!

setBasisType

public void setBasisType(int basisType)
DOCUMENT ME!

Parameters:
basisType - DOCUMENT ME!

getBasisType

public int getBasisType()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setBasis

public void setBasis(Function2D basis)
DOCUMENT ME!

Parameters:
basis - DOCUMENT ME!

getBasis

public Function2D getBasis()
DOCUMENT ME!

Returns:
DOCUMENT ME!

makeFBM

protected FBM makeFBM(float H,
                      float lacunarity,
                      float octaves)
DOCUMENT ME!

Parameters:
H - DOCUMENT ME!
lacunarity - DOCUMENT ME!
octaves - DOCUMENT ME!
Returns:
DOCUMENT ME!

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!

mutate

public void mutate(int amount,
                   java.awt.image.ImageFilter d,
                   boolean keepShape,
                   boolean keepColors)
DOCUMENT ME!

Specified by:
mutate in interface MutatableFilter
Parameters:
amount - DOCUMENT ME!
d - DOCUMENT ME!
keepShape - DOCUMENT ME!
keepColors - DOCUMENT ME!

clone

public java.lang.Object clone()
DOCUMENT ME!

Overrides:
clone in class java.awt.image.ImageFilter
Returns:
DOCUMENT ME!

toString

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

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