|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.afp.svg.AFPTextHandler
public class AFPTextHandler
Specialized TextHandler implementation that the AFPGraphics2D class delegates to to paint text using AFP GOCA text operations.
Field Summary | |
---|---|
protected Font |
overrideFont
Overriding FontState |
Constructor Summary | |
---|---|
AFPTextHandler(FontInfo fontInfo)
Main constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Font overrideFont
Constructor Detail |
---|
public AFPTextHandler(FontInfo fontInfo)
fontInfo
- the AFPGraphics2D instanceMethod Detail |
---|
public 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 set
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |