org.simbrain.resource
Class ResourceManager
java.lang.Object
org.simbrain.resource.ResourceManager
public class ResourceManager
- extends Object
ResourceManager provides resources (stored in the same directory)
to the rest of the program.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceManager
public ResourceManager()
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