|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xj3d.ui.swt.widgets.ImageLoader
public class ImageLoader
A convenience class that loads Images for Xj3D's internal uses and provides a caching mechanism.
| Constructor Summary | |
|---|---|
ImageLoader()
|
|
| Method Summary | |
|---|---|
static void |
dispose()
Explicitly dispose of all images in the cache |
static void |
initializeCache(java.util.Map resourceMap)
Initialize the cache of loaded images from the argument map. |
static org.eclipse.swt.graphics.Image |
loadImage(org.eclipse.swt.widgets.Display display,
java.lang.String name,
ErrorReporter reporter)
Load an image for the named image file. |
| 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 initializeCache(java.util.Map resourceMap)
resourceMap - - A map containing images keyed by their path.
public static org.eclipse.swt.graphics.Image loadImage(org.eclipse.swt.widgets.Display display,
java.lang.String name,
ErrorReporter reporter)
name - The path name of the image to load the icon for. If not found,
no image is loaded.reporter - An error reporter to send error messages to
public static void dispose()
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||