|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.engine.resource.modules.ResourceModule
vooga.engine.resource.modules.ImageModule
public class ImageModule
ResourceModule designed to track Images which are stored as BufferedImages. Depends on the Game class to load image files as BufferedImages.
Constructor Summary | |
---|---|
ImageModule()
|
Method Summary | |
---|---|
void |
clearElements()
Clears the current resource map. |
java.awt.image.BufferedImage |
getImage(java.lang.String key)
|
void |
loadElements(java.util.Collection<org.w3c.dom.Element> elements)
Adds Elements to the resource map. |
void |
loadImage(java.lang.String key,
java.io.File file)
Puts a new entry into this Resources's imageMap, with a String key and a BufferedImage[] value. |
void |
loadImage(java.lang.String key,
java.lang.String filePath)
Puts a new entry into this Resources's imageMap, with a String key and a BufferedImage[] value. |
Methods inherited from class vooga.engine.resource.modules.ResourceModule |
---|
getDefaultPath, getGame, setDefaultPath, setGame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageModule()
Method Detail |
---|
public void loadElements(java.util.Collection<org.w3c.dom.Element> elements)
ResourceModule
loadElements
in class ResourceModule
elements
- Elements of the parsed XML document to be addedpublic void loadImage(java.lang.String key, java.io.File file)
public void loadImage(java.lang.String key, java.lang.String filePath)
public java.awt.image.BufferedImage getImage(java.lang.String key)
public void clearElements()
ResourceModule
clearElements
in class ResourceModule
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |