org.apache.batik.gvt.text
public class TextHit extends Object
Constructor Summary | |
---|---|
TextHit(int charIndex, boolean leadingEdge)
Constructs a TextHit with the specified values.
|
Method Summary | |
---|---|
int | getCharIndex()
Returns the index of the character that has been hit.
|
boolean | isLeadingEdge()
Returns whether on not the character has been hit on its leading edge.
|
Parameters: charIndex The index of the character that has been hit. In the case of bidirectional text this will be the logical character index not the visual index. The index is relative to whole text within the selected TextNode. leadingEdge Indicates which side of the character has been hit.
Returns: The character index.
Returns: Whether on not the character has been hit on its leading edge.