void reset(int startLine, int lineCount) { int endLine = startLine + lineCount; if (startLine < 0 || endLine > lineWidth.length) return; for (int i = startLine; i < endLine; i++) { lineWidth[i] = -1; lineHeight[i] = -1;
void reset() { if (layouts != null) { for (int i = 0; i < layouts.length; i++) { TextLayout layout = layouts[i]; if (layout != null) layout.dispose(); } layouts = null;
void reset(int startLine, int lineCount) {	int endLine = startLine + lineCount;	if (startLine < 0 || endLine > lineWidth.length) return;	for (int i = startLine; i < endLine; i++) {		lineWidth[i] = -1;		lineHeight[i] = -1;	}	if (startLine <= maxWidthLineIndex && maxWidthLineIndex < endLine) {		maxWidth = 0;		maxWidthLineIndex = -1;		if (lineCount != this.lineCount) {			for (int i = 0; i < this.lineCount; i++) {				if (lineWidth[i] > maxWidth) {					maxWidth = lineWidth[i];					maxWidthLineIndex = i;				}			}		}	}}