|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectImageLoader
public final class ImageLoader
$Id: ImageLoader.java 30649 2008-06-12 19:44:08Z acuster $
modules/library/render (gt-render.jar)
Constructor Summary | |
---|---|
ImageLoader()
|
Method Summary | |
---|---|
BufferedImage |
get(URL location,
boolean interactive)
Fetch a buffered image from the loader, if interactive is false then the loader will wait for the image to be available before returning, used by printers and file output renderers. |
static long |
getTimeout()
Returns the timeout for aborting an image loading sequence |
void |
reset()
Resets the image cache |
void |
run()
Runs the loading thread |
static void |
setTimeout(long newTimeout)
Sets the maximum time to wait for getting an external image. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageLoader()
Method Detail |
---|
public static long getTimeout()
public static void setTimeout(long newTimeout)
newTimeout
- the new timeout value in millisecondspublic BufferedImage get(URL location, boolean interactive)
location
- the url of the image to be fetchedinteractive
- boolean to signal if the loader should wait for the image to be ready.
public void run()
run
in interface Runnable
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |