|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jogre.client.awt.GameImages
Contains a list of images for a particular game. These images should work on both applications and applets.
Method Summary | |
static void |
addImage(String path,
int imageSize)
Method to add images. |
Object |
clone()
|
static void |
finishedLoaded()
Set true that this class has finished loading. |
static Image |
getImage(int index)
Return a image from a specified index. |
static ImageIcon |
getImageIcon(int index)
Return an image icon from a specified index. |
static GameImages |
getInstance()
Return an instance of the GameImages class. |
static boolean |
isFinishedLoading()
Inform if the images have finished loading. |
protected ImageIcon |
loadImageFromJar(String imagePath,
int imageSize)
Load image from the jar file. |
static void |
loadImages()
Method to load the images (simply calls singleton constructor). |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void loadImages()
public static GameImages getInstance()
public Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public static void addImage(String path, int imageSize)
protected ImageIcon loadImageFromJar(String imagePath, int imageSize)
public static Image getImage(int index)
index
- Index of image to return.
public static ImageIcon getImageIcon(int index)
index
- Index of image to return.
public static boolean isFinishedLoading()
public static void finishedLoaded()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |