Lines Matching refs:firstEndpoint

2060      * @param firstEndpoint an endpoint of the visual range
2062 * This endpoint can be less than <code>firstEndpoint</code>.
2067 public int[] getLogicalRangesForVisualSelection(TextHitInfo firstEndpoint,
2071 checkTextHit(firstEndpoint);
2078 int startIndex = hitToCaret(firstEndpoint);
2160 * @param firstEndpoint one end of the visual selection
2169 public Shape getVisualHighlightShape(TextHitInfo firstEndpoint,
2175 checkTextHit(firstEndpoint);
2184 int firstCaret = hitToCaret(firstEndpoint);
2216 * @param firstEndpoint one end of the visual selection
2221 public Shape getVisualHighlightShape(TextHitInfo firstEndpoint,
2223 return getVisualHighlightShape(firstEndpoint, secondEndpoint, getNaturalBounds());
2254 * @param firstEndpoint an endpoint in the range of characters to select
2256 * to select. Can be less than <code>firstEndpoint</code>. The range
2257 * includes the character at min(firstEndpoint, secondEndpoint), but
2258 * excludes max(firstEndpoint, secondEndpoint).
2265 public Shape getLogicalHighlightShape(int firstEndpoint,
2274 if (firstEndpoint > secondEndpoint) {
2275 int t = firstEndpoint;
2276 firstEndpoint = secondEndpoint;
2280 if(firstEndpoint < 0 || secondEndpoint > characterCount) {
2289 if (firstEndpoint < secondEndpoint) {
2290 int logIndex = firstEndpoint;
2311 carets[0] = carets[1] = hitToCaret(TextHitInfo.leading(firstEndpoint));
2321 if (firstEndpoint != secondEndpoint) {
2322 if ((textLine.isDirectionLTR() && firstEndpoint == 0) || (!textLine.isDirectionLTR() &&
2331 (!textLine.isDirectionLTR() && firstEndpoint == 0)) {
2353 * @param firstEndpoint an endpoint in the range of characters to select
2355 * to select. Can be less than <code>firstEndpoint</code>. The range
2356 * includes the character at min(firstEndpoint, secondEndpoint), but
2357 * excludes max(firstEndpoint, secondEndpoint).
2361 public Shape getLogicalHighlightShape(int firstEndpoint, int secondEndpoint) {
2363 return getLogicalHighlightShape(firstEndpoint, secondEndpoint, getNaturalBounds());
2371 * @param firstEndpoint one end of the character range
2373 * less than <code>firstEndpoint</code>.
2377 public Shape getBlackBoxBounds(int firstEndpoint, int secondEndpoint) {
2380 if (firstEndpoint > secondEndpoint) {
2381 int t = firstEndpoint;
2382 firstEndpoint = secondEndpoint;
2386 if (firstEndpoint < 0 || secondEndpoint > characterCount) {
2392 * characters from firstEndpoint to limit
2397 if (firstEndpoint < characterCount) {
2398 for (int logIndex = firstEndpoint;