Class ImageLoader

Class ImageLoader

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

public class ImageLoader
extends Object
A class that uses a MediaTracker to load pictures given via the methods add(). Usage in an applet-security-environment assumed.
Version:
1.0
Author:
Torbjörn Nilsson

Constructor Index

 o ImageLoader(String)
Give the name of a host, so every picture URL can be transformed into a new URL with that host as address of the server.

Method Index

 o add(String)
Add the given URL to list of pics this ImageLoader should try loading.
 o loadAllImages()
Wait for all images added with add() to be loaded, then return call.
 o main(String[])
For test purposes.

Constructors

 o ImageLoader
  public ImageLoader(String hostname)
Give the name of a host, so every picture URL can be transformed into a new URL with that host as address of the server.

Methods

 o add
  public Image add(String url)
Add the given URL to list of pics this ImageLoader should try loading. Convert WWW-server name of URL to the host given in the contructor.
 o loadAllImages
  public void loadAllImages()
Wait for all images added with add() to be loaded, then return call.
 o main
  public static void main(String a[])
For test purposes.