protected void update(OMGraphicList list,Projection proj){
  BufferedImage currentImageBuffer=null;
  if (proj != null && layer != null) {
    int w=proj.getWidth();
    int h=proj.getHeight();
    currentImageBuffer=getImageBuffer();
    BufferedImage bufferedImage=scrubOrGetNewBufferedImage(currentImageBuffer,w,h);
    if (bufferedImage != null) {
      if (currentImageBuffer != null) {
        currentImageBuffer.flush();
      }
      currentImageBuffer=bufferedImage;
    }
    Graphics2D g2d=(Graphics2D)currentImageBuffer.getGraphics();
    setRenderingHints(g2d);
    if (list != null) {
      list.render(g2d);
    }
    g2d.dispose();
    setImageRaster(updateRaster(currentImageBuffer,proj));
  }
  setImageBuffer(currentImageBuffer);
  currentProjection=proj;
}

protected void update ( OMGraphicList list , Projection proj ) { BufferedImage currentImageBuffer = null ; if ( proj != null && layer != null ) { int w = proj . getWidth ( ) ; int h = proj . getHeight ( ) ; currentImageBuffer = getImageBuffer ( ) ; BufferedImage bufferedImage = scrubOrGetNewBufferedImage ( currentImageBuffer , w , h ) ; if ( bufferedImage != null ) { if ( currentImageBuffer != null ) { currentImageBuffer . flush ( ) ; } currentImageBuffer = bufferedImage ; } Graphics2D g2d = ( Graphics2D ) currentImageBuffer . getGraphics ( ) ; setRenderingHints ( g2d ) ; if ( list != null ) { list . render ( g2d ) ; } g2d . dispose ( ) ; setImageRaster ( updateRaster ( currentImageBuffer , proj ) ) ; } setImageBuffer ( currentImageBuffer ) ; currentProjection = proj ; }
get the updated bufferedimage , with current omgraphics rendered into it . called with the results of layer . prepare ( ) .
