public synchronized OMGraphicList prepare(){
  OMGraphicList list=getList();
  if (list == null) {
    list=new OMGraphicList();
  }
 else {
    list.clear();
  }
  Debug.message("basic",getName() + "|DayNightLayer.prepare(): doing it");
  OMGraphic ras=createImage(getProjection());
  if (timer != null)   timer.restart();
  list.add(ras);
  return list;
}

public synchronized OMGraphicList prepare ( ) { OMGraphicList list = getList ( ) ; if ( list == null ) { list = new OMGraphicList ( ) ; } else { list . clear ( ) ; } Debug . message ( "basic" , getName ( ) + "|DayNightLayer.prepare(): doing it" ) ; OMGraphic ras = createImage ( getProjection ( ) ) ; if ( timer != null ) timer . restart ( ) ; list . add ( ras ) ; return list ; }
prepares the graphics for the layer . this is where the getrectangle ( ) method call is made on the location . < p > occasionally it is necessary to abort a prepare call . when this happens , the map will set the cancel bit in the layerthread , ( the thread that is running the prepare ) . if this layer needs to do any cleanups during the abort , it should do so , but return out of the prepare asap .
