| org.apache.xmlgraphics.java2d.ps.TextHandler
All known Subclasses: org.apache.xmlgraphics.java2d.ps.StrokingTextHandler,
TextHandler | public interface TextHandler (Code) | | Interface which the PSGraphics2D class delegates text painting to.
|
Method Summary | |
public void | drawString(String text, float x, float y) Draw some text. | public void | writePageSetup() Is called by when a "PageSetup" section of the PostScript document is generated. | public void | writeSetup() Is called by when the "Setup" or "Prolog" of the PostScript document is generated. |
drawString | public void drawString(String text, float x, float y) throws IOException(Code) | | Draw some text.
Parameters: text - the text to paint Parameters: x - the x-coordinate where the String should be rendered Parameters: y - the y-coordinate where the String should be rendered throws: IOException - In case of an I/O error |
writePageSetup | public void writePageSetup() throws IOException(Code) | | Is called by when a "PageSetup" section of the PostScript document is generated.
Subclasses can do some font initialization if necessary.
throws: IOException - In case of an I/O error |
writeSetup | public void writeSetup() throws IOException(Code) | | Is called by when the "Setup" or "Prolog" of the PostScript document is generated.
Subclasses can do font registration, for example.
throws: IOException - In case of an I/O error |
|
|