com.google.gwt.maps.client.overlay
Class PolylineOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.overlay.PolylineOptions

public class PolylineOptions
extends com.google.gwt.core.client.JavaScriptObject

Options to pass to the Polyline constructor.


Constructor Summary
protected PolylineOptions()
           
 
Method Summary
static PolylineOptions newInstance()
           
static PolylineOptions newInstance(boolean clickable)
          Construct a new PolylineOptions instance.
static PolylineOptions newInstance(boolean clickable, boolean geodesic)
          Construct a new PolylineOptions instance.
 void setClickable(boolean clickable)
          Toggles whether or not the polyline is clickable.
 void setGeodesic(boolean geodesic)
          Render each edge of the polyline as a geodesic (a segment of a "great circle").
 
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

PolylineOptions

protected PolylineOptions()
Method Detail

newInstance

public static PolylineOptions newInstance(boolean clickable)
Construct a new PolylineOptions instance.

Parameters:
clickable - pass false to make this polyline not clickable.
Returns:
a new PolylineOptions instance.

newInstance

public static PolylineOptions newInstance(boolean clickable,
                                          boolean geodesic)
Construct a new PolylineOptions instance.

Parameters:
clickable - pass false to make this polyline not clickable.
geodesic - true to set this polyline to be geodesic.
Returns:
a new PolylineOptions instance.

newInstance

public static PolylineOptions newInstance()

setClickable

public final void setClickable(boolean clickable)
Toggles whether or not the polyline is clickable. The default value for this option is true, i.e. if the option is not specified, the polyline will be clickable.

Parameters:
clickable - pass false to make this polyline not clickable.

setGeodesic

public final void setGeodesic(boolean geodesic)
Render each edge of the polyline as a geodesic (a segment of a "great circle"). A geodesic is the shortest path between two points along the surface of the Earth.

Parameters:
geodesic - true to set this polyline to be geodesic.