|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.util.ImageLoader
Loads an image from a file/resource Hopefully it works regardless of the packaging. It also caches the icons, returning only one instance of the same icon.
| Constructor Summary | |
ImageLoader()
Creates a new image loader. |
|
| Method Summary | |
static ImageIcon |
loadIcon(String name)
Convenience method that automatically creates an ImageLoader instance |
ImageIcon |
loadImage(String name)
Loads an image |
static void |
loadMap(String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageLoader()
| Method Detail |
public static void loadMap(String name)
public ImageIcon loadImage(String name)
name - The URI of the image to be loaded
public static ImageIcon loadIcon(String name)
name - The URI of the image to be loaded
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||