if (changed) { pseudoMB.setLayers(new LayerEvent( this, LayerEvent.REPLACE, new Layer [] { layer })); }
    public synchronized void renderDataForProjection(Projection proj, java.awt.Graphics g){	if (proj == null){	    Debug.error("ScaleFilterLayer.renderDataForProjection: null projection!");	    return;	} else {	    boolean changed = setTargetIndex(proj.getScale());	    	    Layer layer = getAppropriateLayer();	    // Try to keep the layer and the Psudeo MB up to date.	    if (changed) {		pseudoMB.setLayers(new LayerEvent(		    this, LayerEvent.REPLACE, new Layer [] { layer }));	    }	    layer.renderDataForProjection(proj, g);	}    }