public class AFPTextHandler extends FOPTextHandlerAdapter
Modifier and Type | Field and Description |
---|---|
protected Font |
overrideFont
Overriding FontState
|
Constructor and Description |
---|
AFPTextHandler(FontInfo fontInfo,
AFPResourceManager resourceManager)
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.
|
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, AFPResourceManager resourceManager)
fontInfo
- the AFPGraphics2D instanceresourceManager
- the AFPResourceManager instancepublic FontInfo getFontInfo()
public void drawString(java.awt.Graphics2D g, java.lang.String str, float x, float y)
drawString
in interface org.apache.xmlgraphics.java2d.TextHandler
drawString
in class org.apache.xmlgraphics.java2d.StrokingTextHandler
public void setOverrideFont(Font overrideFont)
overrideFont
- Overriding Font to setCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.