Class SVGTextPathElementBridge

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

public class SVGTextPathElementBridge extends AnimatableGenericSVGBridge implements ErrorConstants
Bridge class for the <textPath> element.
  • Constructor Details

    • SVGTextPathElementBridge

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

    • getLocalName

      public String getLocalName()
      Returns 'textPath'.
      Specified by:
      getLocalName in interface Bridge
    • handleElement

      public void handleElement(BridgeContext ctx, Element e)
      Description copied from class: AnimatableGenericSVGBridge
      Invoked to handle an Element for a given BridgeContext. For example, see the SVGTitleElementBridge.
      Specified by:
      handleElement in interface GenericBridge
      Overrides:
      handleElement in class AnimatableGenericSVGBridge
      Parameters:
      ctx - the bridge context to use
      e - the element being handled
    • createTextPath

      public TextPath createTextPath(BridgeContext ctx, Element textPathElement)
      Creates a TextPath object that represents the path along which the text is to be rendered.
      Parameters:
      ctx - The bridge context.
      textPathElement - The <textPath> element.
      Returns:
      The new TextPath.