public void renderDataForProjection(Projection proj,Graphics g){
  Component[] layersComps=mapBean.getComponents();
  for (int i=layersComps.length - 1; i >= 0; i--) {
    Layer layer=(Layer)layersComps[i];
    if (layer.isVisible()) {
      layer.renderDataForProjection(proj,g);
    }
  }
}

public void renderDataForProjection ( Projection proj , Graphics g ) { Component [ ] layersComps = mapBean . getComponents ( ) ; for ( int i = layersComps . length - 1 ; i >= 0 ; i -- ) { Layer layer = ( Layer ) layersComps [ i ] ; if ( layer . isVisible ( ) ) { layer . renderDataForProjection ( proj , g ) ; } } }
part of the projectionpainter interface . the group layers are given the projection and the graphics to paint into .
