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
-
HtmlImageMap(String)
- Create new client side image map, with specified name.
-
HtmlImageMap(String, String)
- Create new client side image map, with specified source and name.
-
HtmlImageMap(String, String, String)
- Create new client side image map, with specified source attributes, and name.
-
addArea(String, String)
- Add area to map.
-
addArea(String, String, String)
- Add shaped area to map.
-
toString()
-
-
wrap(String)
-
-
write(OutputStream)
-
HtmlImageMap
public HtmlImageMap(String name)
- Create new client side image map, with specified name.
- Parameters:
- name - the name to use with this map
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
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
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
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
wrap
public void wrap(String tags)
write
public void write(OutputStream out) throws IOException
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index