org.apache.batik.bridge

Class SVGGlyphElementBridge

public class SVGGlyphElementBridge extends AbstractSVGBridge implements ErrorConstants

Bridge class for the <glyph> element.
Constructor Summary
protected SVGGlyphElementBridge()
Constructs a new bridge for the <glyph> element.
Method Summary
GlyphcreateGlyph(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.
StringgetLocalName()
Returns 'glyph'.

Constructor Detail

SVGGlyphElementBridge

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

Method Detail

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.

getLocalName

public String getLocalName()
Returns 'glyph'.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.