Class SVGGlyphElementBridge

java.lang.Object
org.apache.batik.bridge.AbstractSVGBridge
org.apache.batik.bridge.SVGGlyphElementBridge
All Implemented Interfaces:
Bridge, ErrorConstants, XMLConstants, CSSConstants, SVGConstants
Direct Known Subclasses:
SVGMissingGlyphElementBridge

public class SVGGlyphElementBridge extends AbstractSVGBridge implements ErrorConstants
Bridge class for the <glyph> element.
Version:
$Id: SVGGlyphElementBridge.java 1805408 2017-08-18 12:21:52Z ssteiner $
  • Constructor Details

    • SVGGlyphElementBridge

      protected SVGGlyphElementBridge()
      Constructs a new bridge for the <glyph> element.
  • Method Details

    • getLocalName

      public String getLocalName()
      Returns 'glyph'.
      Specified by:
      getLocalName in interface Bridge
    • createGlyph

      public Glyph createGlyph(BridgeContext ctx, Element glyphElement, Element textElement, int glyphCode, float fontSize, GVTFontFace fontFace, TextPaintInfo tpi)
      Constructs a new Glyph that represents the specified <glyph> element at the requested size.
      Parameters:
      ctx - The current bridge context.
      glyphElement - The glyph element to base the glyph construction on.
      textElement - The textElement the glyph will be used for.
      glyphCode - The unique id to give to the new glyph.
      fontSize - The font size used to determine the size of the glyph.
      fontFace - The font face object that contains the font attributes.
      Returns:
      The new Glyph.