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
-
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.
-
add(String)
- Add the given URL to list of pics this ImageLoader should try loading.
-
loadAllImages()
- Wait for all images added with add() to be loaded, then return call.
-
main(String[])
- For test purposes.
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.
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.
loadAllImages
public void loadAllImages()
- Wait for all images added with add() to be loaded, then return call.
main
public static void main(String a[])
- For test purposes.