| java.lang.Object org.geotools.renderer.style.ImageLoader
ImageLoader | class ImageLoader implements Runnable(Code) | | $Id: ImageLoader.java 27862 2007-11-12 19:51:19Z desruisseaux $
author: Ian Turton |
Method Summary | |
public 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. | public static long | getTimeout() | public void | reset() | public void | run() | public static void | setTimeout(long newTimeout) Sets the maximum time to wait for getting an external image. |
get | public BufferedImage get(URL location, boolean interactive)(Code) | | 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. If interactive is true and the image is ready then return, if image is not ready
start loading it and return null. The renderer is responsible for finding an alternative
to use.
Parameters: location - the url of the image to be fetched Parameters: interactive - boolean to signal if the loader should wait for the image to be ready. the buffered image or null |
getTimeout | public static long getTimeout()(Code) | | Returns the timeout for aborting an image loading sequence
the timeout in milliseconds |
reset | public void reset()(Code) | | Resets the image cache
|
run | public void run()(Code) | | Runs the loading thread
|
setTimeout | public static void setTimeout(long newTimeout)(Code) | | Sets the maximum time to wait for getting an external image. Set it to -1 to wait
undefinitely
Parameters: newTimeout - the new timeout value in milliseconds |
|
|