org.hisee.resource
Class ResourceManager

java.lang.Object
  |
  +--org.hisee.resource.ResourceManager

public class ResourceManager
extends java.lang.Object

Helper class to provide resources (stored in the same directory) to the rest of the program


Constructor Summary
ResourceManager()
           
 
Method Summary
static java.awt.Image getImage(java.lang.String name)
          Retrieve an Image based on its file name
static javax.swing.ImageIcon getImageIcon(java.lang.String name)
          Retrieve an ImageIcon based on its file name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceManager

public ResourceManager()
Method Detail

getImageIcon

public static javax.swing.ImageIcon getImageIcon(java.lang.String name)
Retrieve an ImageIcon based on its file name

Parameters:
name - name of the image file to retrieve
Returns:
the ImageIcon which can be used with Swing components, etc

getImage

public static java.awt.Image getImage(java.lang.String name)
Retrieve an Image based on its file name

Parameters:
name - name of the image file to retrieve
Returns:
the Image which can be used with Swing components, etc


for more information see hisee.sourceforge.net