uk.org.redfelineninja.image
Class ImageBank

java.lang.Object
  |
  +--uk.org.redfelineninja.image.ImageBank

public class ImageBank
extends java.lang.Object

This class is used to store Images until they are required. This is a useful tool in overcoming the difficulties of allowing a program to run as both an applet and an application. This class uses a static Hashtable internally and has a similar interface.


Constructor Summary
ImageBank()
           
 
Method Summary
static void clear()
           
static boolean containsKey(java.lang.Object key)
           
static java.util.Enumeration elements()
           
static java.awt.Image get(java.lang.Object key)
           
static boolean isEmpty()
           
static void put(java.lang.Object key, java.awt.Image pic)
           
static java.awt.Image remove(java.lang.Object key)
           
static int size()
           
static java.lang.String string()
          This would be called toString were the class not wholey static.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageBank

public ImageBank()
Method Detail

put

public static void put(java.lang.Object key,
                       java.awt.Image pic)

get

public static java.awt.Image get(java.lang.Object key)

size

public static int size()

isEmpty

public static boolean isEmpty()

elements

public static java.util.Enumeration elements()

containsKey

public static boolean containsKey(java.lang.Object key)

remove

public static java.awt.Image remove(java.lang.Object key)

clear

public static void clear()

string

public static java.lang.String string()
This would be called toString were the class not wholey static.