Interface ImageGetter

All Known Implementing Classes:
SpaceGame

public interface ImageGetter

An interface for a class that can create and load iamges


Method Summary
 java.awt.Image createImage(int width, int height)
          Create a new image with the given dimensions
 java.awt.Image getIm(java.lang.String fileName)
          Get the file with the given filename from the filesystem.
 boolean prepareImage(java.awt.Image i, java.awt.image.ImageObserver io)
          Tell an image to start loading
 

Method Detail

getIm

java.awt.Image getIm(java.lang.String fileName)
Get the file with the given filename from the filesystem.

Parameters:
fileName - the filename
Returns:
the image

createImage

java.awt.Image createImage(int width,
                           int height)
Create a new image with the given dimensions

Parameters:
width - the width of the new Image
height - the height of the new Image
Returns:
the new Image

prepareImage

boolean prepareImage(java.awt.Image i,
                     java.awt.image.ImageObserver io)
Tell an image to start loading

Parameters:
i - the Image itself
io - an ImageObserver that watches
Returns:
true if the image is fully loaded