|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.w3c.rdfpic.core.ImageLoader
Image loader is a class that places load requests for new images in a new thread so that the UI does not lock up when a file takes long to load. This also means that the user interface must take mesures to insure that no changes are applied while loading. (Though they should not cause any crashes in RdfPicCore).
Field Summary | |
(package private) RdfPicCore |
core
|
(package private) boolean |
quitNow
|
(package private) boolean |
syncNeeded
|
Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
Constructor Summary | |
ImageLoader(RdfPicCore core)
Creates a new ImageLoader. |
Method Summary | |
(package private) void |
quit()
Shuts down load thread. |
(package private) void |
reload()
Puts a load request. |
void |
run()
Starts the loading thread, in which load requests will later execute. |
private void |
sync()
Synchronizes image - finish loading. |
private void |
syncLoop()
Waits until something happens, process it, and start over... |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
RdfPicCore core
boolean syncNeeded
boolean quitNow
Constructor Detail |
public ImageLoader(RdfPicCore core)
core
- The core to interact with.Method Detail |
public void run()
private void syncLoop()
private void sync()
void quit()
void reload()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |