imageUpdateOverpublic class imageUpdateOver extends Applet
Fields Summary |
---|
Image | image | boolean | loaded |
Methods Summary |
---|
public synchronized boolean | imageUpdate(java.awt.Image image, int infoFlags, int x, int y, int width, int height)
if ((infoFlags & ImageObserver.ALLBITS) != 0) {
loaded = true;
repaint();
return false;
} else {
return true;
}
| public void | init()
image = getImage (getDocumentBase(), "rosey.jpg");
prepareImage (image, -1, -1, this);
| public void | paint(java.awt.Graphics g)
if (loaded)
g.drawImage (image, 0, 0, this);
| public void | update(java.awt.Graphics g)
paint (g);
|
|