com.jhlabs.image
Class PlasmaFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.WholeImageFilter
          extended by com.jhlabs.image.PlasmaFilter
All Implemented Interfaces:
java.awt.image.BufferedImageOp, java.lang.Cloneable

public class PlasmaFilter
extends WholeImageFilter


Field Summary
 float turbulence
           
 
Fields inherited from class com.jhlabs.image.WholeImageFilter
originalSpace, transformedSpace
 
Constructor Summary
PlasmaFilter()
           
 
Method Summary
protected  int[] filterPixels(int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)
          Actually filter the pixels.
 Colormap getColormap()
          Get the colormap to be used for the filter.
 float getScaling()
           
 int getSeed()
           
 float getTurbulence()
          Returns the turbulence of the effect.
 boolean getUseColormap()
           
 boolean getUseImageColors()
           
 void randomize()
           
 void setColormap(Colormap colormap)
          Set the colormap to be used for the filter.
 void setScaling(float scaling)
           
 void setSeed(int seed)
           
 void setTurbulence(float turbulence)
          Specifies the turbulence of the texture.
 void setUseColormap(boolean useColormap)
           
 void setUseImageColors(boolean useImageColors)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.WholeImageFilter
filter, transformSpace
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

turbulence

public float turbulence
Constructor Detail

PlasmaFilter

public PlasmaFilter()
Method Detail

setTurbulence

public void setTurbulence(float turbulence)
Specifies the turbulence of the texture.

Parameters:
turbulence - the turbulence of the texture.
See Also:
getTurbulence()

getTurbulence

public float getTurbulence()
Returns the turbulence of the effect.

Returns:
the turbulence of the effect.
See Also:
setTurbulence(float)

setScaling

public void setScaling(float scaling)

getScaling

public float getScaling()

setColormap

public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.

Parameters:
colormap - the colormap
See Also:
getColormap()

getColormap

public Colormap getColormap()
Get the colormap to be used for the filter.

Returns:
the colormap
See Also:
setColormap(com.jhlabs.image.Colormap)

setUseColormap

public void setUseColormap(boolean useColormap)

getUseColormap

public boolean getUseColormap()

setUseImageColors

public void setUseImageColors(boolean useImageColors)

getUseImageColors

public boolean getUseImageColors()

setSeed

public void setSeed(int seed)

getSeed

public int getSeed()

randomize

public void randomize()

filterPixels

protected int[] filterPixels(int width,
                             int height,
                             int[] inPixels,
                             java.awt.Rectangle transformedSpace)
Description copied from class: WholeImageFilter
Actually filter the pixels.

Specified by:
filterPixels in class WholeImageFilter
Parameters:
width - the image width
height - the image height
inPixels - the image pixels
transformedSpace - the output bounds
Returns:
the output pixels

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object