|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.gvt.renderer.BasicTextPainter
public abstract class BasicTextPainter
Basic implementation of TextPainter which renders the attributed character iterator of a TextNode. Suitable for use with "standard" java.awt.font.TextAttributes only.
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. |
Constructor Summary | |
---|---|
BasicTextPainter()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.batik.gvt.TextPainter |
---|
getBounds2D, getHighlightShape, getMark, getOutline, getSelected, paint, selectFirst, selectLast |
Field Detail |
---|
protected FontRenderContext fontRenderContext
protected FontRenderContext aaOffFontRenderContext
Constructor Detail |
---|
public BasicTextPainter()
Method Detail |
---|
protected TextLayoutFactory getTextLayoutFactory()
public Mark selectAt(double x, double y, TextNode node)
selectAt
in interface TextPainter
public Mark selectTo(double x, double y, Mark beginMark)
selectTo
in interface TextPainter
public Rectangle2D getGeometryBounds(TextNode node)
getGeometryBounds
in interface TextPainter
node
- the TextNode to measureprotected abstract Mark hitTest(double x, double y, TextNode node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |