|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.mvc.MVCObject<Polyline>
com.google.gwt.maps.client.overlays.Polyline
public class Polyline
A polyline is a linear overlay of connected line segments on the map. This
class extends MVCObject.
See Polyline API Doc
Constructor Summary | |
---|---|
protected |
Polyline()
use newInstance(); |
Method Summary | |
---|---|
HandlerRegistration |
addClickHandler(ClickMapHandler handler)
This event is fired when the DOM click event is fired on the Polyline. |
HandlerRegistration |
addDblClickHandler(DblClickMapHandler handler)
This event is fired when the DOM dblclick event is fired on the Polyline. |
HandlerRegistration |
addMouseDownHandler(MouseDownMapHandler handler)
This event is fired when the DOM mousedown event is fired on the Polyline. |
HandlerRegistration |
addMouseMoveHandler(MouseMoveMapHandler handler)
This event is fired when the DOM mousemove event is fired on the Polyline. |
HandlerRegistration |
addMouseOutMoveHandler(MouseOutMapHandler handler)
This event is fired on Polyline mouseout. |
HandlerRegistration |
addMouseOverHandler(MouseOverMapHandler handler)
This event is fired on Polyline mouseover. |
HandlerRegistration |
addMouseUpHandler(MouseUpMapHandler handler)
This event is fired when the DOM mouseup event is fired on the Polyline. |
HandlerRegistration |
addRightClickHandler(RightClickMapHandler handler)
This event is fired when the Polyline is right-clicked on. |
boolean |
getEditable()
Returns whether this shape can be edited by the user. |
MapWidget |
getMap()
Returns the map on which this shape is attached. |
MVCArray<LatLng> |
getPath()
Retrieves the first path. |
static Polyline |
newInstance(PolylineOptions options)
Create a polyline using the passed PolylineOptions, which specify both the path of the polyline and the stroke style to use when drawing the polyline. |
void |
setEditable(boolean editable)
If set to true, the user can edit this shape by dragging the control points shown at the vertices and on each segment. |
void |
setMap(MapWidget mapWidget)
Renders this shape on the specified map. |
void |
setOptions(PolylineOptions options)
set Options |
void |
setPath(JsArray<LatLng> path)
Sets the first path. |
void |
setPath(MVCArray<LatLng> path)
Sets the first path. |
Methods inherited from class com.google.gwt.maps.client.mvc.MVCObject |
---|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Polyline()
Method Detail |
---|
public static final Polyline newInstance(PolylineOptions options)
options
- PolylineOptions
public final boolean getEditable()
public final MapWidget getMap()
public final MVCArray<LatLng> getPath()
public final void setEditable(boolean editable)
editable
- public final void setMap(MapWidget mapWidget)
mapWidget
- public final void setOptions(PolylineOptions options)
options
- public final void setPath(MVCArray<LatLng> path)
PolylineOptions
for more details.
path
- public final void setPath(JsArray<LatLng> path)
PolylineOptions
for more details.
path
- public final HandlerRegistration addClickHandler(ClickMapHandler handler)
handler
- public final HandlerRegistration addDblClickHandler(DblClickMapHandler handler)
handler
- public final HandlerRegistration addMouseDownHandler(MouseDownMapHandler handler)
handler
- public final HandlerRegistration addMouseMoveHandler(MouseMoveMapHandler handler)
handler
- public final HandlerRegistration addMouseOutMoveHandler(MouseOutMapHandler handler)
handler
- public final HandlerRegistration addMouseOverHandler(MouseOverMapHandler handler)
handler
- public final HandlerRegistration addMouseUpHandler(MouseUpMapHandler handler)
handler
- public final HandlerRegistration addRightClickHandler(RightClickMapHandler handler)
handler
-
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |