|
||||||||||
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.geom.Rectangle2D |
getBounds(TextNode node,
java.awt.font.FontRenderContext frc)
|
java.awt.geom.Rectangle2D |
getDecoratedBounds(TextNode node,
java.awt.font.FontRenderContext frc)
|
java.awt.Shape |
getDecoratedShape(TextNode node,
java.awt.font.FontRenderContext frc)
|
java.awt.Shape |
getHighlightShape(Mark beginMark,
Mark endMark)
|
java.awt.geom.Rectangle2D |
getPaintedBounds(TextNode node,
java.awt.font.FontRenderContext frc)
|
int[] |
getSelected(java.text.AttributedCharacterIterator aci,
Mark start,
Mark finish)
|
java.awt.Shape |
getShape(TextNode node,
java.awt.font.FontRenderContext frc)
|
void |
paint(TextNode node,
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 node,
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 node,
GraphicsNodeRenderContext context)
Initiates a text selection on a particular AttributedCharacterIterator, using the text/font metrics employed by this TextPainter instance. |
Mark |
selectFirst(double x,
double y,
java.text.AttributedCharacterIterator aci,
TextNode node,
GraphicsNodeRenderContext context)
Selects the first glyph in the text node. |
Mark |
selectLast(double x,
double y,
java.text.AttributedCharacterIterator aci,
TextNode node,
GraphicsNodeRenderContext context)
Selects the last glyph in the text node. |
Mark |
selectTo(double x,
double y,
Mark beginMark,
java.text.AttributedCharacterIterator aci,
TextNode node,
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(TextNode node, java.awt.Graphics2D g2d, GraphicsNodeRenderContext context)
node
- the TextNode to paintg2d
- the Graphics2D to usecontext
- the rendering context.public Mark selectAt(double x, double y, java.text.AttributedCharacterIterator aci, TextNode node, 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 textcontext
- the GraphicsNodeRenderContext to use when doing text layout.public Mark selectTo(double x, double y, Mark beginMark, java.text.AttributedCharacterIterator aci, TextNode node, 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 textcontext
- the GraphicsNodeRenderContext to use when doing text layout.public Mark selectAll(double x, double y, java.text.AttributedCharacterIterator aci, TextNode node, 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 textcontext
- the GraphicsNodeRenderContext to use when doing text layout.public Mark selectFirst(double x, double y, java.text.AttributedCharacterIterator aci, TextNode node, GraphicsNodeRenderContext context)
public Mark selectLast(double x, double y, java.text.AttributedCharacterIterator aci, TextNode node, GraphicsNodeRenderContext context)
public int[] getSelected(java.text.AttributedCharacterIterator aci, Mark start, Mark finish)
public java.awt.Shape getHighlightShape(Mark beginMark, Mark endMark)
public java.awt.Shape getShape(TextNode node, java.awt.font.FontRenderContext frc)
public java.awt.Shape getDecoratedShape(TextNode node, java.awt.font.FontRenderContext frc)
public java.awt.geom.Rectangle2D getBounds(TextNode node, java.awt.font.FontRenderContext frc)
public java.awt.geom.Rectangle2D getDecoratedBounds(TextNode node, java.awt.font.FontRenderContext frc)
public java.awt.geom.Rectangle2D getPaintedBounds(TextNode node, java.awt.font.FontRenderContext frc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |