Package org.pepstock.charba.client.geo
Class BubbleMapDataset
-
- All Implemented Interfaces:
HasCallbackScope
,HasDataPoints
,HasDataset
,IsDefaultAnimationContainer
,IsDefaultAnimationTransition
,HasAnimationOptions
public final class BubbleMapDataset extends BubbleDataset
It is aBubbleDataset
with additional options for bubble map charts.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.Dataset
Dataset.CanvasObjectProperty, Dataset.CommonProperty
-
-
Field Summary
-
Fields inherited from class org.pepstock.charba.client.data.Dataset
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
-
-
Constructor Summary
Constructors Constructor Description BubbleMapDataset()
Creates a data set.
It uses the global options has default.BubbleMapDataset(IsDefaultOptions defaultValues)
Creates a data set setting the defaults value.
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description default ClipMap
getClipMap()
Returns whether to clip the rendering to the chart area of the graph.List<Double>
getData(boolean binding)
Throws an exception because not available.List<DataPoint>
getDataPoints(boolean binding)
Throws an exception because not available.org.pepstock.charba.client.geo.GeoDatasetHandler<BubbleMapDataPoint>
getHandler()
default int
getOrder()
Returns the drawing order of dataset.
Also affects order for stacking, tooltip, and legend.default List<Feature>
getOutline()
Returns the outline used to scale and centralize the projection in the chart area.default List<PointStyle>
getPointStyle()
Returns the style of the point.default List<Canvas>
getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returnsnull
.default List<Img>
getPointStyleAsImages()
Returns the style of the point as image.
If property is missing or not an image, returnsnull
.default PointStyleCallback<DatasetContext>
getPointStyleCallback()
Returns the point style callback, if set, otherwisenull
.default PointStyleType
getPointStyleType()
Returns the type of point style.default Graticule
getShowGraticule()
Returns the graticule to render the lines in the background.default List<T>
getValues()
Returns the data property of a data set for a chart is specified as an array ofGeoDataPoint
.default List<T>
getValues(boolean binding)
Returns the data property of a data set for a chart is specified as an array ofGeoDataPoint
.default boolean
isClipMap()
Returns whether to clip the rendering to the chart area of the graph.default boolean
isShowGraticule()
Returnstrue
to render a graticule in the background.default boolean
isShowOutline()
Returnstrue
to render the outline in the background.default void
setClipMap(boolean clipMap)
Sets whether to clip the rendering to the chart area of the graph.default void
setClipMap(ClipMap clipMap)
Sets whether to clip the rendering to the chart area of the graph.void
setData(double... values)
Throws an exception because not available.void
setData(List<Double> values)
Throws an exception because not available.void
setDataPoints(List<DataPoint> datapoints)
Throws an exception because not available.void
setDataPoints(DataPoint... datapoints)
Throws an exception because not available.default void
setOrder(int order)
Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend.default void
setOutline(List<Feature> outline)
Sets the outline used to scale and centralize the projection in the chart area.default void
setOutline(Feature... outline)
Sets the outline used to scale and centralize the projection in the chart area.default void
setPointStyle(PointStyleCallback<DatasetContext> pointStyleCallback)
Sets the point style callback.default void
setPointStyle(Canvas... pointStyle)
Sets the style of the point as canvas.default void
setPointStyle(Img... pointStyle)
Sets the style of the point as image.default void
setPointStyle(PointStyle... pointStyle)
Sets the style of the point.default void
setShowGraticule(boolean showGraticule)
Setstrue
to render the lines in the background.default void
setShowGraticule(Graticule showGraticule)
Sets the graticule object to render the lines in the background.default void
setShowOutline(boolean showOutline)
Setstrue
to render the outline in the background.default void
setValues(List<T> values)
Sets the data property of a data set for a chart is specified as an array ofGeoDataPoint
.default void
setValues(T[] values)
Sets the data property of a data set for a chart is specified as an array ofGeoDataPoint
.-
Methods inherited from class org.pepstock.charba.client.data.BubbleDataset
getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getDefaultHoverBackgroundColorAsString, getDefaultHoverBorderColorAsString, getDefaultHoverBorderWidth, getDrawActiveElementsOnTopCallback, getHitRadius, getHitRadiusCallback, getHoverRadius, getHoverRadiusCallback, getOrderHandler, getPointStyleHandler, getRadius, getRadiusCallback, getRotation, getRotationCallback, isDrawActiveElementsOnTop, setDrawActiveElementsOnTop, setDrawActiveElementsOnTop, setDrawActiveElementsOnTop, setHitRadius, setHitRadius, setHitRadius, setHoverRadius, setHoverRadius, setHoverRadius, setRadius, setRadius, setRadius, setRotation, setRotation, setRotation
-
Methods inherited from class org.pepstock.charba.client.data.HoverDataset
getBorderWidthCallback, getColors, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getHoverBorderWidthCallback, getWidths, setBorderWidth, setBorderWidth, setColors, setColors, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidth, setWidths
-
Methods inherited from class org.pepstock.charba.client.data.HoverFlexDataset
getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPatterns, getBackgroundColorAsString, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBorderColor, getHoverBorderWidth, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBorderWidth
-
Methods inherited from class org.pepstock.charba.client.data.Dataset
createContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, getDataCount, getDataset, getDataType, getDefaultValues, getHoverBackgroundColorCallback, getHoverBorderColorCallback, getId, getLabel, getOptions, getOptions, getScope, getType, getTypedDataset, hasOptions, invokeColorCallback, isClip, isHidden, isNormalized, isParsing, removeOptions, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setClip, setClip, setClip, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setNormalized, setOptions, setOptions, setParsing
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, getChildKey, getParentNode, getRootNode, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.options.HasAnimationOptions
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
-
Methods inherited from interface org.pepstock.charba.client.data.HasDataPoints
getDataPoints
-
Methods inherited from interface org.pepstock.charba.client.data.HasDataset
getDataset
-
-
-
-
Constructor Detail
-
BubbleMapDataset
public BubbleMapDataset()
Creates a data set.
It uses the global options has default.
-
BubbleMapDataset
public BubbleMapDataset(IsDefaultOptions defaultValues)
Creates a data set setting the defaults value.- Parameters:
defaultValues
- default options
-
-
Method Detail
-
getHandler
public org.pepstock.charba.client.geo.GeoDatasetHandler<BubbleMapDataPoint> getHandler()
-
setDataPoints
public void setDataPoints(DataPoint... datapoints)
Throws an exception because not available.- Specified by:
setDataPoints
in interfaceHasDataPoints
- Parameters:
datapoints
- ignored because will throw an exception
-
setDataPoints
public void setDataPoints(List<DataPoint> datapoints)
Throws an exception because not available.- Specified by:
setDataPoints
in interfaceHasDataPoints
- Parameters:
datapoints
- ignored because will throw an exception
-
getDataPoints
public List<DataPoint> getDataPoints(boolean binding)
Throws an exception because not available.- Specified by:
getDataPoints
in interfaceHasDataPoints
- Parameters:
binding
- ignored because will throw an exception- Returns:
- nothing because will throw an exception
-
setData
public void setData(double... values)
Throws an exception because not available.
-
setValues
public default void setValues(T[] values)
Sets the data property of a data set for a chart is specified as an array ofGeoDataPoint
.- Parameters:
values
- an array ofGeoDataPoint
-
setValues
public default void setValues(List<T> values)
Sets the data property of a data set for a chart is specified as an array ofGeoDataPoint
.- Parameters:
values
- an array ofGeoDataPoint
-
getValues
public default List<T> getValues()
Returns the data property of a data set for a chart is specified as an array ofGeoDataPoint
.- Returns:
- list of
GeoDataPoint
.
-
getValues
public default List<T> getValues(boolean binding)
Returns the data property of a data set for a chart is specified as an array ofGeoDataPoint
.- Parameters:
binding
- iftrue
binds the new array list in the container- Returns:
- list of
GeoDataPoint
.
-
setOutline
public default void setOutline(Feature... outline)
Sets the outline used to scale and centralize the projection in the chart area. By default a sphere is used.- Parameters:
outline
- the outline used to scale and centralize the projection in the chart area
-
setOutline
public default void setOutline(List<Feature> outline)
Sets the outline used to scale and centralize the projection in the chart area. By default a sphere is used.- Parameters:
outline
- the outline used to scale and centralize the projection in the chart area
-
getOutline
public default List<Feature> getOutline()
Returns the outline used to scale and centralize the projection in the chart area. By default a sphere is used.- Returns:
- the outline used to scale and centralize the projection in the chart area
-
setShowOutline
public default void setShowOutline(boolean showOutline)
Setstrue
to render the outline in the background.- Parameters:
showOutline
-true
to render the outline in the background
-
isShowOutline
public default boolean isShowOutline()
Returnstrue
to render the outline in the background.- Returns:
true
to render the outline in the background
-
setShowGraticule
public default void setShowGraticule(boolean showGraticule)
Setstrue
to render the lines in the background.- Parameters:
showGraticule
-true
to render the lines in the background
-
setShowGraticule
public default void setShowGraticule(Graticule showGraticule)
Sets the graticule object to render the lines in the background.- Parameters:
showGraticule
- the graticule to render the lines in the background
-
isShowGraticule
public default boolean isShowGraticule()
Returnstrue
to render a graticule in the background.- Returns:
true
to render a graticule in the background
-
getShowGraticule
public default Graticule getShowGraticule()
Returns the graticule to render the lines in the background.- Returns:
- the graticule to render the lines in the background or
null
is any object has been set
-
setClipMap
public default void setClipMap(ClipMap clipMap)
Sets whether to clip the rendering to the chart area of the graph.- Parameters:
clipMap
- whether to clip the rendering to the chart area of the graph
-
getClipMap
public default ClipMap getClipMap()
Returns whether to clip the rendering to the chart area of the graph.- Returns:
- whether to clip the rendering to the chart area of the graph
-
setClipMap
public default void setClipMap(boolean clipMap)
Sets whether to clip the rendering to the chart area of the graph.- Parameters:
clipMap
- whether to clip the rendering to the chart area of the graph
-
isClipMap
public default boolean isClipMap()
Returns whether to clip the rendering to the chart area of the graph.- Returns:
- whether to clip the rendering to the chart area of the graph
-
setOrder
public default void setOrder(int order)
Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend.- Parameters:
order
- the drawing order of dataset.
-
getOrder
public default int getOrder()
Returns the drawing order of dataset.
Also affects order for stacking, tooltip, and legend.- Returns:
- the drawing order of dataset
-
setPointStyle
public default void setPointStyle(PointStyle... pointStyle)
Sets the style of the point.- Parameters:
pointStyle
- array of the style of the point.
-
getPointStyle
public default List<PointStyle> getPointStyle()
Returns the style of the point.- Returns:
- the style of the point or
null
if point style is set as image
-
setPointStyle
public default void setPointStyle(Img... pointStyle)
Sets the style of the point as image.- Parameters:
pointStyle
- image element of the style of the point as image.
-
getPointStyleType
public default PointStyleType getPointStyleType()
Returns the type of point style.- Returns:
- the type of point style
-
getPointStyleAsImages
public default List<Img> getPointStyleAsImages()
Returns the style of the point as image.
If property is missing or not an image, returnsnull
.- Returns:
- image of the style of the point as image.
If property is missing or not a image, returnsnull
.
-
setPointStyle
public default void setPointStyle(Canvas... pointStyle)
Sets the style of the point as canvas.- Parameters:
pointStyle
- canvas element of the style of the point as canvas.
-
getPointStyleAsCanvas
public default List<Canvas> getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returnsnull
.- Returns:
- image of the style of the point as canvas.
If property is missing or not a canvas, returnsnull
.
-
getPointStyleCallback
public default PointStyleCallback<DatasetContext> getPointStyleCallback()
Returns the point style callback, if set, otherwisenull
.- Returns:
- the point style callback, if set, otherwise
null
.
-
setPointStyle
public default void setPointStyle(PointStyleCallback<DatasetContext> pointStyleCallback)
Sets the point style callback.- Parameters:
pointStyleCallback
- the point style callback.
-
-