Class ImageLoader

java.lang.Object
noaa.coastwatch.gui.ImageLoader
All Implemented Interfaces:
ImageConsumer

public class ImageLoader extends Object implements 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
  • Constructor Details

    • ImageLoader

      public ImageLoader(Image image, ImageLoaderObserver observer)
      Creates a new image loader for the specified image.
  • Method Details

    • getDims

      public Dimension 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:
      imageComplete in interface ImageConsumer
    • setColorModel

      public void setColorModel(ColorModel model)
      Specified by:
      setColorModel in interface ImageConsumer
    • setDimensions

      public void setDimensions(int width, int height)
      Specified by:
      setDimensions in interface ImageConsumer
    • setHints

      public void setHints(int hintflags)
      Specified by:
      setHints in interface ImageConsumer
    • setPixels

      public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
      Specified by:
      setPixels in interface ImageConsumer
    • setPixels

      public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
      Specified by:
      setPixels in interface ImageConsumer
    • setProperties

      public void setProperties(Hashtable props)
      Specified by:
      setProperties in interface ImageConsumer