| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ImageFormatDescription | |
| private final ImageReader | |
| private final ImageInputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(ImageLoadListener
the listener to add. listener)Implements com. Adds a listener to monitor this loader. |
| public void | dispose()
Implements com. Disposes of any resources (such as native libraries) held by this loader. |
| private static ByteBuffer | |
| public ImageFormatDescription | getFormatDescription()
Implements com. Gets a description of the image format supported by this loader. |
| private static IntBuffer | |
| public ImageFrame | load(int
the zero-relative index of the image to load. imageIndex, double the desired image width. If non-positive,
an w, double IllegalArgumentException will be thrown.the desired image height. If non-positive,
an h, boolean IllegalArgumentException will be thrown.whether to preserve the width-to-height ratio
of the image. preserveAspectRatio, boolean whether to use a smooth downscaling algorithm. smooth, float screen pixel scale (used for variable-density images) screenPixelScale, float image pixel scale (used for fixed-density images) imagePixelScale)Implements com. Loads the image at a given index in an image stream. |
| public void | removeListener(ImageLoadListener
the listener to remove. listener)Implements com. Removes a listener from the list of those monitoring this loader. |
| description | back to summary |
|---|---|
| private final ImageFormatDescription description | |
| reader | back to summary |
|---|---|
| private final ImageReader reader | |
| stream | back to summary |
|---|---|
| private final ImageInputStream stream | |
| J2DImageLoader | back to summary |
|---|---|
| public J2DImageLoader(ImageReader reader, ImageInputStream stream) throws IOException | |
| addListener | back to summary |
|---|---|
| public void addListener(ImageLoadListener listener) Implements com. Doc from com. Adds a listener to monitor this loader.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Disposes of any resources (such as native libraries) held by this loader. Any further invocation of any methods on this object are undefined.
| |
| getByteBuffer | back to summary |
|---|---|
| private static ByteBuffer getByteBuffer(DataBuffer buffer) | |
| getFormatDescription | back to summary |
|---|---|
| public ImageFormatDescription getFormatDescription() Implements com. Doc from com. Gets a description of the image format supported by this loader.
| |
| getIntBuffer | back to summary |
|---|---|
| private static IntBuffer getIntBuffer(DataBuffer buffer) | |
| load | back to summary |
|---|---|
| public ImageFrame load(int imageIndex, double w, double h, boolean preserveAspectRatio, boolean smooth, float screenPixelScale, float imagePixelScale) throws IOException Implements com. Doc from com. Loads the image at a given index in an image stream. If no image exists
at that index
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(ImageLoadListener listener) Implements com. Doc from com. Removes a listener from the list of those monitoring this loader.
| |
| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private final ImageLoadListener |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public void | imageComplete(ImageReader
the source)ImageReader object calling this
method.Implements javax. Reports that the current image read operation has completed. |
| public void | imageProgress(ImageReader
the source, float ImageReader object calling this method.the approximate percentage of decoding that
has been completed. percentageDone)Implements javax. Reports the approximate degree of completion of the current
|
| public void | imageStarted(ImageReader
the source, int ImageReader object calling this method.the index of the image being read within its
containing input file or stream. imageIndex)Implements javax. Reports that an image read operation is beginning. |
| public void | readAborted(ImageReader
the source)ImageReader object calling this
method.Implements javax. Reports that a read has been aborted via the reader's
|
| public void | sequenceComplete(ImageReader
the source)ImageReader object calling this method.Implements javax. Reports that a sequence of read operations has completed. |
| public void | sequenceStarted(ImageReader
the source, int ImageReader object calling this method.the index of the first image to be read. minIndex)Implements javax. Reports that a sequence of read operations is beginning. |
| public void | thumbnailComplete(ImageReader
the source)ImageReader object calling this
method.Implements javax. Reports that a thumbnail read operation has completed. |
| public void | thumbnailProgress(ImageReader
the source, float ImageReader object calling this method.the approximate percentage of decoding that
has been completed. percentageDone)Implements javax. Reports the approximate degree of completion of the current
|
| public void | thumbnailStarted(ImageReader
the source, int ImageReader object calling this method.the index of the image being read within its
containing input file or stream. imageIndex, int the index of the thumbnail being read. thumbnailIndex)Implements javax. Reports that a thumbnail read operation is beginning. |
| public void | warningOccurred(ImageReader
the source, String ImageReader object calling this method.a warning)String containing the warning.Implements javax. Reports the occurrence of a non-fatal error in decoding. |
| lastProgress | back to summary |
|---|---|
| private float lastProgress | |
| listener | back to summary |
|---|---|
| private final ImageLoadListener listener | |
| LoadListenerImpl | back to summary |
|---|---|
| pack-priv LoadListenerImpl(ImageLoadListener listener) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| imageComplete | back to summary |
|---|---|
| public void imageComplete(ImageReader source) Implements javax. Doc from javax. Reports that the current image read operation has completed.
All
| |
| imageProgress | back to summary |
|---|---|
| public void imageProgress(ImageReader source, float percentageDone) Implements javax. Doc from javax. Reports the approximate degree of completion of the current
The degree of completion is expressed as a percentage
varying from Each particular
| |
| imageStarted | back to summary |
|---|---|
| public void imageStarted(ImageReader source, int imageIndex) Implements javax. Doc from javax. Reports that an image read operation is beginning. All
| |
| readAborted | back to summary |
|---|---|
| public void readAborted(ImageReader source) Implements javax. Doc from javax. Reports that a read has been aborted via the reader's
| |
| sequenceComplete | back to summary |
|---|---|
| public void sequenceComplete(ImageReader source) Implements javax. Doc from javax. Reports that a sequence of read operations has completed.
| |
| sequenceStarted | back to summary |
|---|---|
| public void sequenceStarted(ImageReader source, int minIndex) Implements javax. Doc from javax. Reports that a sequence of read operations is beginning.
| |
| thumbnailComplete | back to summary |
|---|---|
| public void thumbnailComplete(ImageReader source) Implements javax. Doc from javax. Reports that a thumbnail read operation has completed. All
| |
| thumbnailProgress | back to summary |
|---|---|
| public void thumbnailProgress(ImageReader source, float percentageDone) Implements javax. Doc from javax. Reports the approximate degree of completion of the current
| |
| thumbnailStarted | back to summary |
|---|---|
| public void thumbnailStarted(ImageReader source, int imageIndex, int thumbnailIndex) Implements javax. Doc from javax. Reports that a thumbnail read operation is beginning. All
| |
| warningOccurred | back to summary |
|---|---|
| public void warningOccurred(ImageReader source, String warning) Implements javax. Doc from javax. Reports the occurrence of a non-fatal error in decoding. Decoding will continue following the call to this method. The application may choose to display a dialog, print the warning to the console, ignore the warning, or take any other action it chooses.
| |