public class AFPTextHandler extends java.lang.Object implements FOPTextHandler
Modifier and Type | Field and Description |
---|---|
protected Font |
overrideFont
Overriding FontState
|
Constructor and Description |
---|
AFPTextHandler(FontInfo fontInfo)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
drawString(java.awt.Graphics2D g,
java.lang.String str,
float x,
float y)
Add a text string to the current data object of the AFP datastream.
|
void |
drawString(java.lang.String text,
float x,
float y) |
FontInfo |
getFontInfo()
Return the font information associated with this object
|
void |
setOverrideFont(Font overrideFont)
Sets the overriding font.
|
protected Font overrideFont
public AFPTextHandler(FontInfo fontInfo)
fontInfo
- the AFPGraphics2D instancepublic FontInfo getFontInfo()
getFontInfo
in interface FOPTextHandler
public void drawString(java.lang.String text, float x, float y) throws java.io.IOException
drawString
in interface org.apache.xmlgraphics.java2d.TextHandler
java.io.IOException
public void drawString(java.awt.Graphics2D g, java.lang.String str, float x, float y) throws java.io.IOException
drawString
in interface org.apache.xmlgraphics.java2d.TextHandler
java.io.IOException
public void setOverrideFont(Font overrideFont)
setOverrideFont
in interface FOPTextHandler
overrideFont
- Overriding Font to setCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.