org.jscience.media.pictures.filters
Class ShadowFilter

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

public class ShadowFilter
extends WholeImageFilter

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
 
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
ShadowFilter()
          Creates a new ShadowFilter object.
ShadowFilter(int radius, int xOffset, int yOffset, int opacity)
          Creates a new ShadowFilter object.
 
Method Summary
 int getBackgroundColor()
          DOCUMENT ME!
 int getOpacity()
          DOCUMENT ME!
 int getRadius()
          Get the radius of the kernel.
 int getShadowColor()
          DOCUMENT ME!
 int getXOffset()
          DOCUMENT ME!
 int getYOffset()
          DOCUMENT ME!
 void imageComplete(int status)
          DOCUMENT ME!
 void setBackgroundColor(int backgroundColor)
          DOCUMENT ME!
 void setOpacity(int opacity)
          DOCUMENT ME!
 void setRadius(int radius)
          Set the radius of the kernel, and hence the amount of blur.
 void setShadowColor(int shadowColor)
          DOCUMENT ME!
 void setXOffset(int xOffset)
          DOCUMENT ME!
 void setYOffset(int yOffset)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
protected  void transformSpace(java.awt.Rectangle r)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.WholeImageFilter
setColorModel, setDimensions, setPixels, setPixels
 
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
 

Constructor Detail

ShadowFilter

public ShadowFilter()
Creates a new ShadowFilter object.


ShadowFilter

public ShadowFilter(int radius,
                    int xOffset,
                    int yOffset,
                    int opacity)
Creates a new ShadowFilter object.

Parameters:
radius - DOCUMENT ME!
xOffset - DOCUMENT ME!
yOffset - DOCUMENT ME!
opacity - DOCUMENT ME!
Method Detail

setXOffset

public void setXOffset(int xOffset)
DOCUMENT ME!

Parameters:
xOffset - DOCUMENT ME!

getXOffset

public int getXOffset()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setYOffset

public void setYOffset(int yOffset)
DOCUMENT ME!

Parameters:
yOffset - DOCUMENT ME!

getYOffset

public int getYOffset()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setRadius

public void setRadius(int 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 int getRadius()
Get the radius of the kernel.

Returns:
the radius

setOpacity

public void setOpacity(int opacity)
DOCUMENT ME!

Parameters:
opacity - DOCUMENT ME!

getOpacity

public int getOpacity()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setShadowColor

public void setShadowColor(int shadowColor)
DOCUMENT ME!

Parameters:
shadowColor - DOCUMENT ME!

getShadowColor

public int getShadowColor()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setBackgroundColor

public void setBackgroundColor(int backgroundColor)
DOCUMENT ME!

Parameters:
backgroundColor - DOCUMENT ME!

getBackgroundColor

public int getBackgroundColor()
DOCUMENT ME!

Returns:
DOCUMENT ME!

transformSpace

protected void transformSpace(java.awt.Rectangle r)
DOCUMENT ME!

Overrides:
transformSpace in class WholeImageFilter
Parameters:
r - 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!

toString

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

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