|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJavaScriptObject
com.google.maps.gwt.client.MVCObject
com.google.maps.gwt.client.Rectangle
public class Rectangle
A rectangle overlay. THIS SOURCE CODE IS GENERATED, DO NOT MODIFY
Nested Class Summary | |
---|---|
static interface |
Rectangle.BoundsChangedHandler
This event is fired when the rectangle's bounds are changed. |
static interface |
Rectangle.ClickHandler
This event is fired when the DOM click event is fired on the rectangle. |
static interface |
Rectangle.DblClickHandler
This event is fired when the DOM dblclick event is fired on the rectangle. |
static interface |
Rectangle.MouseDownHandler
This event is fired when the DOM mousedown event is fired on the rectangle. |
static interface |
Rectangle.MouseMoveHandler
This event is fired when the DOM mousemove event is fired on the rectangle. |
static interface |
Rectangle.MouseOutHandler
This event is fired on rectangle mouseout. |
static interface |
Rectangle.MouseOverHandler
This event is fired on rectangle mouseover. |
static interface |
Rectangle.MouseUpHandler
This event is fired when the DOM mouseup event is fired on the rectangle. |
static interface |
Rectangle.RightClickHandler
This event is fired when the rectangle is right-clicked on. |
Constructor Summary | |
---|---|
protected |
Rectangle()
Protected constructor avoids default public constructor. |
Method Summary | |
---|---|
void |
addBoundsChangedListener(Rectangle.BoundsChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addBoundsChangedListenerOnce(Rectangle.BoundsChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addClickListener(Rectangle.ClickHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addClickListenerOnce(Rectangle.ClickHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addDblClickListener(Rectangle.DblClickHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addDblClickListenerOnce(Rectangle.DblClickHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addMouseDownListener(Rectangle.MouseDownHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addMouseDownListenerOnce(Rectangle.MouseDownHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addMouseMoveListener(Rectangle.MouseMoveHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addMouseMoveListenerOnce(Rectangle.MouseMoveHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addMouseOutListener(Rectangle.MouseOutHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addMouseOutListenerOnce(Rectangle.MouseOutHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addMouseOverListener(Rectangle.MouseOverHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addMouseOverListenerOnce(Rectangle.MouseOverHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addMouseUpListener(Rectangle.MouseUpHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addMouseUpListenerOnce(Rectangle.MouseUpHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addRightClickListener(Rectangle.RightClickHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addRightClickListenerOnce(Rectangle.RightClickHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
clearBoundsChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearClickListeners()
Removes all listeners for the given event for the given instance. |
void |
clearDblClickListeners()
Removes all listeners for the given event for the given instance. |
void |
clearInstanceListeners()
Removes all listeners for all events for the given instance. |
void |
clearMouseDownListeners()
Removes all listeners for the given event for the given instance. |
void |
clearMouseMoveListeners()
Removes all listeners for the given event for the given instance. |
void |
clearMouseOutListeners()
Removes all listeners for the given event for the given instance. |
void |
clearMouseOverListeners()
Removes all listeners for the given event for the given instance. |
void |
clearMouseUpListeners()
Removes all listeners for the given event for the given instance. |
void |
clearRightClickListeners()
Removes all listeners for the given event for the given instance. |
static Rectangle |
create()
Create a rectangle using the passed RectangleOptions
, which specify the bounds and style. |
static Rectangle |
create(RectangleOptions opts)
Create a rectangle using the passed RectangleOptions
, which specify the bounds and style. |
LatLngBounds |
getBounds()
Returns the bounds of this rectangle. |
boolean |
getEditable()
Returns whether this rectangle can be edited by the user. |
GoogleMap |
getMap()
Returns the map on which this rectangle is displayed. |
boolean |
getVisible()
Returns whether this rectangle is visible on the map. |
void |
setBounds(LatLngBounds bounds)
Sets the bounds of this rectangle. |
void |
setEditable(boolean editable)
If set to true, the user can edit this rectangle by dragging the control points shown at the corners and on each edge. |
void |
setMap(GoogleMap map)
Renders the rectangle on the specified map. |
void |
setOptions(RectangleOptions options)
|
void |
setVisible(boolean visible)
Hides this rectangle if set to false
. |
void |
triggerBoundsChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerClick(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerDblClick(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerMouseDown(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerMouseMove(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerMouseOut(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerMouseOver(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerMouseUp(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerRightClick(JavaScriptObject... varargs)
Triggers the given event. |
Methods inherited from class com.google.maps.gwt.client.MVCObject |
---|
bindTo, bindTo, bindTo, bindTo, changed, get, notify, set, setValues, setValues, unbind, unbindAll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Rectangle()
Method Detail |
---|
public static Rectangle create(RectangleOptions opts)
RectangleOptions
, which specify the bounds and style.
public static Rectangle create()
RectangleOptions
, which specify the bounds and style.
public final void addBoundsChangedListener(Rectangle.BoundsChangedHandler handler)
public final void addBoundsChangedListenerOnce(Rectangle.BoundsChangedHandler handler)
public final void addClickListener(Rectangle.ClickHandler handler)
public final void addClickListenerOnce(Rectangle.ClickHandler handler)
public final void addDblClickListener(Rectangle.DblClickHandler handler)
public final void addDblClickListenerOnce(Rectangle.DblClickHandler handler)
public final void addMouseDownListener(Rectangle.MouseDownHandler handler)
public final void addMouseDownListenerOnce(Rectangle.MouseDownHandler handler)
public final void addMouseMoveListener(Rectangle.MouseMoveHandler handler)
public final void addMouseMoveListenerOnce(Rectangle.MouseMoveHandler handler)
public final void addMouseOutListener(Rectangle.MouseOutHandler handler)
public final void addMouseOutListenerOnce(Rectangle.MouseOutHandler handler)
public final void addMouseOverListener(Rectangle.MouseOverHandler handler)
public final void addMouseOverListenerOnce(Rectangle.MouseOverHandler handler)
public final void addMouseUpListener(Rectangle.MouseUpHandler handler)
public final void addMouseUpListenerOnce(Rectangle.MouseUpHandler handler)
public final void addRightClickListener(Rectangle.RightClickHandler handler)
public final void addRightClickListenerOnce(Rectangle.RightClickHandler handler)
public final void clearBoundsChangedListeners()
public final void clearClickListeners()
public final void clearDblClickListeners()
public final void clearInstanceListeners()
public final void clearMouseDownListeners()
public final void clearMouseMoveListeners()
public final void clearMouseOutListeners()
public final void clearMouseOverListeners()
public final void clearMouseUpListeners()
public final void clearRightClickListeners()
public final LatLngBounds getBounds()
public final boolean getEditable()
public final GoogleMap getMap()
public final boolean getVisible()
public final void setBounds(LatLngBounds bounds)
public final void setEditable(boolean editable)
public final void setMap(GoogleMap map)
public final void setOptions(RectangleOptions options)
public final void setVisible(boolean visible)
false
.
public final void triggerBoundsChanged(JavaScriptObject... varargs)
public final void triggerClick(JavaScriptObject... varargs)
public final void triggerDblClick(JavaScriptObject... varargs)
public final void triggerMouseDown(JavaScriptObject... varargs)
public final void triggerMouseMove(JavaScriptObject... varargs)
public final void triggerMouseOut(JavaScriptObject... varargs)
public final void triggerMouseOver(JavaScriptObject... varargs)
public final void triggerMouseUp(JavaScriptObject... varargs)
public final void triggerRightClick(JavaScriptObject... varargs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |