|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.ps.NativeTextHandler
public class NativeTextHandler
Specialized TextHandler implementation that the PSGraphics2D class delegates to to paint text using PostScript text operations.
Field Summary | |
---|---|
protected java.lang.String |
currentFontName
the current (internal) font name |
protected int |
currentFontSize
the current font size in millipoints |
protected Font |
font
Currently valid Font |
protected FontInfo |
fontInfo
FontInfo containing all available fonts |
protected Font |
overrideFont
Overriding FontState |
Constructor Summary | |
---|---|
NativeTextHandler(org.apache.xmlgraphics.java2d.ps.PSGraphics2D g2d,
FontInfo fontInfo)
Main constructor. |
Method Summary | |
---|---|
void |
drawString(java.awt.Graphics2D g,
java.lang.String s,
float x,
float y)
Draw a string to the PostScript document. |
FontInfo |
getFontInfo()
Return the font information associated with this object |
void |
setOverrideFont(Font override)
Sets the overriding font. |
void |
writePageSetup()
|
void |
writeSetup()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FontInfo fontInfo
protected Font font
protected Font overrideFont
protected java.lang.String currentFontName
protected int currentFontSize
Constructor Detail |
---|
public NativeTextHandler(org.apache.xmlgraphics.java2d.ps.PSGraphics2D g2d, FontInfo fontInfo)
g2d
- the PSGraphics2D instance this instances is used byfontInfo
- the FontInfo object with all available fontsMethod Detail |
---|
public FontInfo getFontInfo()
public void writeSetup() throws java.io.IOException
writeSetup
in interface org.apache.xmlgraphics.java2d.ps.PSTextHandler
java.io.IOException
public void writePageSetup() throws java.io.IOException
writePageSetup
in interface org.apache.xmlgraphics.java2d.ps.PSTextHandler
java.io.IOException
public void drawString(java.awt.Graphics2D g, java.lang.String s, float x, float y) throws java.io.IOException
drawString
in interface org.apache.xmlgraphics.java2d.TextHandler
java.io.IOException
public void setOverrideFont(Font override)
override
- Overriding Font to set
|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |