public class ImageManager extends Object
| Modifier and Type | Method and Description |
|---|---|
ImageIcon |
getCachedImage(String name)
Get the
ImageIcon if it is available in the cache. |
ClassLoader |
getClassLoader()
Gets the class loader for resources, null for none (i.e.
|
ImageIcon |
getImage(String name)
Gets a cached image from the resource URL.
|
ImageIcon |
getImage(String name,
boolean keepInCache)
Gets a [cached] image from the resource URL.
|
ImageIcon |
getImage(URL url,
boolean keepInCache)
Gets a [cached] image from the resource URL.
|
ImageIcon |
getImage(URL url,
String name,
boolean keepInCache)
Gets a [cached] image from the resource URL.
|
URL |
getResourceURL()
Gets the resource URL.
|
void |
setResourceURL(String resDir)
Sets the resource URL.
|
void |
setTemporaryResourceURL(String resDir)
Sets a temporary relative resource URL.
|
public void setTemporaryResourceURL(String resDir)
public void setResourceURL(String resDir)
If the resource URL contains the tag "@**SERVER@", the tag will be substituted with the host name for the host currently used. This makes it possible to have the resource URL follow to a backup server and load balancing.
If the resource URL contains the tag "@**PORT@", the tag will be substituted with the port number for the host currently used. This makes it possible to have the resource URL follow to a backup server and load balancing.
resDir - The resource URL.public ClassLoader getClassLoader()
public URL getResourceURL()
public ImageIcon getImage(URL url, boolean keepInCache)
public ImageIcon getImage(URL url, String name, boolean keepInCache)
public ImageIcon getCachedImage(String name)
ImageIcon if it is available in the cache.name - Phantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.