static class IconExe.ImageLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
backgroundPixel
the background pixel for the logical screen (this
corresponds to the GIF89a Background Color Index value).
|
IconExe.ImageData[] |
data
the array of ImageData objects in this ImageLoader.
|
(package private) java.util.Vector |
imageLoaderListeners |
int |
logicalScreenHeight
the height of the logical screen on which the images
reside, in pixels (this corresponds to the GIF89a
Logical Screen Height value)
|
int |
logicalScreenWidth
the width of the logical screen on which the images
reside, in pixels (this corresponds to the GIF89a
Logical Screen Width value)
|
int |
repeatCount
the number of times to repeat the display of a sequence
of animated images (this corresponds to the commonly-used
GIF application extension for "NETSCAPE 2.0 01")
|
Constructor and Description |
---|
ImageLoader()
Construct a new empty ImageLoader.
|
Modifier and Type | Method and Description |
---|---|
IconExe.ImageData[] |
load(java.io.InputStream stream)
Loads an array of
ImageData objects from the
specified input stream. |
IconExe.ImageData[] |
load(java.lang.String filename)
Loads an array of
ImageData objects from the
file with the specified name. |
(package private) void |
reset()
Resets the fields of the ImageLoader, except for the
imageLoaderListeners field. |
public IconExe.ImageData[] data
public int logicalScreenWidth
public int logicalScreenHeight
public int backgroundPixel
public int repeatCount
java.util.Vector imageLoaderListeners
void reset()
imageLoaderListeners
field.public IconExe.ImageData[] load(java.io.InputStream stream)
ImageData
objects from the
specified input stream. Throws an error if either an error
occurs while loading the images, or if the images are not
of a supported type. Returns the loaded image data array.stream
- the input stream to load the images fromImageData
objects loaded from the specified input streamjava.lang.IllegalArgumentException
- java.lang.RuntimeException
- public IconExe.ImageData[] load(java.lang.String filename)
ImageData
objects from the
file with the specified name. Throws an error if either
an error occurs while loading the images, or if the images are
not of a supported type. Returns the loaded image data array.filename
- the name of the file to load the images fromImageData
objects loaded from the specified filejava.lang.IllegalArgumentException
- java.lang.RuntimeException
-