T - the type of things that map to cached images.
public class ImageProviderDisk<T> extends ImageProvider<T ,BufferedImage >
| Constructor and Description |
|---|
ImageProviderDisk(CachePathProvider
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
load(T thing)
This is the method that this ImageProvider will use to get an Image.
|
void |
push(T thing, BufferedImageAndBytes
Put this thing's loaded image into the disk-cache.
|
addLoadListener, provide, removeLoadListener, stopRunningpublic ImageProviderDisk(CachePathProvider<T> resolver)
public BufferedImageload(T thing)
ImageProvider
load in interface
ImageSource<T,BufferedImage>
load in class
ImageProvider<T,BufferedImage>
thing - the thing that shall be loaded.
public void push(T thing, BufferedImageAndBytesbiab)
thing - the thing.
biab - the thing's data to cache.