T - the type of things.
D - the type of data.
public abstract class ImageProvider<T,D> extends Objectimplements ImageSource <T ,D>
| Constructor and Description |
|---|
ImageProvider(int nThreads)
Create a new ImageProvider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLoadListener(LoadListener
Add a listener to be notified on load / fail events.
|
abstract D |
load(T thing)
This is the method that this ImageProvider will use to get an Image.
|
void |
provide(T thing)
Provide the data for this thing.
|
void |
removeLoadListener(LoadListener
Remove a listener from the set of listeners.
|
void |
stopRunning()
Stop producing new elements.
|
public ImageProvider(int nThreads)
nThreads - the number of threads to use for loading.
public abstract D load(T thing)
load in interface
ImageSource<T,D>
thing - the thing that shall be loaded.
public void provide(T thing)
thing - the thing to provide data for.
public void stopRunning()
public void addLoadListener(LoadListener<T ,D> listener)
listener - the listener to add.
public void removeLoadListener(LoadListener<T ,D> listener)
listener - the listener to remove.