Last change
on this file since 1097 was 1097, checked in by davidb, 6 years ago |
Newly structured files from Corey's work on logic/graphics separation
|
File size:
410 bytes
|
Line | |
---|
1 | package org.expeditee.core;
|
---|
2 |
|
---|
3 | public class TextHitInfo {
|
---|
4 |
|
---|
5 | public int charIndex;
|
---|
6 | public boolean isLeadingEdge;
|
---|
7 |
|
---|
8 | public TextHitInfo(int charIndex, boolean isLeadingEdge)
|
---|
9 | {
|
---|
10 | this.charIndex = charIndex;
|
---|
11 | this.isLeadingEdge = isLeadingEdge;
|
---|
12 | }
|
---|
13 |
|
---|
14 | public int getInsertionIndex() {
|
---|
15 | return isLeadingEdge ? charIndex : charIndex + 1;
|
---|
16 | }
|
---|
17 |
|
---|
18 | public int getCharIndex() {
|
---|
19 | return charIndex;
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.