All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fi.helsinki.cs.MapDrawer.MapDrawer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----fi.helsinki.cs.MapDrawer.MapDrawer

public class MapDrawer
extends Applet

Variable Index

 o images

Constructor Index

 o MapDrawer()

Method Index

 o error(String)
Displays and records error messages.
 o gIcon(String)
Static cache for images.
 o init()
 o paint(Graphics)
Draws error messages if any, else draws the map (from cur).
 o parseClick(int, int)
Called by the mouse listener to parse clicks.

Variables

 o images
 public static Hashtable images

Constructors

 o MapDrawer
 public MapDrawer()

Methods

 o init
 public void init()
Overrides:
init in class Applet
 o parseClick
 public void parseClick(int x,
                        int y)
Called by the mouse listener to parse clicks.

 o paint
 public void paint(Graphics g)
Draws error messages if any, else draws the map (from cur).

Overrides:
paint in class Container
 o gIcon
 public static Image gIcon(String name)
Static cache for images.

Parameters:
name - the name of the image to fetch.
Returns:
a reference to the new image object.
 o error
 public static void error(String errormsg)
Displays and records error messages.


All Packages  Class Hierarchy  This Package  Previous  Next  Index