All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class picture.ImageLoader

java.lang.Object
   |
   +----picture.ImageLoader

public class ImageLoader
extends Object
implements Runnable
ImageLoader is the superclass for various image loaders. In particular the BMP and TGA ImageLoader classes. Classes from http://village.ch/~schoen/


Variable Index

 o debug
 o framebuffer
 o imagefile
 o imageLoaded
 o myProd
 o newImage
 o xres
 o yres

Constructor Index

 o ImageLoader()

Method Index

 o Debug(boolean)
 o GetInfo()
 o InitFramebuffer(int, int)
 o Load(String, Component)
 o Load(URL, Component)
 o LoadPic()
 o Print(String)
 o ReadHeader()
 o run()
 o Sleep(int)
 o start()

Variables

 o imageLoaded
 public boolean imageLoaded
 o newImage
 public Image newImage
 o framebuffer
 protected int framebuffer[]
 o imagefile
 protected FileInput imagefile
 o debug
 protected boolean debug
 o xres
 protected int xres
 o yres
 protected int yres
 o myProd
 protected ImageLoaderProducer myProd

Constructors

 o ImageLoader
 public ImageLoader()

Methods

 o ReadHeader
 protected void ReadHeader() throws IOException, UnsupportedFormatException, WrongFileFormatException
 o LoadPic
 protected void LoadPic() throws IOException, UnsupportedFormatException, WrongFileFormatException
 o GetInfo
 public String GetInfo()
 o InitFramebuffer
 public final void InitFramebuffer(int w,
                                   int h)
 o Load
 public Image Load(URL picfile,
                   Component target) throws NoSuchLoaderException
 o Load
 public Image Load(String picfile,
                   Component target) throws NoSuchLoaderException
 o Print
 protected final void Print(String txt)
 o Debug
 public final void Debug(boolean flag)
 o Sleep
 protected final void Sleep(int sec)
 o run
 public void run()
 o start
 public void start()

All Packages  Class Hierarchy  This Package  Previous  Next  Index