parent.redraw(xOffset + startX, yOffset, run.getRenderStopX() - startX, height, true);
if (runStartOffset > 0) { startX = renderPositions[runStartOffset - 1]; } else { startX = 0; } if (runEndOffset < renderPositions.length - 1) { endX = renderPositions[runEndOffset + 1] + dx[runEndOffset + 1]; } parent.redraw(xOffset + startX, yOffset, endX - startX, height, true);
void redrawRange(Control parent, int logicalStart, int length, int xOffset, int yOffset, int height) {	Enumeration directionRuns;	if (logicalStart < 0 || logicalStart + length > getTextLength()) {		return;	}	directionRuns = getDirectionRuns(logicalStart, length).elements();	while (directionRuns.hasMoreElements()) {		DirectionRun run = (DirectionRun) directionRuns.nextElement();		int startX = run.getRenderStartX();		parent.redraw(xOffset + startX, yOffset, run.getRenderStopX() - startX, height, true);	}				}