Class ImageLoadWorker

java.lang.Object
java.lang.Thread
org.xhtmlrenderer.swing.ImageLoadWorker
All Implemented Interfaces:
Runnable

class ImageLoadWorker extends Thread
A background thread (daemon, low priority) which reads BackgroundImageLoaderItem from a BackgroundImageQueue and loads the images into memory. Once images have loaded, the item's MutableFSImage will receive the newly loaded image via setImage(newImage). Images, once loaded, are always BufferedImages and will always be compatible with the current screen's graphics configuration. If an image cannot be loaded (network failure), a 1 x 1 pixel image will be returned instead and the problem will be logged.
  • Field Details

  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread