T - the type of objects.
public class ImageSourcePathPattern<T> extends Objectimplements ImageSource <T ,BufferedImage >
| Constructor and Description |
|---|
ImageSourcePathPattern(CachePathProvider
An ImageSource implementation based that works with PathResoluter
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
load(T thing)
|
BufferedImage |
loadImage(T thing)
Load the image and return it as a BufferedImage together with the raw bytes.
|
void |
setPathResoluter(CachePathProvider
Set the PathResoluter used to resolve image URLs.
|
public ImageSourcePathPattern(CachePathProvider<T> resolver)
resolver - the path generator
public void setPathResoluter(CachePathProvider<T> resolver)
resolver - the resolver to use
public BufferedImageload(T thing)
public BufferedImageloadImage(T thing)
thing - the thing to load the image for.