com.birosoft.liquid.skin
Class SkinImageCache

java.lang.Object
  extended by com.birosoft.liquid.skin.SkinImageCache

public class SkinImageCache
extends java.lang.Object

A cache for the skin images. It is used as a singleton.


Constructor Summary
protected SkinImageCache()
           
 
Method Summary
 java.awt.Image getAutomaticImage(java.lang.String fileName)
          Loads the image file with fileName fileName as an automatic image.
 java.awt.image.BufferedImage getBufferedImage(java.lang.String fileName)
          Loads the image file with fileName fileName as an buffered image.
 java.awt.Image getImage(java.lang.String fileName)
          Loads the image file with fileName fileName.
static SkinImageCache getInstance()
          Returns the only instance of the image cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkinImageCache

protected SkinImageCache()
Method Detail

getAutomaticImage

public java.awt.Image getAutomaticImage(java.lang.String fileName)
Loads the image file with fileName fileName as an automatic image. For images with bitmask transparency or no transparency the image should be hardware accelerated.

Parameters:
fileName - the file name of the image file to load
Returns:
Image

getImage

public java.awt.Image getImage(java.lang.String fileName)
Loads the image file with fileName fileName.

Parameters:
fileName - the file name of the image file to load
Returns:
Image

getBufferedImage

public java.awt.image.BufferedImage getBufferedImage(java.lang.String fileName)
Loads the image file with fileName fileName as an buffered image. This is basically not hardware accelerated.

Parameters:
fileName - the file name of the image file to load
Returns:
Image

getInstance

public static SkinImageCache getInstance()
Returns the only instance of the image cache

Returns:
SkinImageCache