|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--gamingtools.ImageSource
The ImageSource class provides methods for loading images.
All methods of this class are static.
| Field Summary | |
static String |
IMAGES_DIR
Location of the image files relative to the root package. |
| Method Summary | |
static Image |
getImage(String fileName)
Loads an image with the specified name from the images directory. |
static Image[] |
getImages(String[] names,
String suffix)
Loads an array of images with the specified names. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String IMAGES_DIR
| Method Detail |
public static Image[] getImages(String[] names,
String suffix)
names to the
suffix (i.e. names[i] + suffix). The suffix
can simply be the file extension.
names - Names of the files without the suffix.suffix - Examples, ".gif" or "_board3.gif".
public static Image getImage(String fileName)
fileName - Include a path relative to the images directory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||