if (bg == null) return;
    public void refreshTile(int x, int y) {      //  Graphics gg = bg.create();        bg.translate(-bufferRect.x, -bufferRect.y);        mapView.paintTile(bg, x, y);        bg.translate(bufferRect.x, bufferRect.y);	// gg.dispose();    }