swingwt.awt
Class MediaTracker
java.lang.Object
swingwt.awt.MediaTracker
- public class MediaTracker
- extends java.lang.Object
Basic MediaTracker support. Note that this is really
a compatibility class, since SwingWT image IO is blocking
and the request to load an image does not return until
the image is loaded.
Method Summary |
void |
addImage(Image image,
int id)
|
void |
addImage(Image image,
int id,
int w,
int h)
|
boolean |
checkAll()
|
boolean |
checkAll(boolean load)
|
boolean |
checkID(int id,
boolean load)
|
java.lang.Object[] |
getErrorsAny()
|
java.lang.Object[] |
getErrorsID(int id)
|
boolean |
isErrorAny()
|
boolean |
isErrorID(int id)
|
void |
removeImage(Image image)
|
void |
removeImage(Image image,
int id)
|
void |
removeImage(Image image,
int id,
int width,
int height)
|
int |
statusAll(boolean load)
|
int |
statusID(int id,
boolean load)
|
void |
waitForAll()
|
boolean |
waitForAll(long ms)
|
void |
waitForID(int id)
|
boolean |
waitForID(int id,
long ms)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOADING
public static final int LOADING
- See Also:
- Constant Field Values
ABORTED
public static final int ABORTED
- See Also:
- Constant Field Values
ERRORED
public static final int ERRORED
- See Also:
- Constant Field Values
COMPLETE
public static final int COMPLETE
- See Also:
- Constant Field Values
MediaTracker
public MediaTracker(Component comp)
addImage
public void addImage(Image image,
int id)
addImage
public void addImage(Image image,
int id,
int w,
int h)
checkAll
public boolean checkAll()
checkAll
public boolean checkAll(boolean load)
isErrorAny
public boolean isErrorAny()
getErrorsAny
public java.lang.Object[] getErrorsAny()
waitForAll
public void waitForAll()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitForAll
public boolean waitForAll(long ms)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
statusAll
public int statusAll(boolean load)
checkID
public boolean checkID(int id,
boolean load)
isErrorID
public boolean isErrorID(int id)
getErrorsID
public java.lang.Object[] getErrorsID(int id)
waitForID
public void waitForID(int id)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitForID
public boolean waitForID(int id,
long ms)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
statusID
public int statusID(int id,
boolean load)
removeImage
public void removeImage(Image image)
removeImage
public void removeImage(Image image,
int id)
removeImage
public void removeImage(Image image,
int id,
int width,
int height)