Package noaa.coastwatch.gui
Class ImageLoader
java.lang.Object
noaa.coastwatch.gui.ImageLoader
- All Implemented Interfaces:
ImageConsumer
The image loader class is used to render an image asychronously
from an image producer. Each loader is coupled with an observer
object that displays the image data as it is being loaded.
- Since:
- 3.1.3
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT -
Constructor Summary
ConstructorsConstructorDescriptionImageLoader(Image image, ImageLoaderObserver observer) Creates a new image loader for the specified image. -
Method Summary
Modifier and TypeMethodDescriptiongetDims()Gets the image dimensions.booleanGets the image loading status.voidimageComplete(int status) voidsetColorModel(ColorModel model) voidsetDimensions(int width, int height) voidsetHints(int hintflags) voidsetPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) voidsetPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) voidsetProperties(Hashtable props) voidStarts image loading.voidStops image loading.
-
Constructor Details
-
ImageLoader
Creates a new image loader for the specified image.
-
-
Method Details
-
getDims
Gets the image dimensions. -
getLoading
public boolean getLoading()Gets the image loading status. -
startLoading
public void startLoading()Starts image loading. -
stopLoading
public void stopLoading()Stops image loading. -
imageComplete
public void imageComplete(int status) - Specified by:
imageCompletein interfaceImageConsumer
-
setColorModel
- Specified by:
setColorModelin interfaceImageConsumer
-
setDimensions
public void setDimensions(int width, int height) - Specified by:
setDimensionsin interfaceImageConsumer
-
setHints
public void setHints(int hintflags) - Specified by:
setHintsin interfaceImageConsumer
-
setPixels
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) - Specified by:
setPixelsin interfaceImageConsumer
-
setPixels
public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) - Specified by:
setPixelsin interfaceImageConsumer
-
setProperties
- Specified by:
setPropertiesin interfaceImageConsumer
-