xmlgraphics-commons 1.2

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.
 

Method Detail

drawString

void drawString(java.lang.String text,
                float x,
                float y)
                throws java.io.IOException
Draw some text.

Parameters:
text - the text to paint
x - the x-coordinate where the String should be rendered
y - the y-coordinate where the String should be rendered
Throws:
java.io.IOException - In case of an I/O error

writeSetup

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

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

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.