|
|||||||||
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.DirectionsRenderer
public class DirectionsRenderer
Renders directions retrieved in the form of a
DirectionsResult
object retrieved from the
DirectionsService
.
THIS SOURCE CODE IS GENERATED, DO NOT MODIFY
Nested Class Summary | |
---|---|
static interface |
DirectionsRenderer.DirectionsChangedHandler
This event is fired when the rendered directions change, either when a new DirectionsResult
is set or when the user finishes dragging a change to the directions path. |
Constructor Summary | |
---|---|
protected |
DirectionsRenderer()
Protected constructor avoids default public constructor. |
Method Summary | |
---|---|
void |
addDirectionsChangedListener(DirectionsRenderer.DirectionsChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addDirectionsChangedListenerOnce(DirectionsRenderer.DirectionsChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
clearDirectionsChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearInstanceListeners()
Removes all listeners for all events for the given instance. |
static DirectionsRenderer |
create()
Creates the renderer with the given options. |
static DirectionsRenderer |
create(DirectionsRendererOptions opts)
Creates the renderer with the given options. |
DirectionsResult |
getDirections()
Returns the renderer's current set of directions. |
GoogleMap |
getMap()
Returns the map on which the DirectionsResult
is rendered. |
Node |
getPanel()
Returns the panel <div>
in which the
DirectionsResult
is rendered. |
double |
getRouteIndex()
Returns the current (zero-based) route index in use by this DirectionsRenderer
object. |
void |
setDirections(DirectionsResult directions)
Set the renderer to use the result from the DirectionsService
. |
void |
setMap(GoogleMap map)
This method specifies the map on which directions will be rendered. |
void |
setOptions(DirectionsRendererOptions options)
Change the options settings of this DirectionsRenderer
after initialization. |
void |
setPanel(Node panel)
This method renders the directions in a <div>
. |
void |
setRouteIndex(double routeIndex)
Set the (zero-based) index of the route in the DirectionsResult
object to render. |
void |
triggerDirectionsChanged(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 DirectionsRenderer()
Method Detail |
---|
public static DirectionsRenderer create(DirectionsRendererOptions opts)
<div>
panel (as textual instructions).
public static DirectionsRenderer create()
<div>
panel (as textual instructions).
public final void addDirectionsChangedListener(DirectionsRenderer.DirectionsChangedHandler handler)
public final void addDirectionsChangedListenerOnce(DirectionsRenderer.DirectionsChangedHandler handler)
public final void clearDirectionsChangedListeners()
public final void clearInstanceListeners()
public final DirectionsResult getDirections()
public final GoogleMap getMap()
DirectionsResult
is rendered.
public final Node getPanel()
<div>
in which the
DirectionsResult
is rendered.
public final double getRouteIndex()
DirectionsRenderer
object.
public final void setDirections(DirectionsResult directions)
DirectionsService
. Setting a valid set of directions in this manner will display the
directions on the renderer's designated map and panel.
public final void setMap(GoogleMap map)
null
to remove the directions from the map.
public final void setOptions(DirectionsRendererOptions options)
DirectionsRenderer
after initialization.
public final void setPanel(Node panel)
<div>
. Pass
null
to remove the content from the panel.
public final void setRouteIndex(double routeIndex)
DirectionsResult
object to render. By default, the first route in the array will be rendered.
public final void triggerDirectionsChanged(JavaScriptObject... varargs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |