Follow us on GitHub

com.google.gwt.maps.client.drawinglib
Class DrawingControlOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.drawinglib.DrawingControlOptions

public class DrawingControlOptions
extends JavaScriptObject

Options for the rendering of the drawing control.

See DrawingControlOptions API Doc


Constructor Summary
protected DrawingControlOptions()
          use newInstance();
 
Method Summary
 OverlayType[] getDrawingModes()
          The drawing modes to display in the drawing control, in the order in which they are to be displayed.
 ControlPosition getPosition()
          Position id.
static DrawingControlOptions newInstance()
          Options for the rendering of the drawing control.
 void setDrawingModes(OverlayType... overlayTypes)
          The drawing modes to display in the drawing control, in the order in which they are to be displayed.
 void setPosition(ControlPosition position)
          Position id.
 
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

DrawingControlOptions

protected DrawingControlOptions()
use newInstance();

Method Detail

newInstance

public static final DrawingControlOptions newInstance()
Options for the rendering of the drawing control.


setDrawingModes

public final void setDrawingModes(OverlayType... overlayTypes)
The drawing modes to display in the drawing control, in the order in which they are to be displayed. The hand icon (which corresponds to the null drawing mode) is always available and is not to be specified in this array. Defaults to [MARKER, POLYLINE, RECTANGLE, CIRCLE, POLYGON]. hmmmm, this seems a bit overlay iterative

Parameters:
overlayTypes -

getDrawingModes

public final OverlayType[] getDrawingModes()
The drawing modes to display in the drawing control, in the order in which they are to be displayed. The hand icon (which corresponds to the null drawing mode) is always available and is not to be specified in this array. Defaults to [MARKER, POLYLINE, RECTANGLE, CIRCLE, POLYGON].


setPosition

public final void setPosition(ControlPosition position)
Position id. Used to specify the position of the control on the map. The default position is TOP_LEFT.

Parameters:
position -

getPosition

public final ControlPosition getPosition()
Position id. Used to specify the position of the control on the map. The default position is TOP_LEFT.



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.