|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Renders the attributed character iterator of a TextNode.
Method Summary | |
java.awt.Shape |
getHighlightShape(Mark beginMark,
Mark endMark)
|
int[] |
getSelected(java.text.AttributedCharacterIterator aci,
Mark start,
Mark finish)
|
void |
paint(java.text.AttributedCharacterIterator aci,
java.awt.geom.Point2D location,
TextNode.Anchor anchor,
java.awt.Graphics2D g2d,
GraphicsNodeRenderContext context)
Paints the specified attributed character iterator using the specified Graphics2D and context and font context. |
Mark |
selectAll(double x,
double y,
java.text.AttributedCharacterIterator aci,
TextNode.Anchor anchor,
GraphicsNodeRenderContext context)
Select all of the text represented by an AttributedCharacterIterator, using the text/font metrics employed by this TextPainter instance. |
Mark |
selectAt(double x,
double y,
java.text.AttributedCharacterIterator aci,
TextNode.Anchor anchor,
GraphicsNodeRenderContext context)
Initiates a text selection on a particular AttributedCharacterIterator, using the text/font metrics employed by this TextPainter instance. |
Mark |
selectTo(double x,
double y,
Mark beginMark,
java.text.AttributedCharacterIterator aci,
TextNode.Anchor anchor,
GraphicsNodeRenderContext context)
Continues a text selection on a particular AttributedCharacterIterator, using the text/font metrics employed by this TextPainter instance. |
Method Detail |
public void paint(java.text.AttributedCharacterIterator aci, java.awt.geom.Point2D location, TextNode.Anchor anchor, java.awt.Graphics2D g2d, GraphicsNodeRenderContext context)
shape
- the shape to paintg2d
- the Graphics2D to usecontext
- rendering context.public Mark selectAt(double x, double y, java.text.AttributedCharacterIterator aci, TextNode.Anchor anchor, GraphicsNodeRenderContext context)
x
- the x coordinate, in the text layout's coordinate system,
of the selection event.y
- the y coordinate, in the text layout's coordinate system,
of the selection event.aci
- the AttributedCharacterIterator describing the textanchor
- the text anchor (alignment) type of this textcontext
- the GraphicsNodeRenderContext to use when doing text layout.public Mark selectTo(double x, double y, Mark beginMark, java.text.AttributedCharacterIterator aci, TextNode.Anchor anchor, GraphicsNodeRenderContext context)
x
- the x coordinate, in the text layout's coordinate system,
of the selection event.y
- the y coordinate, in the text layout's coordinate system,
of the selection event.aci
- the AttributedCharacterIterator describing the textanchor
- the text anchor (alignment) type of this textcontext
- the GraphicsNodeRenderContext to use when doing text layout.public Mark selectAll(double x, double y, java.text.AttributedCharacterIterator aci, TextNode.Anchor anchor, GraphicsNodeRenderContext context)
x
- the x coordinate, in the text layout's coordinate system,
of the selection event.y
- the y coordinate, in the text layout's coordinate system,
of the selection event.aci
- the AttributedCharacterIterator describing the textanchor
- the text anchor (alignment) type of this textcontext
- the GraphicsNodeRenderContext to use when doing text layout.public int[] getSelected(java.text.AttributedCharacterIterator aci, Mark start, Mark finish)
public java.awt.Shape getHighlightShape(Mark beginMark, Mark endMark)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |