Graphics gg = bg.create(); gg.setClip(x, y, width, height); gg.translate(-bufferRect.x, -bufferRect.y); mapView.paintRect(gg, bufferRect); gg.dispose();
bg.setClip(x, y, width, height); bg.translate(-bufferRect.x, -bufferRect.y); mapView.paintRect(bg, bufferRect); bg.translate(bufferRect.x, bufferRect.y);
    protected void paintBufferRectangle(int x, int y, int width, int height) {        Graphics gg = bg.create();        gg.setClip(x, y, width, height);        gg.translate(-bufferRect.x, -bufferRect.y);        mapView.paintRect(gg, bufferRect);	gg.dispose();    }