org.apache.batik.ext.awt.image.renderable

Class GaussianBlurRable8Bit

public class GaussianBlurRable8Bit extends AbstractColorInterpolationRable implements GaussianBlurRable

GaussianBlurRable implementation
Field Summary
static doubleeps
Constructor Summary
GaussianBlurRable8Bit(Filter src, double stdevX, double stdevY)
Method Summary
RenderedImagecreateRendering(RenderContext rc)
static booleaneps_abs_eq(double f1, double f2)
static booleaneps_eq(double f1, double f2)
Rectangle2DgetBounds2D()
Grow the source's bounds
ShapegetDependencyRegion(int srcIndex, Rectangle2D outputRgn)
Returns the region of input data is is required to generate outputRgn.
ShapegetDirtyRegion(int srcIndex, Rectangle2D inputRgn)
This calculates the region of output that is affected by a change in a region of input.
FiltergetSource()
Returns the source of the blur operation
doublegetStdDeviationX()
Returns the deviation along the x-axis, in user space.
doublegetStdDeviationY()
Returns the deviation along the y-axis, in user space.
voidsetSource(Filter src)
Sets the source of the blur operation
voidsetStdDeviationX(double stdDeviationX)
The deviation along the x axis, in user space.
voidsetStdDeviationY(double stdDeviationY)
The deviation along the y axis, in user space.

Field Detail

eps

public static final double eps

Constructor Detail

GaussianBlurRable8Bit

public GaussianBlurRable8Bit(Filter src, double stdevX, double stdevY)

Method Detail

createRendering

public RenderedImage createRendering(RenderContext rc)

eps_abs_eq

public static boolean eps_abs_eq(double f1, double f2)

eps_eq

public static boolean eps_eq(double f1, double f2)

getBounds2D

public Rectangle2D getBounds2D()
Grow the source's bounds

getDependencyRegion

public Shape getDependencyRegion(int srcIndex, Rectangle2D outputRgn)
Returns the region of input data is is required to generate outputRgn.

Parameters: srcIndex The source to do the dependency calculation for. outputRgn The region of output you are interested in generating dependencies for. The is given in the user coordiate system for this node.

Returns: The region of input required. This is in the user coordinate system for the source indicated by srcIndex.

getDirtyRegion

public Shape getDirtyRegion(int srcIndex, Rectangle2D inputRgn)
This calculates the region of output that is affected by a change in a region of input.

Parameters: srcIndex The input that inputRgn reflects changes in. inputRgn the region of input that has changed, used to calculate the returned shape. This is given in the user coordinate system of the source indicated by srcIndex.

Returns: The region of output that would be invalid given a change to inputRgn of the source selected by srcIndex. this is in the user coordinate system of this node.

getSource

public Filter getSource()
Returns the source of the blur operation

getStdDeviationX

public double getStdDeviationX()
Returns the deviation along the x-axis, in user space.

getStdDeviationY

public double getStdDeviationY()
Returns the deviation along the y-axis, in user space.

setSource

public void setSource(Filter src)
Sets the source of the blur operation

setStdDeviationX

public void setStdDeviationX(double stdDeviationX)
The deviation along the x axis, in user space.

Parameters: stdDeviationX should be greater than zero.

setStdDeviationY

public void setStdDeviationY(double stdDeviationY)
The deviation along the y axis, in user space.

Parameters: stdDeviationY should be greater than zero

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.