| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlImageMapArea
HtmlImageMapArea | public class HtmlImageMapArea extends HtmlComponent (Code) | | This component is used to transform an HtmlImage object into an Html Image Map. An image map is like an image except that clicking or a particular area in the map will cause a link to be followed or a submit to be executed.
See Also: HtmlImage |
Constructor Summary | |
public | HtmlImageMapArea(String name, int centerX, int centerY, int radius) Use this constructor to create a circular shaped image map area. | public | HtmlImageMapArea(String name, int x1, int y1, int x2, int y2) Use this constructor to create a rectangular shaped image map area. | public | HtmlImageMapArea(String name, int x1, int y1, int x2, int y2, String href) Use this constructor to create a rectangular shaped image map area. | public | HtmlImageMapArea(String name, int centerX, int centerY, int radius, String href) Use this constructor to create a circular shaped image map area. |
AREA_CIRCLE | final public static int AREA_CIRCLE(Code) | | |
AREA_RECTANGLE | final public static int AREA_RECTANGLE(Code) | | |
HtmlImageMapArea | public HtmlImageMapArea(String name, int centerX, int centerY, int radius)(Code) | | Use this constructor to create a circular shaped image map area.
Parameters: name - The name of the component Parameters: centerX - The x position of the center of the area Parameters: centerY - The y position of the center of the area Parameters: radius - Radius of the circle |
HtmlImageMapArea | public HtmlImageMapArea(String name, int x1, int y1, int x2, int y2)(Code) | | Use this constructor to create a rectangular shaped image map area.
Parameters: name - The name of the component Parameters: x1 - Top left corner x position of the area Parameters: y1 - Top left corner y position of the area Parameters: x2 - Bottom right corner x position of the area Parameters: y2 - Bottom right corner y position of the area |
HtmlImageMapArea | public HtmlImageMapArea(String name, int x1, int y1, int x2, int y2, String href)(Code) | | Use this constructor to create a rectangular shaped image map area.
Parameters: name - The name of the component Parameters: x1 - Top left corner x position of the area Parameters: y1 - Top left corner y position of the area Parameters: x2 - Bottom right corner x position of the area Parameters: y2 - Bottom right corner y position of the area Parameters: href - The url of the page to open |
HtmlImageMapArea | public HtmlImageMapArea(String name, int centerX, int centerY, int radius, String href)(Code) | | Use this constructor to create a circular shaped image map area.
Parameters: name - The name of the component Parameters: centerX - The x position of the center of the area Parameters: centerY - The y position of the center of the area Parameters: radius - Radius of the circle Parameters: href - The url of the page to open |
addSubmitListener | public void addSubmitListener(SubmitListener l)(Code) | | This method adds a listener the will be notified when this button causes the page to be submitted.
Parameters: l - The listener to add. |
executeEvent | public boolean executeEvent(int eventType) throws Exception(Code) | | |
getHref | public String getHref()(Code) | | This gets the Href for the area. The link will be followed when the user clicks on the area.
|
getOnMouseOut | public String getOnMouseOut()(Code) | | This method gets the javascript that will be executed when the mouse leaves the area.
|
getOnMouseOver | public String getOnMouseOver()(Code) | | This method gets the javascript that will be executed when the mouse passes over the area.
|
getTarget | public String getTarget()(Code) | | This gets the target for the area. It specifies which frame will be used for the linked page.
|
removeSubmitListener | public void removeSubmitListener(SubmitListener l)(Code) | | This method removes a listener from the list that will be notified if this button causes the page to be submitted.
Parameters: l - The listener to remove. |
reset | public void reset()(Code) | | This method will clear all pending events from the event queue for this component and components it contains.
|
setCircularArea | public void setCircularArea(int centerX, int centerY, int radius)(Code) | | Sets the coordinates of a circular area of the image
Parameters: centerX - The x position of the center of the area Parameters: centerY - The y position of the center of the area Parameters: radius - Radius of the circle |
setHref | public void setHref(String hRef)(Code) | | This sets the Href for the area. The link will be followed when the user clicks on the area.
|
setHrefExpression | public void setHrefExpression(DataStoreBuffer ds, String expression) throws Exception(Code) | | This method creates an Href on the fly from the expression.
Parameters: ds - com.salmonllc.sql.DataStoreBuffer Parameters: expression - java.lang.String exception: java.lang.Exception - The exception description. |
setImage | public void setImage(HtmlImage img)(Code) | | Sets the image that this map will use
Parameters: img - com.salmonllc.html.HtmlImage |
setOnMouseOut | public void setOnMouseOut(String javaScript)(Code) | | This method sets the javascript that will be executed when the mouse leaves the area.
|
setOnMouseOver | public void setOnMouseOver(String javaScript)(Code) | | This method sets the javascript that will be executed when the mouse passes over the area.
|
setRectangularArea | public void setRectangularArea(int x1, int y1, int x2, int y2)(Code) | | Sets the coordinates of a rectangular area of the image
Parameters: x1 - Top left corner x position of the area Parameters: y1 - Top left corner y position of the area Parameters: x2 - Bottom right corner x position of the area Parameters: y2 - Bottom right corner y position of the area |
setTarget | public void setTarget(String target)(Code) | | This sets the target for the area. It specifies which frame will be used for the linked page.
|
|
|