Lines Matching defs:textLine

244     private TextLine textLine;
255 * back to false. Could be replaced with textLine != null <--> cacheIsValid.
540 * @param textLine the line measurement attributes to apply to the
549 TextLayout(TextLine textLine,
554 this.characterCount = textLine.characterCount();
557 this.textLine = textLine;
603 textLine = TextLine.fastCreateTextLine(frc, chars, font, cm, attrs);
645 textLine = TextLine.standardCreateTextLine(frc, text, chars, baselineOffsets);
660 lineMetrics = textLine.getMetrics();
663 if (textLine.isDirectionLTR()) {
667 int logIndex = textLine.visualToLogical(lastNonSpace);
668 if (!textLine.isCharSpace(logIndex)) {
682 int logIndex = textLine.visualToLogical(lastNonSpace);
683 visibleAdvance = textLine.getCharLinePosition(logIndex)
684 + textLine.getCharAdvance(logIndex);
691 int logIndex = textLine.visualToLogical(leftmostNonSpace);
692 if (!textLine.isCharSpace(logIndex)) {
706 int logIndex = textLine.visualToLogical(leftmostNonSpace);
707 float pos = textLine.getCharLinePosition(logIndex);
730 naturalBounds = textLine.getItalicBounds();
800 ensureCache(); // make sure textLine is not null
804 while (limit > 0 && textLine.isCharWhitespace(limit-1)) {
808 TextLine newLine = textLine.getJustifiedLine(justificationWidth, justifyRatio, 0, limit);
972 Rectangle2D vb = textLine.getVisualBounds();
1005 return textLine.getPixelBounds(frc, x, y);
1025 return textLine.isDirectionLTR();
1128 logIndex = textLine.visualToLogical(characterCount-1);
1129 pos = textLine.getCharLinePosition(logIndex)
1130 + textLine.getCharAdvance(logIndex);
1133 logIndex = textLine.visualToLogical(caret);
1134 pos = textLine.getCharLinePosition(logIndex);
1136 float angle = textLine.getCharAngle(logIndex);
1137 float shift = textLine.getCharShift(logIndex);
1139 top1X = top2X = pos + angle*textLine.getCharAscent(logIndex);
1140 bottom1X = bottom2X = pos - angle*textLine.getCharDescent(logIndex);
1145 int logIndex = textLine.visualToLogical(caret-1);
1146 float angle1 = textLine.getCharAngle(logIndex);
1147 float pos1 = textLine.getCharLinePosition(logIndex)
1148 + textLine.getCharAdvance(logIndex);
1150 pos1 += angle1 * textLine.getCharShift(logIndex);
1151 top1X = pos1 + angle1*textLine.getCharAscent(logIndex);
1152 bottom1X = pos1 - angle1*textLine.getCharDescent(logIndex);
1159 int logIndex = textLine.visualToLogical(caret);
1160 float angle2 = textLine.getCharAngle(logIndex);
1161 float pos2 = textLine.getCharLinePosition(logIndex);
1163 pos2 += angle2*textLine.getCharShift(logIndex);
1164 top2X = pos2 + angle2*textLine.getCharAscent(logIndex);
1165 bottom2X = pos2 - angle2*textLine.getCharDescent(logIndex);
1237 boolean ltr = textLine.isDirectionLTR();
1243 TextLineMetrics m = textLine.getMetrics();
1256 CoreMetrics thiscm = textLine.getCoreMetricsAt(charix);
1258 ixbase = textLine.getCharLinePosition(charix, lead);
1261 TextLineMetrics m = textLine.getMetrics();
1329 return textLine.isDirectionLTR() ? 0 : characterCount;
1331 return textLine.isDirectionLTR() ? characterCount : 0;
1334 int visIndex = textLine.logicalToVisual(hitIndex);
1336 if (hit.isLeadingEdge() != textLine.isCharLTR(hitIndex)) {
1355 if ((caret == characterCount) == textLine.isDirectionLTR()) {
1364 int charIndex = textLine.visualToLogical(caret);
1365 boolean leading = textLine.isCharLTR(charIndex);
1378 int offset = textLine.visualToLogical(caret);
1380 if (!textLine.isCharLTR(offset)) {
1381 offset = textLine.visualToLogical(caret-1);
1382 if (textLine.isCharLTR(offset)) {
1390 return textLine.caretAtOffsetIsValid(offset);
1576 if (textLine.isDirectionLTR() == (hitCharIndex == -1)) {
1583 charIndex = textLine.visualToLogical(visIndex);
1585 if (textLine.isDirectionLTR() == (hitCharIndex == -1)) {
1587 leading = textLine.isCharLTR(charIndex);
1591 leading = !textLine.isCharLTR(charIndex);
1596 int visIndex = textLine.logicalToVisual(hitCharIndex);
1599 if (textLine.isCharLTR(hitCharIndex) == hit.isLeadingEdge()) {
1609 charIndex = textLine.visualToLogical(visIndex);
1610 leading = movedToRight == textLine.isCharLTR(charIndex);
1614 (movedToRight == textLine.isDirectionLTR())? characterCount : -1;
1785 return pathToShape(getCaretPath(hit, bounds), false, textLine.getLayoutPath());
1846 return (byte) (textLine.isDirectionLTR()? 0 : 1);
1849 return textLine.getCharLevel(index);
1885 LayoutPathImpl lp = textLine.getLayoutPath();
2097 included[textLine.visualToLogical(visIndex)] = true;
2203 LayoutPathImpl lp = textLine.getLayoutPath();
2293 boolean ltr = textLine.isCharLTR(logIndex);
2297 } while (logIndex < secondEndpoint && textLine.isCharLTR(logIndex) == ltr);
2322 if ((textLine.isDirectionLTR() && firstEndpoint == 0) || (!textLine.isDirectionLTR() &&
2330 if ((textLine.isDirectionLTR() && secondEndpoint == characterCount) ||
2331 (!textLine.isDirectionLTR() && firstEndpoint == 0)) {
2340 LayoutPathImpl lp = textLine.getLayoutPath();
2402 Rectangle2D r = textLine.getCharBounds(logIndex);
2413 LayoutPathImpl lp = textLine.getLayoutPath();
2459 LayoutPathImpl lp = textLine.getLayoutPath();
2499 if (!textLine.caretAtOffsetIsValid(i)) {
2505 CoreMetrics cm = textLine.getCoreMetricsAt(i);
2510 cy = -(textLine.getMetrics().ascent - cm.ascent) + cm.ssOffset;
2512 cy = textLine.getMetrics().descent - cm.descent + cm.ssOffset;
2521 float cx = textLine.getCharXPosition(i);
2522 float ca = textLine.getCharAdvance(i);
2536 boolean leading = textLine.isCharLTR(index) == left;
2569 hashCodeCache = textLine.hashCode();
2606 return textLine.equals(rhs.textLine);
2611 * @return the <code>textLine</code> of this <code>TextLayout</code>
2616 return textLine.toString();
2638 textLine.draw(g2, x - dx, y - dy);
2646 return textLine;
2692 Shape result = textLine.getOutline(tx);
2693 LayoutPathImpl lp = textLine.getLayoutPath();
2707 return textLine.getLayoutPath();
2739 if (ix == -1 || ix == textLine.characterCount()) {
2740 ltr = textLine.isDirectionLTR();
2743 ltr = textLine.isCharLTR(ix);
2744 adv = textLine.getCharLinePosition(ix, leading);
2745 off = textLine.getCharYPosition(ix);
2748 LayoutPath lp = textLine.getLayoutPath();