Package org.pepstock.charba.client.geo
Class DataPointCenter
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.geo.DataPointCenter
-
public final class DataPointCenter extends NativeObjectContainer
This class enables the capability to specify the coordinates where the tooltip should appear. e.g. at the capital city.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description DataPointCenter()
Creates a data point center.DataPointCenter(double latitude, double longitude)
Creates a data point center with latitude and longitude.DataPointCenter(Coordinates coordinates)
Creates a data point center withCoordinates
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLatitude()
Returns the latitude stored in the object.double
getLongitude()
Returns the longitude stored in the object.void
setLatitude(double latitude)
Sets the latitude stored in the object.void
setLongitude(double longitude)
Sets the longitude stored in the object.-
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, 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
-
-
-
-
Constructor Detail
-
DataPointCenter
public DataPointCenter()
Creates a data point center.
-
DataPointCenter
public DataPointCenter(Coordinates coordinates)
Creates a data point center withCoordinates
.- Parameters:
coordinates
- the coordinates value
-
DataPointCenter
public DataPointCenter(double latitude, double longitude)
Creates a data point center with latitude and longitude.- Parameters:
latitude
- the latitude valuelongitude
- the longitude value
-
-
Method Detail
-
setLatitude
public void setLatitude(double latitude)
Sets the latitude stored in the object.- Parameters:
latitude
- the latitude value
-
getLatitude
public double getLatitude()
Returns the latitude stored in the object.- Returns:
- the latitude value
-
setLongitude
public void setLongitude(double longitude)
Sets the longitude stored in the object.- Parameters:
longitude
- the longitude value
-
getLongitude
public double getLongitude()
Returns the longitude stored in the object.- Returns:
- the longitude value
-
-