void (int startLine, int endLine) { Rectangle visibleRect = getScrollingModel().getVisibleArea(); int yStartLine = logicalPositionToXY(new LogicalPosition(startLine, 0)).y; int yEndLine = logicalPositionToXY(new LogicalPosition(endLine, 0)).y + getLineHeight() + WAVE_HEIGHT; myEditorComponent.repaintEditorComponent(visibleRect.x, yStartLine, visibleRect.x + visibleRect.width, yEndLine - yStartLine); myGutterComponent.repaint(0, yStartLine, myGutterComponent.getWidth(), yEndLine - yStartLine); }