net.lenkaspace.creeper.images
Class CRImageProvider

java.lang.Object
  extended by net.lenkaspace.creeper.images.CRImageProvider

public class CRImageProvider
extends java.lang.Object

Loads images from the same folder where it is placed. Maintains a list of loaded images and provides images to other classes. Needs to be subclassed and the subclass placed to a folder where a project contains its own images.

Version:
2.0
Author:
Lenka Pitonakova contact@lenkaspace.net

Constructor Summary
CRImageProvider()
           
 
Method Summary
 java.awt.image.BufferedImage getImage(java.lang.String imageFileName)
          Get an image from the folder where this class (or its sublclass) is located
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRImageProvider

public CRImageProvider()
Method Detail

getImage

public java.awt.image.BufferedImage getImage(java.lang.String imageFileName)
Get an image from the folder where this class (or its sublclass) is located

Parameters:
imageFileName - String file name of the image, including its extension
Returns:
BufferedImage image