us.zuercher.gpx2map.image.generic
Class GenericImageFactory.DrawingObserver

java.lang.Object
  extended by us.zuercher.gpx2map.image.generic.GenericImageFactory.Observer
      extended by us.zuercher.gpx2map.image.generic.GenericImageFactory.DrawingObserver
All Implemented Interfaces:
ImageObserver
Enclosing class:
GenericImageFactory

private static class GenericImageFactory.DrawingObserver
extends GenericImageFactory.Observer
implements ImageObserver

DrawingObserver is an ImageObserver that allows callers to wait for the drawing of an image to complete.


Field Summary
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
private GenericImageFactory.DrawingObserver()
           
 
Method Summary
 boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
          Implements ImageObserver.imageUpdate(Image, int, int, int, int, int).
 
Methods inherited from class us.zuercher.gpx2map.image.generic.GenericImageFactory.Observer
observationComplete, waitOnObservation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericImageFactory.DrawingObserver

private GenericImageFactory.DrawingObserver()
Method Detail

imageUpdate

public boolean imageUpdate(Image img,
                           int infoflags,
                           int x,
                           int y,
                           int width,
                           int height)
Implements ImageObserver.imageUpdate(Image, int, int, int, int, int). Call GenericImageFactory.Observer.waitOnObservation() to wait for the image to be drawn.

Specified by:
imageUpdate in interface ImageObserver
Parameters:
img - the image, not used since JavaConverter loads a single image at a time
infoflags - informational flags
x - unused
y - unused
width - not used
height - not used
Returns:
true until the image has been drawn completely