public abstract class BasicTextPainter extends Object implements TextPainter
TextNode.
Suitable for use with "standard" java.awt.font.TextAttributes only.TextAttribute| Modifier and Type | Class and Description |
|---|---|
protected static class |
BasicTextPainter.BasicMark
This TextPainter's implementation of the Mark interface.
|
| Modifier and Type | Field and Description |
|---|---|
protected FontRenderContext |
aaOffFontRenderContext |
protected FontRenderContext |
fontRenderContext
The font render context to use.
|
| Constructor and Description |
|---|
BasicTextPainter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBounds2D, getHighlightShape, getMark, getOutline, getSelected, paint, selectFirst, selectLastprotected FontRenderContext fontRenderContext
protected FontRenderContext aaOffFontRenderContext
protected TextLayoutFactory getTextLayoutFactory()
public Mark selectAt(double x, double y, TextNode node)
selectAt in interface TextPainterpublic Mark selectTo(double x, double y, Mark beginMark)
selectTo in interface TextPainterpublic Rectangle2D getGeometryBounds(TextNode node)
getGeometryBounds in interface TextPainternode - the TextNode to measureCopyright © 2000–2020 Apache Software Foundation. All rights reserved.