| Method from java.awt.ImageMediaEntry Detail: |
Object getMedia() {
return image;
}
|
synchronized int getStatus(boolean doLoad,
boolean doVerify) {
if (doVerify) {
int flags = tracker.target.checkImage(image, width, height, null);
int s = parseflags(flags);
if (s == 0) {
if ((status & (ERRORED | COMPLETE)) != 0) {
setStatus(ABORTED);
}
} else if (s != status) {
setStatus(s);
}
}
return super.getStatus(doLoad, doVerify);
}
|
public boolean imageUpdate(Image img,
int infoflags,
int x,
int y,
int w,
int h) {
if (cancelled) {
return false;
}
int s = parseflags(infoflags);
if (s != 0 && s != status) {
setStatus(s);
}
return ((status & LOADING) != 0);
}
|
boolean matches(Image img,
int w,
int h) {
return (image == img && width == w && height == h);
}
|
int parseflags(int infoflags) {
if ((infoflags & ERROR) != 0) {
return ERRORED;
} else if ((infoflags & ABORT) != 0) {
return ABORTED;
} else if ((infoflags & (ALLBITS | FRAMEBITS)) != 0) {
return COMPLETE;
}
return 0;
}
|
void startLoad() {
if (tracker.target.prepareImage(image, width, height, this)) {
setStatus(COMPLETE);
}
}
|