com.realtime.crossfire.jxclient.faces
Interface ImageCache

All Known Implementing Classes:
FileCache, MemoryImageCache

public interface ImageCache

Interface for ImageIcon caching classes.


Method Summary
 javax.swing.ImageIcon load(Face face)
          Retrieves an image from the cache.
 void save(Face face, javax.swing.ImageIcon imageIcon)
          Stores an ImageIcon into the cache.
 

Method Detail

load

@Nullable
javax.swing.ImageIcon load(@NotNull
                                    Face face)
Retrieves an image from the cache.

Parameters:
face - the face to retrieve
Returns:
the image icon, or null if the cache does not contain the image

save

void save(@NotNull
          Face face,
          @NotNull
          javax.swing.ImageIcon imageIcon)
Stores an ImageIcon into the cache.

Parameters:
face - the face to save
imageIcon - the image icon to store