Interface ImageCache
-
- All Known Implementing Classes:
FileCache
public interface ImageCacheInterface forImageIconcaching classes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable javax.swing.ImageIconload(@NotNull Face face)Retrieves an image from the cache.voidsave(@NotNull Face face, @NotNull javax.swing.ImageIcon imageIcon)Stores anImageIconinto the cache.
-
-
-
Method Detail
-
load
@Nullable @Nullable javax.swing.ImageIcon load(@NotNull @NotNull Face face)Retrieves an image from the cache.- Parameters:
face- the face to retrieve- Returns:
- the image icon, or
nullif the cache does not contain the image
-
save
void save(@NotNull @NotNull Face face, @NotNull @NotNull javax.swing.ImageIcon imageIcon)Stores anImageIconinto the cache.- Parameters:
face- the face to saveimageIcon- the image icon to store
-
-