org.apache.batik.bridge

Class SVGFontElementBridge

public class SVGFontElementBridge extends AbstractSVGBridge

Bridge class for the <font> element.
Constructor Summary
SVGFontElementBridge()
Constructs a new bridge for the <font> element.
Method Summary
SVGGVTFontcreateFont(BridgeContext ctx, Element fontElement, Element textElement, float size, GVTFontFace fontFace)
Constructs a new SVGGVTFont that represents the specified <font> element at the requested size.
StringgetLocalName()
Returns 'font'.

Constructor Detail

SVGFontElementBridge

public SVGFontElementBridge()
Constructs a new bridge for the <font> element.

Method Detail

createFont

public SVGGVTFont createFont(BridgeContext ctx, Element fontElement, Element textElement, float size, GVTFontFace fontFace)
Constructs a new SVGGVTFont that represents the specified <font> element at the requested size.

Parameters: ctx The current bridge context. fontElement The font element to base the SVGGVTFont construction on. textElement The text element that will use the new font. size The size of the new font. fontFace The font face object that contains the font attributes.

Returns: The new SVGGVTFont.

getLocalName

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