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

Interface SpecularLightingRable

public interface SpecularLightingRable extends FilterColorInterpolation

This filter follows the specification of the feSpecularLighting filter in the SVG 1.0 specification.
Method Summary
double[]getKernelUnitLength()
Returns the min [dx,dy] distance in user space for evalutation of the sobel gradient.
doublegetKs()
LightgetLight()
Rectangle2DgetLitRegion()
FiltergetSource()
Returns the source to be filtered
doublegetSpecularExponent()
doublegetSurfaceScale()
voidsetKernelUnitLength(double[] kernelUnitLength)
Sets the min [dx,dy] distance in user space for evaluation of the sobel gradient.
voidsetKs(double ks)
Sets the specular constant, or ks
voidsetLight(Light light)
voidsetLitRegion(Rectangle2D litRegion)
Sets the litRegion for this filter
voidsetSource(Filter src)
Sets the source to be filtered
voidsetSpecularExponent(double specularExponent)
Sets the specular exponent
voidsetSurfaceScale(double surfaceScale)
Sets the surface scale

Method Detail

getKernelUnitLength

public double[] getKernelUnitLength()
Returns the min [dx,dy] distance in user space for evalutation of the sobel gradient.

getKs

public double getKs()

Returns: specular constant, or ks.

getLight

public Light getLight()

Returns: Light object used for the diffuse lighting

getLitRegion

public Rectangle2D getLitRegion()

Returns: the litRegion for this filter

getSource

public Filter getSource()
Returns the source to be filtered

getSpecularExponent

public double getSpecularExponent()

Returns: specular exponent, or kd

getSurfaceScale

public double getSurfaceScale()

Returns: surfaceScale

setKernelUnitLength

public void setKernelUnitLength(double[] kernelUnitLength)
Sets the min [dx,dy] distance in user space for evaluation of the sobel gradient. If set to zero or null then device space will be used.

setKs

public void setKs(double ks)
Sets the specular constant, or ks

setLight

public void setLight(Light light)

Parameters: light New Light object

setLitRegion

public void setLitRegion(Rectangle2D litRegion)
Sets the litRegion for this filter

setSource

public void setSource(Filter src)
Sets the source to be filtered

setSpecularExponent

public void setSpecularExponent(double specularExponent)
Sets the specular exponent

setSurfaceScale

public void setSurfaceScale(double surfaceScale)
Sets the surface scale
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.