break;
int verticalMaximum = lineCount * getVerticalIncrement(); int pageSize = getClientArea().height; int scrollOffset = verticalScrollOffset + scrollLines * getVerticalIncrement(); if (scrollOffset + pageSize > verticalMaximum) { scrollOffset = verticalMaximum - pageSize; } if (scrollOffset > verticalScrollOffset) { setVerticalScrollOffset(scrollOffset, true); }
void doPageDown(boolean select, int height) {	// do nothing if in single line mode. fixes 5673	if (isSingleLine()) {		return;	}	Point point = getCaret().getLocation();	int lineCount = content.getLineCount();	//int index = getBottomIndex();	int clientAreaHeight = getClientArea().height;	int index = getLineIndex(clientAreaHeight);	int y = 0;	if (index > 0) {		int linePixel = getLinePixel(index);		int lineHeight = lineCache.getLineHeight(index);		y = Math.max(0, linePixel + lineHeight - clientAreaHeight);	}	while (index < lineCount - 1) {		int paragraphHeight = lineCache.getLineHeight(index);		if (y + paragraphHeight > height) {			if (wordWrap) {				String line = content.getLine(index);				int lineOffset = content.getOffsetAtLine(index);				TextLayout layout = renderer.getTextLayout(line, lineOffset);				int count = layout.getLineCount();				renderer.disposeTextLayout(layout);			} else {				y = height;			}			break;		}		y += paragraphHeight;		index++;	}	if (y == 0) return;	setVerticalScrollOffset(verticalScrollOffset + y, true);	caretOffset = getOffsetAtPoint(point.x, point.y + 1);	setCaretLocation();}