Package org.apache.xmlgraphics.java2d
Class StrokingTextHandler
java.lang.Object
org.apache.xmlgraphics.java2d.StrokingTextHandler
- All Implemented Interfaces:
TextHandler
Default TextHandler implementation which paints text using graphics primitives (shapes).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawString
(Graphics2D g2d, String text, float x, float y) Draw some text.
-
Constructor Details
-
StrokingTextHandler
public StrokingTextHandler()Default constructor.
-
-
Method Details
-
drawString
Draw some text.- Specified by:
drawString
in interfaceTextHandler
- Parameters:
g2d
- the graphics 2D implementationtext
- the text to paintx
- the x-coordinate where theString
should be renderedy
- the y-coordinate where theString
should be rendered- Throws:
IOException
- In case of an I/O error
-