Package org.wicketstuff.gmap.api
Class GRectangle
- java.lang.Object
-
- org.wicketstuff.gmap.api.GOverlay
-
- org.wicketstuff.gmap.api.GRectangle
-
- All Implemented Interfaces:
Serializable
public class GRectangle extends GOverlay
Represents an Google Maps API's Rectangle.
Following events can be attached to this overlay:
- bounds_changed
- click
- dblckick
- dragend
- dragstart
- mousedown
- mousemove
- mouseout
- mouseover
- mouseup
- rightclick
-
-
Constructor Summary
Constructors Constructor Description GRectangle(GLatLngBounds bounds, String strokeColor, int strokeWeight, float strokeOpacity, String fillColor, float fillOpacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getJSconstructor()
Implement the needed JavaScript constructor for the corresponding JavaScript object.GRectangle
setClickable(boolean clickable)
GRectangle
setDraggable(boolean draggable)
GRectangle
setEditable(boolean editable)
GRectangle
setVisible(boolean visible)
GRectangle
setZIndex(Integer zIndex)
protected void
updateOnAjaxCall(AjaxRequestTarget target, GEvent overlayEvent)
Implement to handle Ajax calls to your needs.-
Methods inherited from class org.wicketstuff.gmap.api.GOverlay
addFunctionListener, addListener, clearListeners, getFunctionListeners, getId, getJS, getJSremove, getListeners, getPage, getParent, onEvent, setParent
-
-
-
-
Constructor Detail
-
GRectangle
public GRectangle(GLatLngBounds bounds, String strokeColor, int strokeWeight, float strokeOpacity, String fillColor, float fillOpacity)
-
-
Method Detail
-
getJSconstructor
public String getJSconstructor()
Description copied from class:GOverlay
Implement the needed JavaScript constructor for the corresponding JavaScript object.- Specified by:
getJSconstructor
in classGOverlay
- Returns:
- String representing the JavaScript constructor.
-
updateOnAjaxCall
protected void updateOnAjaxCall(AjaxRequestTarget target, GEvent overlayEvent)
Description copied from class:GOverlay
Implement to handle Ajax calls to your needs.- Specified by:
updateOnAjaxCall
in classGOverlay
-
setClickable
public GRectangle setClickable(boolean clickable)
-
setDraggable
public GRectangle setDraggable(boolean draggable)
-
setEditable
public GRectangle setEditable(boolean editable)
-
setVisible
public GRectangle setVisible(boolean visible)
-
setZIndex
public GRectangle setZIndex(Integer zIndex)
-
-