public abstract class ImageLoaderImpl extends java.lang.Object implements ImageLoader
Modifier and Type | Field and Description |
---|---|
protected ImageFormatDescription |
formatDescription |
protected int |
lastPercentDone |
protected java.util.HashSet<ImageLoadListener> |
listeners |
Modifier | Constructor and Description |
---|---|
protected |
ImageLoaderImpl(ImageFormatDescription formatDescription) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ImageLoadListener listener)
Adds a listener to monitor this loader.
|
protected void |
emitWarning(java.lang.String warning) |
ImageFormatDescription |
getFormatDescription()
Gets a description of the image format supported by this loader.
|
void |
removeListener(ImageLoadListener listener)
Removes a listener from the list of those monitoring this loader.
|
protected void |
updateImageMetadata(ImageMetadata metadata) |
protected void |
updateImageProgress(float percentageDone) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, load
protected ImageFormatDescription formatDescription
protected java.util.HashSet<ImageLoadListener> listeners
protected int lastPercentDone
protected ImageLoaderImpl(ImageFormatDescription formatDescription)
public final ImageFormatDescription getFormatDescription()
ImageLoader
getFormatDescription
in interface ImageLoader
public final void addListener(ImageLoadListener listener)
ImageLoader
addListener
in interface ImageLoader
listener
- the listener to add.public final void removeListener(ImageLoadListener listener)
ImageLoader
removeListener
in interface ImageLoader
listener
- the listener to remove.protected void emitWarning(java.lang.String warning)
protected void updateImageProgress(float percentageDone)
protected void updateImageMetadata(ImageMetadata metadata)