Class SVGAltGlyphElementBridge

    • Field Detail

      • PAINT_INFO

        public static final java.text.AttributedCharacterIterator.Attribute PAINT_INFO
    • Constructor Detail

      • SVGAltGlyphElementBridge

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

      • getLocalName

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

        public Glyph[] createAltGlyphArray​(BridgeContext ctx,
                                           org.w3c.dom.Element altGlyphElement,
                                           float fontSize,
                                           java.text.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.
      • getGlyph

        private Glyph getGlyph​(BridgeContext ctx,
                               java.lang.String glyphUri,
                               org.w3c.dom.Element altGlyphElement,
                               float fontSize,
                               java.text.AttributedCharacterIterator aci)
        Returns a Glyph object that represents the glyph at the specified URI scaled to the required font size.
        Parameters:
        ctx - The bridge context.
        glyphUri - The URI of the glyph to retreive.
        altGlyphElement - The element that references the glyph.
        fontSize - Indicates the required size of the glyph.
        Returns:
        The Glyph or null if the glyph URI is not available.