point.y += getLinePixel(lineIndex) + topMargin; return point;
point.y += getLinePixel(lineIndex); return point;
Point getPointAtOffset(String line, int lineIndex, int offsetInLine) {	int lineLength = line.length();	if (lineIndex < content.getLineCount() - 1) {		int endLineOffset = content.getOffsetAtLine(lineIndex + 1) - 1;		if (lineLength < offsetInLine && offsetInLine <= endLineOffset) {			offsetInLine = lineLength;		}	}	Point point;	if (lineLength != 0  && offsetInLine <= lineLength) {		int lineOffset = content.getOffsetAtLine(lineIndex);		TextLayout layout = renderer.getTextLayout(line, lineOffset);		if (!advancing || offsetInLine == 0) {			point = layout.getLocation(offsetInLine, false);		} else {			point = layout.getLocation(offsetInLine - 1, true);		}		renderer.disposeTextLayout(layout);	} else {		point = new Point(0, 0);	}	point.x += leftMargin - horizontalScrollOffset;	point.y += getLinePixel(lineIndex) + topMargin;	return point; }