Follow us on GitHub

com.google.gwt.maps.client.controls
Class ScaleControlOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.controls.ScaleControlOptions

public class ScaleControlOptions
extends JavaScriptObject

Options for the rendering of the scale control.

See ScaleControlOptions API Doc


Constructor Summary
protected ScaleControlOptions()
          Options for the rendering of the scale control.
 
Method Summary
 ControlPosition getPosition()
          Position id.
 ScaleControlStyle getStyle()
          get Style id.
static ScaleControlOptions newInstance()
          Options for the rendering of the scale control.
 void setPosition(ControlPosition position)
          Position id.
 void setStyle(ScaleControlStyle style)
          set Style 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

ScaleControlOptions

protected ScaleControlOptions()
Options for the rendering of the scale control.

Method Detail

newInstance

public static final ScaleControlOptions newInstance()
Options for the rendering of the scale control.

Returns:
ScaleControlOptions

getPosition

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


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 - ControlPosition

setStyle

public final void setStyle(ScaleControlStyle style)
set Style id. Used to select what style of scale control to display.

Parameters:
style - ScaleControlStyle

getStyle

public final ScaleControlStyle getStyle()
get Style id. Used to select what style of scale control to display.

Returns:
ScaleControlStyle


Follow us on GitHub

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