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
-
images
-
-
MapDrawer()
-
-
error(String)
- Displays and records error messages.
-
gIcon(String)
-
Static cache for images.
-
init()
-
-
paint(Graphics)
- Draws error messages if any, else draws the map (from cur).
-
parseClick(int, int)
- Called by the mouse listener to parse clicks.
images
public static Hashtable images
MapDrawer
public MapDrawer()
init
public void init()
- Overrides:
- init in class Applet
parseClick
public void parseClick(int x,
int y)
- Called by the mouse listener to parse clicks.
paint
public void paint(Graphics g)
- Draws error messages if any, else draws the map (from cur).
- Overrides:
- paint in class Container
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.
error
public static void error(String errormsg)
- Displays and records error messages.
All Packages Class Hierarchy This Package Previous Next Index