netwar.utils
Class LoadImage

java.lang.Object
  |
  +--netwar.utils.LoadImage

public class LoadImage
extends java.lang.Object

A utility class to load images from the JAR file. All images must be located in the /media/ folder.

Author:
Kyle Kakligian

Constructor Summary
LoadImage()
          Constructor.
 
Method Summary
static java.awt.Image LoadWaitForImage(java.lang.String filename)
          Loads an image and does not return until it is finished loading.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadImage

public LoadImage()
Constructor.
Method Detail

LoadWaitForImage

public static java.awt.Image LoadWaitForImage(java.lang.String filename)
Loads an image and does not return until it is finished loading. (or until an exception)
Parameters:
filename - A string file name reletive to the /media/ directory in the JAR file.
Returns:
An Image or null.