Class SVGFeMorphologyElementBridge

All Implemented Interfaces:
SVGAnimationTargetContext, Bridge, BridgeUpdateHandler, ErrorConstants, FilterPrimitiveBridge, GenericBridge, XMLConstants, SVGContext, CSSConstants, SVGConstants

public class SVGFeMorphologyElementBridge extends AbstractSVGFilterPrimitiveElementBridge
Bridge class for the <feMorphology> element.
  • Constructor Details

    • SVGFeMorphologyElementBridge

      public SVGFeMorphologyElementBridge()
      Constructs a new bridge for the <feMorphology> element.
  • Method Details

    • getLocalName

      public String getLocalName()
      Returns 'feMorphology'.
    • createFilter

      public Filter createFilter(BridgeContext ctx, Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Rectangle2D filterRegion, Map filterMap)
      Creates a Filter primitive according to the specified parameters.
      Parameters:
      ctx - the bridge context to use
      filterElement - the element that defines a filter
      filteredElement - the element that references the filter
      filteredNode - the graphics node to filter
      inputFilter - the Filter that represents the current filter input if the filter chain.
      filterRegion - the filter area defined for the filter chain the new node will be part of.
      filterMap - a map where the mediator can map a name to the Filter it creates. Other FilterBridges can then access a filter node from the filterMap if they know its name.
    • convertRadius

      protected static float[] convertRadius(Element filterElement, BridgeContext ctx)
      Returns the radius (or radii) of the specified feMorphology filter primitive.
      Parameters:
      filterElement - the feMorphology filter primitive
      ctx - the BridgeContext to use for error information
    • convertOperator

      protected static boolean convertOperator(Element filterElement, BridgeContext ctx)
      Returns the 'operator' of the specified feMorphology filter primitive.
      Parameters:
      filterElement - the feMorphology filter primitive
      ctx - the BridgeContext to use for error information