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

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

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

Options to pass to the Polygon constructor.


Constructor Summary
protected PolygonOptions()
           
 
Method Summary
static PolygonOptions newInstance()
          Returns a new instance of the PolygonOptions object.
static PolygonOptions newInstance(boolean clickable)
          Returns a new instance of the PolygonOptions object.
 void setClickable(boolean clickable)
          Toggles whether or not the polygon is clickable.
 
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

PolygonOptions

protected PolygonOptions()
Method Detail

newInstance

public static PolygonOptions newInstance(boolean clickable)
Returns a new instance of the PolygonOptions object.

Parameters:
clickable - pass false to make this polygon ignore clicks.
Returns:
a new instance of the PolygonOptions object.

newInstance

public static PolygonOptions newInstance()
Returns a new instance of the PolygonOptions object.

Returns:
a new instance of the PolygonOptions object.

setClickable

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

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