return Math.min(content.getLineCount() - 1, topIndex + Math.max(0, getLineCountWhole() - 1));
int lineCount = 1;  if (lineHeight != 0) {  int partialTopLineHeight = topIndex * lineHeight - verticalScrollOffset; lineCount = (getClientArea().height - partialTopLineHeight) / lineHeight; } return Math.min(content.getLineCount() - 1, topIndex + Math.max(0, lineCount - 1));
int getBottomIndex() {	return Math.min(content.getLineCount() - 1, topIndex + Math.max(0, getLineCountWhole() - 1));}