com.zwares.base.gui.images
Class ImageFactory

java.lang.Object
  |
  +--com.zwares.base.gui.images.ImageFactory

public class ImageFactory
extends java.lang.Object

Image factory used to return image icons from the images folder. This class uses Hashtable to store catche images that have already been loaded. This reduces the disk i/o time.


Constructor Summary
ImageFactory()
          Creates a new ImageFactory.
 
Method Summary
static javax.swing.ImageIcon getImageIcon(java.lang.String file)
          Static method used to return the image icon given the image file name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFactory

public ImageFactory()
Creates a new ImageFactory.

Method Detail

getImageIcon

public static javax.swing.ImageIcon getImageIcon(java.lang.String file)
Static method used to return the image icon given the image file name.