Lines Matching defs:hit2
328 * @param hit2 a valid hit in <code>layout</code>
330 * <code>hit1</code> and <code>hit2</code> are used
331 * @return <code>hit1</code> or <code>hit2</code>
336 TextHitInfo hit2,
340 return layout.getStrongHit(hit1, hit2);
1444 TextHitInfo hit2 = hit1.getOtherHit();
1446 TextHitInfo nextHit = getNextRightHit(policy.getStrongCaret(hit1, hit2, this));
1526 TextHitInfo hit2 = hit1.getOtherHit();
1528 TextHitInfo nextHit = getNextLeftHit(policy.getStrongCaret(hit1, hit2, this));
1805 private final TextHitInfo getStrongHit(TextHitInfo hit1, TextHitInfo hit2) {
1815 byte hit2Level = getCharacterLevel(hit2.getCharIndex());
1818 if (hit2.isLeadingEdge() && !hit1.isLeadingEdge()) {
1819 return hit2;
1826 return (hit1Level < hit2Level)? hit1 : hit2;