|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.util.ImageLoader
public class ImageLoader
A convenience class that loads Icons for users and provides caching mechanisms.
Internationalisation Resource Names
Constructor Summary | |
---|---|
ImageLoader()
|
Method Summary | |
---|---|
static javax.swing.Icon |
loadIcon(java.lang.String name)
Load an icon for the named image file. |
static java.awt.Image |
loadImage(java.lang.String name)
Load an image for the named image file. |
static void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. |
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 setErrorReporter(ErrorReporter reporter)
reporter
- The instance to use or nullpublic static javax.swing.Icon loadIcon(java.lang.String name)
name
- The path to load the icon for. If not found,
no image is loaded.
public static java.awt.Image loadImage(java.lang.String name)
name
- The path to load the icon for. If not found,
no image is loaded.
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |