Class MyTracker

  • All Implemented Interfaces:
    java.awt.image.ImageObserver

    class MyTracker
    extends java.lang.Object
    implements java.awt.image.ImageObserver
    Image tracker. I'm not sure why I'm not using the default Java image tracker for this one.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean done  
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Constructor Summary

      Constructors 
      Constructor Description
      MyTracker​(java.awt.Image img)
      create a new MyTracker that watches this image.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean imageUpdate​(java.awt.Image img, int infoflags, int x, int y, int width, int height)
      More information has come in about the image.
      void waitForAll()
      Wait until the image is done, then return.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • done

        boolean done
    • Constructor Detail

      • MyTracker

        public MyTracker​(java.awt.Image img)
        create a new MyTracker that watches this image. The image will start loading immediately.
    • Method Detail

      • imageUpdate

        public boolean imageUpdate​(java.awt.Image img,
                                   int infoflags,
                                   int x,
                                   int y,
                                   int width,
                                   int height)
        More information has come in about the image.
        Specified by:
        imageUpdate in interface java.awt.image.ImageObserver
      • waitForAll

        public void waitForAll()
        Wait until the image is done, then return.