T - the type of things this manager provides images for.
D - the type of data.
public interface ImageManager<T,D> | Modifier and Type | Method and Description |
|---|---|
void |
addLoadListener(LoadListener
|
void |
destroy()
Destroy this manager and release all resources occupied
|
D |
get(T thing)
Get the image for the given thing.
|
void |
removeLoadListener(LoadListener
|
void |
setCacheHintMinimumSize(int size)
Let the implementation optimize the cache by having a minimum size.
|
void |
willNeed(T thing)
Notify the manager that the specified thing will be needed soon.
|
D get(T thing)
thing - the thing to get an image for.
void willNeed(T thing)
get subsequently for more than one item so that the manager may be able to reorganize its structures to not throwing out things out of its cache that are known to be used soon.
thing - the thing you need to use soon.
void addLoadListener(LoadListener<T ,D> listener)
listener - the listener to add.
void removeLoadListener(LoadListener<T ,D> listener)
listener - the listener to remove.
void destroy()
void setCacheHintMinimumSize(int size)