protected boolean updateImageForProjection(Projection proj){
  position(proj);
  if (imageDecoder != null) {
    if (!isOnMap(proj)) {
      setNeedToRegenerate(true);
      return false;
    }
    if (shouldFetchForProjection(proj)) {
      if (realSelection == null) {
        if (getFillPaint() == com.bbn.openmap.omGraphics.OMColor.clear) {
          setFillPaint(DEFAULT_NON_CLEAR_FILL_PAINT);
        }
        realSelection=Boolean.valueOf(selected);
      }
      selected=true;
      setShape();
      setNeedToRegenerate(false);
      return false;
    }
 else     if (realSelection != null) {
      if (getFillPaint() == DEFAULT_NON_CLEAR_FILL_PAINT) {
        setFillPaint(com.bbn.openmap.omGraphics.OMColor.clear);
      }
      setFillPaint(com.bbn.openmap.omGraphics.OMColor.clear);
      selected=realSelection.booleanValue();
      realSelection=null;
    }
    if (bitmap == null) {
      if (cache != null) {
        setImage((Image)cache.get(imageDecoder));
      }
 else {
        setImage(imageDecoder.getBufferedImage());
      }
    }
  }
  return true;
}

protected boolean updateImageForProjection ( Projection proj ) { position ( proj ) ; if ( imageDecoder != null ) { if ( ! isOnMap ( proj ) ) { setNeedToRegenerate ( true ) ; return false ; } if ( shouldFetchForProjection ( proj ) ) { if ( realSelection == null ) { if ( getFillPaint ( ) == com . bbn . openmap . omGraphics . OMColor . clear ) { setFillPaint ( DEFAULT_NON_CLEAR_FILL_PAINT ) ; } realSelection = Boolean . valueOf ( selected ) ; } selected = true ; setShape ( ) ; setNeedToRegenerate ( false ) ; return false ; } else if ( realSelection != null ) { if ( getFillPaint ( ) == DEFAULT_NON_CLEAR_FILL_PAINT ) { setFillPaint ( com . bbn . openmap . omGraphics . OMColor . clear ) ; } setFillPaint ( com . bbn . openmap . omGraphics . OMColor . clear ) ; selected = realSelection . booleanValue ( ) ; realSelection = null ; } if ( bitmap == null ) { if ( cache != null ) { setImage ( ( Image ) cache . get ( imageDecoder ) ) ; } else { setImage ( imageDecoder . getBufferedImage ( ) ) ; } } } return true ; }
called from within generate .
