Package org.pepstock.charba.client.geo
Class BubbleMapDataPoint
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.data.AbstractDataPoint
-
- org.pepstock.charba.client.geo.BubbleMapDataPoint
-
public final class BubbleMapDataPoint extends AbstractDataPoint
Used for BubbleMap data sets to set the data to render.
A data has to have alatitude
andlongitude
properties and avalue
property containing the value for the coloring.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BubbleMapDataPoint.BubbleMapDataPointFactory
CreatesBubbleMapDataPoint
form aNativeObject
.-
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.AbstractDataPoint
AbstractDataPoint.CharbaProperty
-
-
Field Summary
Fields Modifier and Type Field Description static BubbleMapDataPoint.BubbleMapDataPointFactory
FACTORY
Factory instance to create data points.
-
Constructor Summary
Constructors Constructor Description BubbleMapDataPoint()
Creates the object with an empty native object.BubbleMapDataPoint(double latitude, double longitude)
Creates the object with the assigned latitude and longitude.BubbleMapDataPoint(double latitude, double longitude, double value)
Creates the object with the assigned latitude, longitude and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLatitude()
Returns the latitude of the data.double
getLongitude()
Returns the longitude of the data.double
getValue()
Returns the value for the coloring.void
setLatitude(double latitude)
Sets the latitude of the data.void
setLongitude(double longitude)
Sets the longitude of the data.void
setValue(double value)
Sets the value for the coloring.-
Methods inherited from class org.pepstock.charba.client.data.AbstractDataPoint
checkAndSetType, getAttribute, getAttributeAsDate, getAttributeAsObject, getAttributeAsString, setAttribute, setAttribute, setAttribute, setAttribute
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Field Detail
-
FACTORY
public static final BubbleMapDataPoint.BubbleMapDataPointFactory FACTORY
Factory instance to create data points. To use byDataItem
to get the data point for bubble map chart.
-
-
Constructor Detail
-
BubbleMapDataPoint
public BubbleMapDataPoint()
Creates the object with an empty native object.
-
BubbleMapDataPoint
public BubbleMapDataPoint(double latitude, double longitude)
Creates the object with the assigned latitude and longitude.- Parameters:
latitude
- the latitude of the datalongitude
- the longitude of the data
-
BubbleMapDataPoint
public BubbleMapDataPoint(double latitude, double longitude, double value)
Creates the object with the assigned latitude, longitude and value.- Parameters:
latitude
- the latitude of the datalongitude
- the longitude of the datavalue
- the value for the coloring
-
-
Method Detail
-
setLatitude
public void setLatitude(double latitude)
Sets the latitude of the data.- Parameters:
latitude
- the latitude of the data
-
getLatitude
public double getLatitude()
Returns the latitude of the data.- Returns:
- the latitude of the data
-
setLongitude
public void setLongitude(double longitude)
Sets the longitude of the data.- Parameters:
longitude
- the longitude of the data
-
getLongitude
public double getLongitude()
Returns the longitude of the data.- Returns:
- the longitude of the data
-
setValue
public final void setValue(double value)
Sets the value for the coloring.- Parameters:
value
- the value for the coloring
-
getValue
public final double getValue()
Returns the value for the coloring.- Returns:
- the value for the coloring
-
-