|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.ui.standard.ImageLoader
public class ImageLoader
This is a static class that acts as a helper to load Images for use in the UI. It is based on loading the resource form the class path via the ClassLoader assuming all the Images to load a GIF. However other alternative strategies can be easily implemented within this class.
| Field Summary | |
|---|---|
static java.lang.String |
IMAGE_DIR
Sub-directory/package for the images |
| Method Summary | |
|---|---|
static javax.swing.ImageIcon |
getIcon(java.lang.String name)
Load the image icon with the specified name. |
static java.awt.Image |
getImage(java.lang.String imagename)
Get an image with the specified name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String IMAGE_DIR
| Method Detail |
|---|
public static javax.swing.ImageIcon getIcon(java.lang.String name)
name - Name of the image to load.
public static java.awt.Image getImage(java.lang.String imagename)
imagename - Name of image including suffix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||