Lines Matching defs:charIndex

89     private int charIndex;
94 * @param charIndex the index of the character hit
98 private TextHitInfo(int charIndex, boolean isLeadingEdge) {
99 this.charIndex = charIndex;
108 return charIndex;
128 return isLeadingEdge ? charIndex : charIndex + 1;
134 * also the <code>charIndex</code> of this <code>TextHitInfo</code>.
137 return charIndex;
153 * has the same <code>charIndex</code> and <code>isLeadingEdge</code>
158 * has the same <code>charIndex</code> and <code>isLeadingEdge</code>
162 return hitInfo != null && charIndex == hitInfo.charIndex &&
173 return "TextHitInfo[" + charIndex + (isLeadingEdge ? "L" : "T")+"]";
178 * character at the specified <code>charIndex</code>.
179 * @param charIndex the index of the character hit
181 * character at the specified <code>charIndex</code>.
183 public static TextHitInfo leading(int charIndex) {
184 return new TextHitInfo(charIndex, true);
189 * the specified <code>charIndex</code>.
190 * @param charIndex the index of the character hit
192 * character at the specified <code>charIndex</code>.
194 public static TextHitInfo trailing(int charIndex) {
195 return new TextHitInfo(charIndex, false);
228 return trailing(charIndex - 1);
230 return leading(charIndex + 1);
236 * by <code>delta</code> from the <code>charIndex</code> of this
239 * @param delta the value to offset this <code>charIndex</code>
240 * @return a <code>TextHitInfo</code> whose <code>charIndex</code> is
241 * offset by <code>delta</code> from the <code>charIndex</code> of
245 return new TextHitInfo(charIndex + delta, isLeadingEdge);