MediaTracker.waitForAll

MediaTracker.waitForAll

Class Overview | Class Members | This Package | All Packages

Syntax 1
public void waitForAll() throws InterruptedException
Description
Starts loading all images tracked by this media tracker. This method waits until all the images being tracked have finished loading.

If there is an error while loading or scaling an image, then that image is considered to have finished loading. Use the isErrorAny or isErrorID methods to check for errors.

Exceptions
InterruptedException if another thread has interrupted this thread.
See Also
waitForID, waitForAll, isErrorAny, isErrorID



Syntax 2
public synchronized boolean waitForAll( long ms ) throws InterruptedException
Parameters
ms
the number of milliseconds to wait for the loading to complete.
Returns
true if all images were successfully loaded; false otherwise.
Description
Starts loading all images tracked by this media tracker. This method waits until all the images being tracked have finished loading, or until the length of time specified in milliseconds by the ms argument has passed.

If there is an error while loading or scaling an image, then that image is considered to have finished loading. Use the isErrorAny or isErrorID methods to check for errors.

Exceptions
InterruptedException if another thread has interrupted this thread.
See Also
waitForID, waitForAll, isErrorAny, isErrorID