|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectImageCache
public class ImageCache
A class to hold images and insure they aren't pulled off the hard drive (or the internet) more than once
| Field Summary | |
|---|---|
protected static ImageGetter |
imageMaster
|
| Constructor Summary | |
|---|---|
ImageCache()
|
|
| Method Summary | |
|---|---|
static java.awt.Image |
getIm(java.lang.String fileName)
Gets the image described by the fileName. |
static void |
setExtension(java.lang.String ex)
Change the extension to add onto filenames |
static void |
setImageGetter(ImageGetter _imageMaster)
Set the ImageGetter so that we may start loading images |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ImageGetter imageMaster
| Constructor Detail |
|---|
public ImageCache()
| Method Detail |
|---|
public static java.awt.Image getIm(java.lang.String fileName)
fileName - the fileName of the image
public static void setImageGetter(ImageGetter _imageMaster)
_imageMaster - The ImageGetterpublic static void setExtension(java.lang.String ex)
ex - the new extension
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||