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

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

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

Options to pass to the Polyline.setDrawingEnabled() editing routines.


Constructor Summary
protected PolyEditingOptions()
           
 
Method Summary
static PolyEditingOptions newInstance()
          Create a new PolyEditingOptions object.
static PolyEditingOptions newInstance(boolean fromStart)
          Create a PolyEditingOptions object.
static PolyEditingOptions newInstance(int maxVertices)
          Create a PolyEditingOptions object.
static PolyEditingOptions newInstance(int maxVertices, boolean fromStart)
          Create a PolyEditingOptions object.
 void setFromStart(boolean fromStart)
          This property specifies whether enableDrawing should add points from the start rather than from the end, which is the default.
 void setMaxVertices(int maxVertices)
          This property specifies the maximum number of vertices permitted for this polyline.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolyEditingOptions

protected PolyEditingOptions()
Method Detail

newInstance

public static PolyEditingOptions newInstance()
Create a new PolyEditingOptions object.

Returns:
a new PolyEditingOptions object.

newInstance

public static PolyEditingOptions newInstance(boolean fromStart)
Create a PolyEditingOptions object.

Parameters:
fromStart - specifies whether Polyline.setDrawingEnabled() should add points from the start rather than from the end, which is the default.
Returns:
a new PolyEditingOptions object.

newInstance

public static PolyEditingOptions newInstance(int maxVertices)
Create a PolyEditingOptions object.

Parameters:
maxVertices - specifies the maximum number of vertices permitted for this polyline. Once this number is reached, no more may be added
Returns:
a new PolyEditingOptions object.

newInstance

public static PolyEditingOptions newInstance(int maxVertices,
                                             boolean fromStart)
Create a PolyEditingOptions object.

Parameters:
fromStart - specifies whether Polyline.setDrawingEnabled() should add points from the start rather than from the end, which is the default.
maxVertices - specifies the maximum number of vertices permitted for this polyline. Once this number is reached, no more may be added
Returns:
a new PolyEditingOptions object.

setFromStart

public final void setFromStart(boolean fromStart)
This property specifies whether enableDrawing should add points from the start rather than from the end, which is the default.

Parameters:
fromStart - specifies whether Polyline.setDrawingEnabled() should add points from the start rather than from the end, which is the default.

setMaxVertices

public final void setMaxVertices(int maxVertices)
This property specifies the maximum number of vertices permitted for this polyline. Once this number is reached, no more may be added.

Parameters:
maxVertices - the maximum number of vertices permitted.