- java.lang.Object
- 
- javafx.scene.text.HitInfo
 
- 
 
 public class HitInfo extends Object Represents the hit information in a Text node.- Since:
- 9
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier 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.StringtoString()Returns a string representation of the object.
 
- 
- 
- 
Method Detail- 
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
 
 - 
toStringpublic String toString() Description copied from class:ObjectReturns a string representation of the object. In general, thetoStringmethod returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.The toStringmethod for classObjectreturns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:getClass().getName() + '@' + Integer.toHexString(hashCode()) 
 
- 
 
-