org.apache.batik.gvt.renderer
public abstract class BasicTextPainter extends Object implements TextPainter
See Also: java.awt.font.TextAttribute
Nested Class Summary | |
---|---|
protected static class | BasicTextPainter.BasicMark
This TextPainter's implementation of the Mark interface. |
Field Summary | |
---|---|
protected FontRenderContext | aaOffFontRenderContext |
protected FontRenderContext | fontRenderContext
The font render context to use. |
Method Summary | |
---|---|
Rectangle2D | getGeometryBounds(TextNode node)
Get a Rectangle2D in userspace coords which encloses the textnode
glyphs just including the geometry info. |
protected TextLayoutFactory | getTextLayoutFactory() |
protected abstract Mark | hitTest(double x, double y, TextNode node)
Returns the mark for the specified parameters. |
Mark | selectAt(double x, double y, TextNode node)
Given an X, y coordinate, AttributedCharacterIterator,
return a Mark which encapsulates a "selection start" action.
|
Mark | selectTo(double x, double y, Mark beginMark)
Given an X, y coordinate, starting Mark, AttributedCharacterIterator,
return a Mark which encapsulates a "selection continued" action.
|
Parameters: node the TextNode to measure