com.google.gwt.maps.client.visualizationlib
Class WeightedLocation

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.visualizationlib.WeightedLocation

public class WeightedLocation
extends JavaScriptObject

A data point entry for a heatmap. This is a geographical data point with a weight attribute.

See WeightedLocation API Doc


Constructor Summary
protected WeightedLocation()
          See newInstance(com.google.gwt.maps.client.base.LatLng, double)
 
Method Summary
 LatLng getLocation()
          Get location of the data point.
 double getWeight()
          Get the weighting value of the data point.
static WeightedLocation newInstance(LatLng location, double weight)
          A data point entry for a heatmap.
 void setLocation(LatLng location)
          The location of data point.
 void setWeight(double weight)
          Set the weighting value of the data point.
 
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

WeightedLocation

protected WeightedLocation()
See newInstance(com.google.gwt.maps.client.base.LatLng, double)

Method Detail

newInstance

public static WeightedLocation newInstance(LatLng location,
                                           double weight)
A data point entry for a heatmap. This is a geographical data point with a weight attribute.

Parameters:
location -
weight - weighting value

getWeight

public final double getWeight()
Get the weighting value of the data point.

Returns:
weight value or NULL

setWeight

public final void setWeight(double weight)
Set the weighting value of the data point.

Parameters:
weight -

setLocation

public final void setLocation(LatLng location)
The location of data point.

Parameters:
location -

getLocation

public final LatLng getLocation()
Get location of the data point.

Returns:
location


Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.