|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.Component org.apache.wicket.MarkupContainer org.apache.wicket.markup.html.WebMarkupContainer org.apache.wicket.markup.html.panel.Panel org.apache.wicket.markup.html.link.ClientSideImageMap
public class ClientSideImageMap
A client-side image map implementation which allows you to "attach" the map to any existing
Image
component.
Field Summary |
---|
Fields inherited from class org.apache.wicket.markup.html.panel.Panel |
---|
PANEL |
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
ClientSideImageMap(String id,
Image image)
Constructs a client-side image map which is "attached" to the given Image component. |
Method Summary | |
---|---|
ClientSideImageMap |
addCircleArea(AbstractLink link,
int x,
int y,
int radius)
Adds a circle-shaped area centered at (x,y) with radius r. |
ClientSideImageMap |
addPolygonArea(AbstractLink link,
int... coordinates)
Adds a polygon-shaped area defined by coordinates. |
ClientSideImageMap |
addRectangleArea(AbstractLink link,
int x1,
int y1,
int x2,
int y2)
Adds a rectangular-shaped area. |
ClientSideImageMap |
addShapeArea(AbstractLink link,
Shape shape)
Adds an area defined by a shape object. |
String |
newChildId()
Generates a unique id string. |
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag. |
Methods inherited from class org.apache.wicket.markup.html.panel.Panel |
---|
newMarkupSourcingStrategy |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebPage, getWebRequest, getWebResponse, getWebSession |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClientSideImageMap(String id, Image image)
Image
component.
id
- the component idimage
- the image componentMethod Detail |
---|
protected void onComponentTag(ComponentTag tag)
Component
onComponentTag
in class Component
tag
- Tag to modifypublic String newChildId()
public ClientSideImageMap addCircleArea(AbstractLink link, int x, int y, int radius)
link
- the linkx
- x coordinate of the center of the circley
- y coordinate of centerradius
- the radius
public ClientSideImageMap addPolygonArea(AbstractLink link, int... coordinates)
link
- the linkcoordinates
- the coordinates for the polygon
public ClientSideImageMap addRectangleArea(AbstractLink link, int x1, int y1, int x2, int y2)
link
- the linkx1
- top left xy1
- top left yx2
- bottom right xy2
- bottom right y
public ClientSideImageMap addShapeArea(AbstractLink link, Shape shape)
link
- the linkshape
- the shape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |