protected void addImageToLists(ImageTile imageTile,OMGraphicList ret,URL fileURL){
  imageTile.generate(getProjection());
  ret.add(imageTile);
  addImageTileToList(imageTile);
  imageTile.putAttribute(FILE_PATH_ATTRIBUTE,fileURL.getPath());
  imageTile.putAttribute(NAME_ATTRIBUTE,fileURL.getFile());
  selectedDrawingAttributes.setTo(imageTile);
  repaint();
  if (resultsList != null) {
    resultsList.repaint();
  }
}

protected void addImageToLists ( ImageTile imageTile , OMGraphicList ret , URL fileURL ) { imageTile . generate ( getProjection ( ) ) ; ret . add ( imageTile ) ; addImageTileToList ( imageTile ) ; imageTile . putAttribute ( FILE_PATH_ATTRIBUTE , fileURL . getPath ( ) ) ; imageTile . putAttribute ( NAME_ATTRIBUTE , fileURL . getFile ( ) ) ; selectedDrawingAttributes . setTo ( imageTile ) ; repaint ( ) ; if ( resultsList != null ) { resultsList . repaint ( ) ; } }
a method to handle a newly created imagetile object from the loadimage method .
