8 package org.bitstorm.util;
10 import java.awt.Canvas;
11 import java.awt.Dimension;
12 import java.awt.Graphics;
13 import java.awt.Image;
14 import java.awt.MediaTracker;
15 import java.awt.image.ImageObserver;
43 MediaTracker tracker =
new MediaTracker(
this );
44 tracker.addImage( image, 0 );
47 tracker.waitForID(0, 3000);
48 }
catch (InterruptedException e) {
59 g.drawImage( image, 0, 0,
this );
68 return new Dimension( image.getWidth(
this ), image.getHeight(
this ) );
75 public boolean imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height) {
76 boolean isImageRead = ( infoflags & ImageObserver.ALLBITS ) != 0;
boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
Dimension getPreferredSize()
ImageComponent(Image image)