int endLine = startLine + lineCount;
	public void reset(int startLine, int lineCount, boolean calculateMaxWidth) {		int endLine = startLine + lineCount;		int itemCount = getPartialBottomIndex() - topIndex + 1;	    int[] oldLineOffsets = new int[itemCount];	    	    for (int i = 0; i < itemCount; i++) {	    	oldLineOffsets[i] = visualContent.getOffsetAtLine(i + topIndex);	    }	    redrawReset(startLine, lineCount, calculateMaxWidth);		// check for cases which will require a full redraw	    if (getPartialBottomIndex() - topIndex + 1 != itemCount) {	    	// number of visible lines has changed	    	parent.internalRedraw();	    }	    else {		    for (int i = 0; i < itemCount; i++) {		    	if (visualContent.getOffsetAtLine(i + topIndex) != oldLineOffsets[i]) {		    		// wrapping of one of the visible lines has changed		    		parent.internalRedraw();		    		break;		    	}	    	}	    		    }	}