org.apache.batik.bridge

Class AbstractSVGLightingElementBridge

public abstract class AbstractSVGLightingElementBridge extends AbstractSVGFilterPrimitiveElementBridge

Bridge class for the <feDiffuseLighting> element.
Nested Class Summary
protected abstract static classAbstractSVGLightingElementBridge.AbstractSVGLightElementBridge
The base bridge class for light element.
static classAbstractSVGLightingElementBridge.SVGFeDistantLightElementBridge
Bridge class for the <feDistantLight> element.
static classAbstractSVGLightingElementBridge.SVGFePointLightElementBridge
Bridge class for the <fePointLight> element.
static classAbstractSVGLightingElementBridge.SVGFeSpotLightElementBridge
Bridge class for the <feSpotLight> element.
Constructor Summary
protected AbstractSVGLightingElementBridge()
Constructs a new bridge for the lighting filter primitives.
Method Summary
protected static double[]convertKernelUnitLength(Element filterElement, BridgeContext ctx)
Convert the 'kernelUnitLength' attribute of the specified feDiffuseLighting or feSpecularLighting filter primitive element.
protected static LightextractLight(Element filterElement, BridgeContext ctx)
Returns the light from the specified lighting filter primitive element or null if any

Constructor Detail

AbstractSVGLightingElementBridge

protected AbstractSVGLightingElementBridge()
Constructs a new bridge for the lighting filter primitives.

Method Detail

convertKernelUnitLength

protected static double[] convertKernelUnitLength(Element filterElement, BridgeContext ctx)
Convert the 'kernelUnitLength' attribute of the specified feDiffuseLighting or feSpecularLighting filter primitive element.

Parameters: filterElement the filter primitive element ctx the BridgeContext to use for error information

extractLight

protected static Light extractLight(Element filterElement, BridgeContext ctx)
Returns the light from the specified lighting filter primitive element or null if any

Parameters: filterElement the lighting filter primitive element ctx the bridge context

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