View Javadoc
1   /*
2    * ThumbnailView.java
3    *
4    * Created on den 6 december 2002, 16:01
5    */
6   
7   package net.sourceforge.jsh3modtool.gui.imagetable.cache;
8   
9   import java.awt.Image;
10  
11  import net.sourceforge.jsh3modtool.gui.imagetable.ImageModel;
12  
13  /***
14   * A Viewer that can get thumbnails from the ThumbnailLoader
15   *
16   * @author  erma
17   */
18  public interface ThumbnailViewer
19  {
20      /***
21       * Notifies the thumbnail viewer that the supplied image has been updated.
22       * @param imageProps the image properties detailing which image that was updated.
23       * @param image the new raw image as an imagedata object.
24       */
25      void setImage( ImageModel imageProps, Image image );
26      
27      /***
28       * Notifies the thumbnail viewer that the image couldnt be loaded.
29       * @param imageProps the image properties detailing which image that was updated.
30       * @param msg the message stating what happened
31       */
32      void setMessage( ImageModel imageProps, String msg );
33  }