|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.link.ImageMap
public final class ImageMap
An image map holds links with different hot-area shapes.
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
ImageMap(java.lang.String id)
Constructor. |
Method Summary | |
---|---|
ImageMap |
addCircleLink(int x1,
int y1,
int radius,
Link<?> link)
Adds a circle link. |
ImageMap |
addPolygonLink(int[] coordinates,
Link<?> link)
Adds a polygon link. |
ImageMap |
addRectangleLink(int x1,
int y1,
int x2,
int y2,
Link<?> link)
Adds a rectangular link. |
protected void |
onRender()
Implementation that renders this component. |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupStream, getMarkupType, hasAssociatedMarkup, internalAdd, iterator, iterator, onComponentTagBody, onMarkupAttached, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImageMap(java.lang.String id)
id
- See ComponentMethod Detail |
---|
public ImageMap addCircleLink(int x1, int y1, int radius, Link<?> link)
x1
- top left xy1
- top left yradius
- the radiuslink
- the link
public ImageMap addPolygonLink(int[] coordinates, Link<?> link)
coordinates
- the coordinates for the polygonlink
- the link
public ImageMap addRectangleLink(int x1, int y1, int x2, int y2, Link<?> link)
x1
- top left xy1
- top left yx2
- bottom right xy2
- bottom right ylink
-
protected void onRender()
Component
onRender
in class MarkupContainer
MarkupContainer.onRender()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |