| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | HitInfo(int
the character index. charIndex, int insertionIndex, boolean whether the hit is on the leading edge of the character. If it is false, it represents the trailing edge. leading)Create a HitInfo object representing a text index and forward bias. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the index of the character which this hit information refers toThe index of the character which this hit information refers to. |
| public int | Returns: the index of the insertion positionReturns the index of the insertion position. |
| public boolean | Returns: if true the hit is on the leading edge of the character, otherwise the trailing edgeIndicates whether the hit is on the leading edge of the character. |
| public String |
| charIndex | back to summary |
|---|---|
| private final int charIndex | |
| insertionIndex | back to summary |
|---|---|
| private final int insertionIndex | |
| leading | back to summary |
|---|---|
| private final boolean leading | |
| HitInfo | back to summary |
|---|---|
| pack-priv HitInfo(int charIndex, int insertionIndex, boolean leading) Create a HitInfo object representing a text index and forward bias.
| |
| getCharIndex | back to summary |
|---|---|
| public int getCharIndex() The index of the character which this hit information refers to.
| |
| getInsertionIndex | back to summary |
|---|---|
| public int getInsertionIndex() Returns the index of the insertion position.
| |
| isLeading | back to summary |
|---|---|
| public boolean isLeading() Indicates whether the hit is on the leading edge of the character. If it is false, it represents the trailing edge.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |