xmlgraphics-commons 1.3.1

org.apache.xmlgraphics.java2d
Class StrokingTextHandler

java.lang.Object
  extended by 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
StrokingTextHandler(AbstractGraphics2D g2d)
          Main constructor
 
Method Summary
 void drawString(java.lang.String text, float x, float y)
          Draw some text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrokingTextHandler

public StrokingTextHandler(AbstractGraphics2D g2d)
Main constructor

Parameters:
g2d - a graphics 2d implementation
Method Detail

drawString

public void drawString(java.lang.String text,
                       float x,
                       float y)
Draw some text.

Specified by:
drawString in interface TextHandler
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

xmlgraphics-commons 1.3.1

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