us.zuercher.gpx2map.image.generic
Class GenericImageFactory.DrawingObserver
java.lang.Object
us.zuercher.gpx2map.image.generic.GenericImageFactory.Observer
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericImageFactory.DrawingObserver
private GenericImageFactory.DrawingObserver()
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 timeinfoflags
- informational flagsx
- unusedy
- unusedwidth
- not usedheight
- not used
- Returns:
- true until the image has been drawn completely