org.simbrain.resource
Class ResourceManager

java.lang.Object
  extended by org.simbrain.resource.ResourceManager

public class ResourceManager
extends Object

ResourceManager provides resources (stored in the same directory) to the rest of the program.


Constructor Summary
ResourceManager()
           
 
Method Summary
static Image getImage(String name)
          Retrieve an Image based on its file name.
static ImageIcon getImageIcon(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 ImageIcon getImageIcon(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 Image getImage(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