|
xmlgraphics-commons 1.2
|
PREV CLASS
NEXT CLASS |
FRAMES
NO FRAMES |
SUMMARY: INNER | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD |
org.apache.xmlgraphics.java2d.ps
Interface TextHandler
- All Known Implementing Classes:
- StrokingTextHandler
- public interface TextHandler
Interface which the PSGraphics2D class delegates text painting to.
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.
|
drawString
public void drawString(java.lang.String text,
float x,
float y)
throws java.io.IOException
- Draw some text.
- Parameters:
text
- the text to paintx
- the x-coordinate where the String
should be renderedy
- the y-coordinate where the String
should be rendered- Throws:
java.io.IOException
- In case of an I/O error
writeSetup
public void writeSetup()
throws java.io.IOException
- Is called by when the "Setup" or "Prolog" of the PostScript document is generated.
Subclasses can do font registration, for example.
- Throws:
java.io.IOException
- In case of an I/O error
writePageSetup
public void writePageSetup()
throws java.io.IOException
- Is called by when a "PageSetup" section of the PostScript document is generated.
Subclasses can do some font initialization if necessary.
- Throws:
java.io.IOException
- In case of an I/O error
|
xmlgraphics-commons 1.2
|
PREV CLASS
NEXT CLASS |
FRAMES
NO FRAMES |
SUMMARY: INNER | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.