Class SVGFeComponentTransferElementBridge.SVGFeFuncElementBridge

All Implemented Interfaces:
SVGAnimationTargetContext, Bridge, BridgeUpdateHandler, GenericBridge, XMLConstants, SVGContext, CSSConstants, SVGConstants
Direct Known Subclasses:
SVGFeComponentTransferElementBridge.SVGFeFuncAElementBridge, SVGFeComponentTransferElementBridge.SVGFeFuncBElementBridge, SVGFeComponentTransferElementBridge.SVGFeFuncGElementBridge, SVGFeComponentTransferElementBridge.SVGFeFuncRElementBridge
Enclosing class:
SVGFeComponentTransferElementBridge

protected abstract static class SVGFeComponentTransferElementBridge.SVGFeFuncElementBridge extends AnimatableGenericSVGBridge
The base bridge class for component transfer function.
  • Constructor Details

    • SVGFeFuncElementBridge

      protected SVGFeFuncElementBridge()
      Constructs a new bridge for component transfer function.
  • Method Details

    • createComponentTransferFunction

      public ComponentTransferFunction createComponentTransferFunction(Element filterElement, Element funcElement)
      Creates a ComponentTransferFunction according to the specified parameters.
      Parameters:
      filterElement - the feComponentTransfer filter primitive element
      funcElement - the feFuncX element
    • convertTableValues

      protected static float[] convertTableValues(Element e, BridgeContext ctx)
      Converts the 'tableValues' attribute of the specified component transfer function element.
      Parameters:
      e - the element that represents a component transfer function
      ctx - the BridgeContext to use for error information
    • convertType

      protected static int convertType(Element e, BridgeContext ctx)
      Converts the type of the specified component transfert function element.
      Parameters:
      e - the element that represents a component transfer function
      ctx - the BridgeContext to use for error information