Package org.apache.xmlgraphics.java2d
Class StrokingTextHandler
- java.lang.Object
-
- org.apache.xmlgraphics.java2d.StrokingTextHandler
-
- All Implemented Interfaces:
TextHandler
public class StrokingTextHandler extends java.lang.Object implements TextHandler
Default TextHandler implementation which paints text using graphics primitives (shapes).
-
-
Constructor Summary
Constructors Constructor Description StrokingTextHandler()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddrawString(java.awt.Graphics2D g2d, java.lang.String text, float x, float y)Draw some text.
-
-
-
Method Detail
-
drawString
public void drawString(java.awt.Graphics2D g2d, java.lang.String text, float x, float y) throws java.io.IOExceptionDraw some text.- Specified by:
drawStringin interfaceTextHandler- Parameters:
g2d- the graphics 2D implementationtext- the text to paintx- the x-coordinate where theStringshould be renderedy- the y-coordinate where theStringshould be rendered- Throws:
java.io.IOException- In case of an I/O error
-
-