wicket.markup.html.link
Class ImageMap

java.lang.Object
  extended bywicket.Component
      extended bywicket.MarkupContainer
          extended bywicket.markup.html.WebMarkupContainer
              extended bywicket.markup.html.link.ImageMap
All Implemented Interfaces:
java.io.Serializable

public final class ImageMap
extends WebMarkupContainer

An image map holds links with different hot-area shapes.

Author:
Jonathan Locke
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wicket.Component
Component.ComponentModelChange, Component.IVisitor, Component.VisibilityChange
 
Field Summary
 
Fields inherited from class wicket.Component
FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4
 
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()
          Renders this component.
 
Methods inherited from class wicket.markup.html.WebMarkupContainer
getMarkupType
 
Methods inherited from class wicket.MarkupContainer
add, autoAdd, contains, findMarkupStream, get, getMarkupStream, internalAdd, internalBeginRequest, internalEndRequest, iterator, onComponentTagBody, remove, removeAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren
 
Methods inherited from class wicket.Component
add, addStateChange, checkComponentTag, checkComponentTagAttribute, debug, detachModel, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getApplicationPages, getApplicationSettings, getClassRelativePath, getConverter, getEscapeModelStrings, getFeedbackMessage, getFlag, getId, getLocale, getLocalizer, getModel, getModelObject, getModelObjectAsString, getPage, getPageFactory, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResource, getResponse, getSession, getString, getString, getString, getStyle, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnBeginRequest, internalOnEndRequest, internalOnModelChanged, internalOnModelChanging, isAncestorOf, isVersioned, isVisible, isVisibleInHierarchy, modelChanged, modelChanging, newPage, newPage, onBeginRequest, onComponentTag, onEndRequest, onModelChanged, onModelChanging, onSessionAttach, redirectTo, remove, render, renderComponent, renderComponentTag, rendered, replaceComponentTagBody, sameRootModel, sameRootModel, setFlag, setModelObject, setRedirect, setRenderBodyOnly, setResponsePage, setShouldEscapeModelStrings, setVersioned, setVisible, urlFor, visitParents, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageMap

public ImageMap(java.lang.String id)
Constructor.

Parameters:
id - See Component
Method Detail

addCircleLink

public ImageMap addCircleLink(int x1,
                              int y1,
                              int radius,
                              Link link)
Adds a circle link.

Parameters:
x1 - top left x
y1 - top left y
radius - the radius
link - the link
Returns:
This

addPolygonLink

public ImageMap addPolygonLink(int[] coordinates,
                               Link link)
Adds a polygon link.

Parameters:
coordinates - the coordinates for the polygon
link - the link
Returns:
This

addRectangleLink

public ImageMap addRectangleLink(int x1,
                                 int y1,
                                 int x2,
                                 int y2,
                                 Link link)
Adds a rectangular link.

Parameters:
x1 - top left x
y1 - top left y
x2 - bottom right x
y2 - bottom right y
link -
Returns:
This

onRender

protected void onRender()
Renders this component.

Overrides:
onRender in class WebMarkupContainer
See Also:
Component.onRender()


Copyright © 2004-2005 Wicket developers. All Rights Reserved.