Class java.servlet.html.HtmlImageMap
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.servlet.html.HtmlImageMap

java.lang.Object
   |
   +----java.servlet.html.HtmlImageMap

public class HtmlImageMap
extends Object
implements HtmlElement
Utility class for generating client side image map html

Constructor Index

 o HtmlImageMap(String)
Create new client side image map, with specified name.
 o HtmlImageMap(String, String)
Create new client side image map, with specified source and name.
 o HtmlImageMap(String, String, String)
Create new client side image map, with specified source attributes, and name.

Method Index

 o addArea(String, String)
Add area to map.
 o addArea(String, String, String)
Add shaped area to map.
 o toString()
 o wrap(String)
 o write(OutputStream)

Constructors

 o HtmlImageMap
  public HtmlImageMap(String name)
Create new client side image map, with specified name.
Parameters:
name - the name to use with this map
 o HtmlImageMap
  public HtmlImageMap(String src,
                      String name)
Create new client side image map, with specified source and name.
Parameters:
src - url to the image to use for this image map
name - the name of this map
 o HtmlImageMap
  public HtmlImageMap(String src,
                      String attribs,
                      String name)
Create new client side image map, with specified source attributes, and name.
Parameters:
src - url to the image to use for this image map
attribs - attributes to use within the image tag
name - the name of this map

Methods

 o addArea
  public void addArea(String coords,
                      String href)
Add area to map.
Parameters:
coords - x1,y1,x2,y2
href - where to link this region to
 o addArea
  public void addArea(String shape,
                      String coords,
                      String href)
Add shaped area to map.
Parameters:
shape - the shape of this region
coords - ie. x1,y1,x2,y2
href - where to link this region to
 o wrap
  public void wrap(String tags)
 o write
  public void write(OutputStream out) throws IOException
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index