|
xmlgraphics-commons 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.java2d.ps.StrokingTextHandler
Default TextHandler implementation which paints text using graphics primitives (shapes).
Constructor Summary | |
StrokingTextHandler(PSGraphics2D g2d)
|
Method Summary | |
void |
drawString(java.lang.String text,
float x,
float y)
Draw some text. |
void |
writePageSetup()
Is called by when a "PageSetup" section of the PostScript document is generated. |
void |
writeSetup()
Is called by when the "Setup" or "Prolog" of the PostScript document is generated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StrokingTextHandler(PSGraphics2D g2d)
Method Detail |
public void writeSetup() throws java.io.IOException
TextHandler
writeSetup
in interface TextHandler
java.io.IOException
- In case of an I/O errorTextHandler.writeSetup()
public void writePageSetup() throws java.io.IOException
TextHandler
writePageSetup
in interface TextHandler
java.io.IOException
- In case of an I/O errorTextHandler.writePageSetup()
public void drawString(java.lang.String text, float x, float y)
TextHandler
drawString
in interface TextHandler
text
- the text to paintx
- the x-coordinate where the String
should be renderedy
- the y-coordinate where the String
should be renderedTextHandler.drawString(java.lang.String, float, float)
|
xmlgraphics-commons 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |