public void projectionChanged(ProjectionEvent e, boolean saveGraphicsForRedraw) { Debug.message("basic", getName()+"|RpfLayer.projectionChanged()");      Projection oldProj = getProjection(); Projection newProj = setProjection(e);  if (newProj == null) {   repaint(); return; }  if (saveGraphicsForRedraw && oldProj instanceof CADRG && newProj instanceof CADRG) {  CADRG cadrg1 = (CADRG) oldProj; CADRG cadrg2 = (CADRG) newProj; if (cadrg1.getScale() != cadrg2.getScale() || cadrg1.getZone() != cadrg2.getZone()) { setGraphicList(null); }  } else { setGraphicList(null); }  doPrepare();
public void projectionChanged(ProjectionEvent e) { projectionChanged(e, false);
    public void projectionChanged(ProjectionEvent e,                                   boolean saveGraphicsForRedraw) {        Debug.message("basic", getName()+"|RpfLayer.projectionChanged()");        // Need to grab a copy of the old projection in case        // saveGraphicsForRedraw is true and the projection changes,        // so we can test to see if the zone and scale have changed,        // testing for reuse of current frames.        Projection oldProj = getProjection();        Projection newProj = setProjection(e);        if (newProj == null) {            // Projection didn't change, nothing to do, already have            // good graphics and just need to paint...            repaint();            return;        }        if (saveGraphicsForRedraw &&             oldProj instanceof CADRG &&            newProj instanceof CADRG) {            CADRG cadrg1 = (CADRG) oldProj;            CADRG cadrg2 = (CADRG) newProj;            if (cadrg1.getScale() != cadrg2.getScale() ||                cadrg1.getZone() != cadrg2.getZone()) {                setGraphicList(null);            }            // else set graphic list escapes deletion...        } else {            setGraphicList(null);        }        doPrepare();    }