Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| xmlgraphics-commons 2.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.xmlgraphics.java2d
Class StrokingTextHandler

    java.lang.Object
      org.apache.xmlgraphics.java2d.StrokingTextHandler

All Implemented Interfaces:
  TextHandler

    public class StrokingTextHandler

extends Object
implements TextHandler

Default TextHandler implementation which paints text using graphics primitives (shapes).

Constructor Summary
`StrokingTextHandler()` Default constructor.

Method Summary
`void` | `drawString(Graphics2D g2d, 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()

  Default constructor.

Method Detail

### drawString

    public void drawString(Graphics2D g2d,
                           String text,
                           float x,
                           float y)
                    throws IOException

  Draw some text.

  Specified by:
    `drawString` in interface `TextHandler`
  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:
    `IOException` - In case of an I/O error

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| xmlgraphics-commons 2.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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