java.lang.Object
javafx.scene.text.HitInfo
public class HitInfo extends Object
Represents the hit information in a Text node.
- Since:
- 9
- 
Method SummaryModifier and Type Method Description intgetCharIndex()The index of the character which this hit information refers to.intgetInsertionIndex()Returns the index of the insertion position.booleanisLeading()Indicates whether the hit is on the leading edge of the character.
- 
Method Details- 
getCharIndexpublic int getCharIndex()The index of the character which this hit information refers to.- Returns:
- the index of the character which this hit information refers to
 
- 
isLeadingpublic boolean isLeading()Indicates whether the hit is on the leading edge of the character. If it is false, it represents the trailing edge.- Returns:
- if true the hit is on the leading edge of the character, otherwise the trailing edge
 
- 
getInsertionIndexpublic int getInsertionIndex()Returns the index of the insertion position.- Returns:
- the index of the insertion position
 
 
-