protected void generateOMGraphic(OMGraphic g){
  if (g != null && g.getNeedToRegenerate()) {
    Projection proj=getProjection();
    if (proj != null) {
      g.generate(proj);
    }
 else     if (DEBUG) {
      Debug.output("OMDrawingTool: graphic needs generation: " + g.getNeedToRegenerate());
    }
  }
}

protected void generateOMGraphic ( OMGraphic g ) { if ( g != null && g . getNeedToRegenerate ( ) ) { Projection proj = getProjection ( ) ; if ( proj != null ) { g . generate ( proj ) ; } else if ( DEBUG ) { Debug . output ( "OMDrawingTool: graphic needs generation: " + g . getNeedToRegenerate ( ) ) ; } } }
if the projection is not null , generate the omgraphic .
