All Packages Class Hierarchy This Package Previous Next Index
Class applets.imagemap.ImageMap
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----applets.imagemap.ImageMap
- public class ImageMap
- extends Applet
ImageMap is a java-based clickable image. The image consists of various "hot-spots" or "buttons" which
can change state when pressed, and which blink while the browser loads a specified URL. The hotspots can
be rectangular or polygonal, and their positions are passed to the applet by parameters, as shown in the example
below. The applet also needs to be passed parameters which point to two images of the clickable image; one in
which all the hotspots are active, and one in which they are all inactive. The applet below was constructed with the following information:
-
ImageMap()
-
-
init()
-
-
mouseDown(Event, int, int)
-
-
mouseDrag(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
paint(Graphics)
-
-
stop()
-
-
update(Graphics)
-
ImageMap
public ImageMap()
init
public void init()
- Overrides:
- init in class Applet
stop
public void stop()
- Overrides:
- stop in class Applet
update
public void update(Graphics g)
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
mouseDown
public boolean mouseDown(Event e,
int x,
int y)
- Overrides:
- mouseDown in class Component
mouseDrag
public boolean mouseDrag(Event e,
int x,
int y)
- Overrides:
- mouseDrag in class Component
mouseUp
public boolean mouseUp(Event e,
int x,
int y)
- Overrides:
- mouseUp in class Component
All Packages Class Hierarchy This Package Previous Next Index