xmlgraphics-commons 1.4

org.apache.xmlgraphics.java2d
Interface TextHandler

All Known Subinterfaces:
PSTextHandler
All Known Implementing Classes:
StrokingTextHandler

public interface TextHandler

Interface which the Graphics2D class delegates text painting to.


Method Summary
 void drawString(java.awt.Graphics2D g2d, java.lang.String text, float x, float y)
          Draw some text.
 void drawString(java.lang.String text, float x, float y)
          Deprecated. Use #drawString(Graphics2D, String, float, float) instead.
 

Method Detail

drawString

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

Parameters:
g2d - the graphics 2D implementation
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

drawString

void drawString(java.lang.String text,
                float x,
                float y)
                throws java.io.IOException
Deprecated. Use #drawString(Graphics2D, String, float, float) instead.

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

xmlgraphics-commons 1.4

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