Class AbstractSVGLightingElementBridge

All Implemented Interfaces:
SVGAnimationTargetContext, Bridge, BridgeUpdateHandler, ErrorConstants, FilterPrimitiveBridge, GenericBridge, XMLConstants, SVGContext, CSSConstants, SVGConstants
Direct Known Subclasses:
SVGFeDiffuseLightingElementBridge, SVGFeSpecularLightingElementBridge

public abstract class AbstractSVGLightingElementBridge extends AbstractSVGFilterPrimitiveElementBridge
Bridge class for the <feDiffuseLighting> element.
Version:
$Id: AbstractSVGLightingElementBridge.java 1805408 2017-08-18 12:21:52Z ssteiner $
  • Constructor Details

    • AbstractSVGLightingElementBridge

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

    • 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
    • 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