org.apache.fop.svg

Class PDFTextElementBridge


public class PDFTextElementBridge
extends SVGTextElementBridge

Bridge class for the <text> element. This bridge will use the direct text painter if the text for the element is simple.
Author:
Keiron Liddle

Constructor Summary

PDFTextElementBridge(FontInfo fi)
Constructs a new bridge for the <text> element.

Method Summary

GraphicsNode
createGraphicsNode(BridgeContext ctx, Element e)
Create a text element bridge.
TextPainter
getTextPainter()
Returns the TextPainter instance used by this bridge.

Constructor Details

PDFTextElementBridge

public PDFTextElementBridge(FontInfo fi)
Constructs a new bridge for the <text> element.
Parameters:
fi - the font information

Method Details

createGraphicsNode

public GraphicsNode createGraphicsNode(BridgeContext ctx,
                                       Element e)
Create a text element bridge. This set the text painter on the node if the text is simple.
Parameters:
ctx - the bridge context
e - the svg element
Returns:
the text graphics node created by the super class

getTextPainter

public TextPainter getTextPainter()
Returns the TextPainter instance used by this bridge.
Returns:
the text painter

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.