| |
|
| java.lang.Object java.lang.Thread sun.awt.image.ImageFetcher
ImageFetcher | class ImageFetcher extends Thread (Code) | | An ImageFetcher is a thread used to fetch ImageFetchable objects.
Once an ImageFetchable object has been fetched, the ImageFetcher
thread may also be used to animate it if necessary, via the
startingAnimation() / stoppingAnimation() methods.
There can be up to FetcherInfo.MAX_NUM_FETCHERS_PER_APPCONTEXT
ImageFetcher threads for each AppContext. A per-AppContext queue
of ImageFetchables is used to track objects to fetch.
|
Method Summary | |
public static void | add(ImageFetchable src) Adds an ImageFetchable to the queue of items to fetch. | public static boolean | amFetcher() Checks to see if the current thread is one of the ImageFetchers. | public static boolean | isFetcher(Thread t) Checks to see if the given thread is one of the ImageFetchers. | public static void | remove(ImageFetchable src) Removes an ImageFetchable from the queue of items to fetch. | public void | run() The main run() method of an ImageFetcher Thread. | static void | startingAnimation() Recycles this ImageFetcher thread as an image animator thread. |
ANIM_PRIORITY | final static int ANIM_PRIORITY(Code) | | |
HIGH_PRIORITY | final static int HIGH_PRIORITY(Code) | | |
LOW_PRIORITY | final static int LOW_PRIORITY(Code) | | |
TIMEOUT | final static int TIMEOUT(Code) | | |
add | public static void add(ImageFetchable src)(Code) | | Adds an ImageFetchable to the queue of items to fetch. Instantiates
a new ImageFetcher if it's reasonable to do so.
|
amFetcher | public static boolean amFetcher()(Code) | | Checks to see if the current thread is one of the ImageFetchers.
|
isFetcher | public static boolean isFetcher(Thread t)(Code) | | Checks to see if the given thread is one of the ImageFetchers.
|
remove | public static void remove(ImageFetchable src)(Code) | | Removes an ImageFetchable from the queue of items to fetch.
|
run | public void run()(Code) | | The main run() method of an ImageFetcher Thread. Calls fetchloop()
to do the work, then removes itself from the array of ImageFetchers.
|
startingAnimation | static void startingAnimation()(Code) | | Recycles this ImageFetcher thread as an image animator thread.
Removes this ImageFetcher from the array of ImageFetchers, and
resets the thread name to "ImageAnimator".
|
|
|
|