| java.lang.Object org.apache.batik.gvt.renderer.BasicTextPainter
All known Subclasses: org.apache.batik.gvt.renderer.StrokingTextPainter, org.apache.batik.gvt.renderer.ConcreteTextPainter,
BasicTextPainter | abstract public class BasicTextPainter implements TextPainter(Code) | | Basic implementation of TextPainter which
renders the attributed character iterator of a TextNode.
Suitable for use with "standard" java.awt.font.TextAttributes only.
See Also: java.awt.font.TextAttribute author: Bill Haneman author: Vincent Hardy version: $Id: BasicTextPainter.java 475685 2006-11-16 11:16:05Z cam $ |
Inner Class :protected static class BasicMark implements Mark | |
Method Summary | |
public Rectangle2D | getGeometryBounds(TextNode node) Get a Rectangle2D in userspace coords which encloses the textnode
glyphs just including the geometry info. | protected TextLayoutFactory | getTextLayoutFactory() | abstract protected Mark | hitTest(double x, double y, TextNode node) Returns the mark for the specified parameters. | public Mark | selectAt(double x, double y, TextNode node) Given an X, y coordinate, AttributedCharacterIterator,
return a Mark which encapsulates a "selection start" action. | public 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. |
getGeometryBounds | public Rectangle2D getGeometryBounds(TextNode node)(Code) | | Get a Rectangle2D in userspace coords which encloses the textnode
glyphs just including the geometry info.
Parameters: node - the TextNode to measure |
hitTest | abstract protected Mark hitTest(double x, double y, TextNode node)(Code) | | Returns the mark for the specified parameters.
|
selectAt | public Mark selectAt(double x, double y, TextNode node)(Code) | | Given an X, y coordinate, AttributedCharacterIterator,
return a Mark which encapsulates a "selection start" action.
The standard order of method calls for selection is:
selectAt(); [selectTo(),...], selectTo(); getSelection().
|
selectTo | public Mark selectTo(double x, double y, Mark beginMark)(Code) | | Given an X, y coordinate, starting Mark, AttributedCharacterIterator,
return a Mark which encapsulates a "selection continued" action.
The standard order of method calls for selection is:
selectAt(); [selectTo(),...], selectTo(); getSelection().
|
|
|