com.jhlabs.image
Class ShadowFilter

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

public class ShadowFilter
extends AbstractBufferedImageOp


Constructor Summary
ShadowFilter()
           
ShadowFilter(float radius, float xOffset, float yOffset, float opacity)
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 boolean getAddMargins()
           
 float getAngle()
           
 float getDistance()
           
 float getOpacity()
           
 float getRadius()
          Get the radius of the kernel.
 int getShadowColor()
           
 boolean getShadowOnly()
           
 void setAddMargins(boolean addMargins)
           
 void setAngle(float angle)
           
 void setDistance(float distance)
           
 void setOpacity(float opacity)
           
 void setRadius(float radius)
          Set the radius of the kernel, and hence the amount of blur.
 void setShadowColor(int shadowColor)
           
 void setShadowOnly(boolean shadowOnly)
           
 java.lang.String toString()
           
protected  void transformSpace(java.awt.Rectangle r)
           
 
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

ShadowFilter

public ShadowFilter()

ShadowFilter

public ShadowFilter(float radius,
                    float xOffset,
                    float yOffset,
                    float opacity)
Method Detail

setAngle

public void setAngle(float angle)

getAngle

public float getAngle()

setDistance

public void setDistance(float distance)

getDistance

public float getDistance()

setRadius

public void setRadius(float radius)
Set the radius of the kernel, and hence the amount of blur. The bigger the radius, the longer this filter will take.

Parameters:
radius - the radius of the blur in pixels.

getRadius

public float getRadius()
Get the radius of the kernel.

Returns:
the radius

setOpacity

public void setOpacity(float opacity)

getOpacity

public float getOpacity()

setShadowColor

public void setShadowColor(int shadowColor)

getShadowColor

public int getShadowColor()

setAddMargins

public void setAddMargins(boolean addMargins)

getAddMargins

public boolean getAddMargins()

setShadowOnly

public void setShadowOnly(boolean shadowOnly)

getShadowOnly

public boolean getShadowOnly()

transformSpace

protected void transformSpace(java.awt.Rectangle r)

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)

toString

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