com.jhlabs.image
Class RaysFilter

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

public class RaysFilter
extends MotionBlurOp

A filter which produces the effect of light rays shining out of an image.


Constructor Summary
RaysFilter()
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 Colormap getColormap()
          Get the colormap to be used for the filter.
 float getOpacity()
          Get the opacity of the rays.
 boolean getRaysOnly()
          Get whether to render only the rays.
 float getStrength()
          Get the strength of the rays.
 float getThreshold()
          Get the threshold value.
 void setColormap(Colormap colormap)
          Set the colormap to be used for the filter.
 void setOpacity(float opacity)
          Set the opacity of the rays.
 void setRaysOnly(boolean raysOnly)
          Set whether to render only the rays.
 void setStrength(float strength)
          Set the strength of the rays.
 void setThreshold(float threshold)
          Set the threshold value.
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.MotionBlurOp
getAngle, getCentre, getCentreX, getCentreY, getDistance, getRotation, getZoom, setAngle, setCentre, setCentreX, setCentreY, setDistance, setRotation, setZoom
 
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
 

Constructor Detail

RaysFilter

public RaysFilter()
Method Detail

setOpacity

public void setOpacity(float opacity)
Set the opacity of the rays.

Parameters:
opacity - the opacity.
See Also:
getOpacity()

getOpacity

public float getOpacity()
Get the opacity of the rays.

Returns:
the opacity.
See Also:
setOpacity(float)

setThreshold

public void setThreshold(float threshold)
Set the threshold value.

Parameters:
threshold - the threshold value
See Also:
getThreshold()

getThreshold

public float getThreshold()
Get the threshold value.

Returns:
the threshold value
See Also:
setThreshold(float)

setStrength

public void setStrength(float strength)
Set the strength of the rays.

Parameters:
strength - the strength.
See Also:
getStrength()

getStrength

public float getStrength()
Get the strength of the rays.

Returns:
the strength.
See Also:
setStrength(float)

setRaysOnly

public void setRaysOnly(boolean raysOnly)
Set whether to render only the rays.

Parameters:
raysOnly - true to render rays only.
See Also:
getRaysOnly()

getRaysOnly

public boolean getRaysOnly()
Get whether to render only the rays.

Returns:
true to render rays only.
See Also:
setRaysOnly(boolean)

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)

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)
Specified by:
filter in interface java.awt.image.BufferedImageOp
Overrides:
filter in class MotionBlurOp

toString

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