Class SVGAltGlyphElementBridge

java.lang.Object
org.apache.batik.bridge.AbstractSVGBridge
org.apache.batik.bridge.SVGAltGlyphElementBridge
All Implemented Interfaces:
Bridge, ErrorConstants, XMLConstants, CSSConstants, SVGConstants

public class SVGAltGlyphElementBridge extends AbstractSVGBridge implements ErrorConstants
Bridge class for the <altGlyph> element.
  • Field Details

  • Constructor Details

    • SVGAltGlyphElementBridge

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

    • getLocalName

      public String getLocalName()
      Returns 'altGlyph'.
      Specified by:
      getLocalName in interface Bridge
    • createAltGlyphArray

      public Glyph[] createAltGlyphArray(BridgeContext ctx, Element altGlyphElement, float fontSize, AttributedCharacterIterator aci)
      Constructs an array of Glyphs that represents the specified <altGlyph> element at the requested size.
      Parameters:
      ctx - The current bridge context.
      altGlyphElement - The altGlyph element to base the SVGGVTGlyphVector construction on.
      fontSize - The font size of the Glyphs to create.
      Returns:
      The new SVGGVTGlyphVector or null if any of the glyphs are unavailable.