class PrismImageLoader2 extends java.lang.Object implements ImageLoader
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PrismImageLoader2.AsyncImageLoader |
private class |
PrismImageLoader2.PrismLoadListener |
| Modifier and Type | Field and Description |
|---|---|
private int[] |
delayTimes |
private java.lang.Exception |
exception |
private int |
height |
private static sun.util.logging.PlatformLogger |
imageioLogger |
private Image[] |
images |
private int |
loopCount |
private float |
pixelScale |
private int |
width |
| Constructor and Description |
|---|
PrismImageLoader2(java.io.InputStream stream,
int width,
int height,
boolean preserveRatio,
boolean smooth) |
PrismImageLoader2(java.lang.String url,
int width,
int height,
boolean preserveRatio,
float pixelScale,
boolean smooth) |
| Modifier and Type | Method and Description |
|---|---|
private void |
convertAll(ImageFrame[] imgFrames) |
java.lang.Exception |
getException() |
PlatformImage |
getFrame(int index) |
int |
getFrameCount() |
int |
getFrameDelay(int index) |
int |
getHeight() |
private static sun.util.logging.PlatformLogger |
getImageioLogger()
Returns the PlatformLogger for logging imageio-related activities.
|
int |
getLoopCount() |
int |
getWidth() |
private void |
handleException(java.lang.Exception exception) |
private void |
handleException(ImageStorageException isException) |
private void |
loadAll(java.io.InputStream stream,
int w,
int h,
boolean preserveRatio,
boolean smooth) |
private void |
loadAll(java.lang.String url,
int w,
int h,
boolean preserveRatio,
float pixelScale,
boolean smooth) |
private static sun.util.logging.PlatformLogger imageioLogger
private Image[] images
private int[] delayTimes
private int loopCount
private int width
private int height
private float pixelScale
private java.lang.Exception exception
public PrismImageLoader2(java.lang.String url,
int width,
int height,
boolean preserveRatio,
float pixelScale,
boolean smooth)
public PrismImageLoader2(java.io.InputStream stream,
int width,
int height,
boolean preserveRatio,
boolean smooth)
public int getWidth()
getWidth in interface ImageLoaderpublic int getHeight()
getHeight in interface ImageLoaderpublic int getFrameCount()
getFrameCount in interface ImageLoaderpublic PlatformImage getFrame(int index)
getFrame in interface ImageLoaderpublic int getFrameDelay(int index)
getFrameDelay in interface ImageLoaderpublic int getLoopCount()
getLoopCount in interface ImageLoaderpublic java.lang.Exception getException()
getException in interface ImageLoaderprivate void loadAll(java.lang.String url,
int w,
int h,
boolean preserveRatio,
float pixelScale,
boolean smooth)
private void loadAll(java.io.InputStream stream,
int w,
int h,
boolean preserveRatio,
boolean smooth)
private void handleException(ImageStorageException isException)
private void handleException(java.lang.Exception exception)
private void convertAll(ImageFrame[] imgFrames)
private static sun.util.logging.PlatformLogger getImageioLogger()