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