Follow us on GitHub

com.google.gwt.maps.client.weatherlib
Class WeatherLayerOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.weatherlib.WeatherLayerOptions

public class WeatherLayerOptions
extends JavaScriptObject

This object defines the properties that can be set on a WeatherLayer object.

See WeatherLayerOptions API Doc


Constructor Summary
protected WeatherLayerOptions()
          use newInstance();
 
Method Summary
 boolean getClickable()
          gets If true, the layer receives mouse events.
 LabelColor getLabelColor()
          Sets the color of labels on the weather layer.
 MapWidget getMap()
          Returns the map on which this layer is displayed.
 boolean getSuppressInfoWindows()
          gets Suppress the rendering of info windows when layer features are clicked.
 TemperatureUnit getTemperatureUnits()
          Gets the units to use for temperature.
 WindSpeedUnit getWindSpeedUnits()
          Gets the units to use for wind speed.
static WeatherLayerOptions newInstance()
          creates - This object defines the properties that can be set on a WeatherLayer object.
 void setClickable(boolean clickable)
          sets If true, the layer receives mouse events.
 void setLabelColor(LabelColor labelColor)
          Sets the color of labels on the weather layer.
 void setMap(MapWidget mapWidget)
          Layer will be rendered to this map
 void setSuppressInfoWindows(boolean suppressInfoWindows)
          Sets Suppress the rendering of info windows when layer features are clicked.
 void setTemperatureUnits(TemperatureUnit temperatureUnits)
          Sets the units to use for temperature.
 void setWindSpeedUnits(WindSpeedUnit windSpeedUnits)
          Sets the units to use for wind speed.
 
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

WeatherLayerOptions

protected WeatherLayerOptions()
use newInstance();

Method Detail

newInstance

public static final WeatherLayerOptions newInstance()
creates - This object defines the properties that can be set on a WeatherLayer object.


setClickable

public final void setClickable(boolean clickable)
sets If true, the layer receives mouse events. Default value is true.

Parameters:
clickable -

getClickable

public final boolean getClickable()
gets If true, the layer receives mouse events. Default value is true.


setLabelColor

public final void setLabelColor(LabelColor labelColor)
Sets the color of labels on the weather layer. If this is not explicitly set, the label color is chosen automatically depending on the map type.

Parameters:
labelColor -

getLabelColor

public final LabelColor getLabelColor()
Sets the color of labels on the weather layer.


setTemperatureUnits

public final void setTemperatureUnits(TemperatureUnit temperatureUnits)
Sets the units to use for temperature.

Parameters:
temperatureUnits -

getTemperatureUnits

public final TemperatureUnit getTemperatureUnits()
Gets the units to use for temperature.


setWindSpeedUnits

public final void setWindSpeedUnits(WindSpeedUnit windSpeedUnits)
Sets the units to use for wind speed.

Parameters:
windSpeedUnits -

getWindSpeedUnits

public final WindSpeedUnit getWindSpeedUnits()
Gets the units to use for wind speed.


setMap

public final void setMap(MapWidget mapWidget)
Layer will be rendered to this map

Parameters:
mapWidget -

getMap

public final MapWidget getMap()
Returns the map on which this layer is displayed.


setSuppressInfoWindows

public final void setSuppressInfoWindows(boolean suppressInfoWindows)
Sets Suppress the rendering of info windows when layer features are clicked.

Parameters:
suppressInfoWindows -

getSuppressInfoWindows

public final boolean getSuppressInfoWindows()
gets Suppress the rendering of info windows when layer features are clicked.



Follow us on GitHub

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