Package org.pepstock.charba.client.geo
Class ChoroplethDataset
-
- All Implemented Interfaces:
HasCallbackScope,HasDataPoints,HasDataset,IsDefaultAnimationContainer,IsDefaultAnimationTransition,IsDefaultBarDatasets,HasAnimationOptions,HasBarDatasetOptions
public final class ChoroplethDataset extends BarDataset
The choropleth data set allows a region definition (byFeature) and specific value to be specified.- 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.BarDataset
FLOATING_BAR_DATA_FACTORY
-
Fields inherited from class org.pepstock.charba.client.data.Dataset
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
-
-
Constructor Summary
Constructors Constructor Description ChoroplethDataset()Creates a data set.
It uses the global options has default.ChoroplethDataset(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 ClipMapgetClipMap()Returns whether to clip the rendering to the chart area of the graph.List<Double>getData(boolean binding)Throws an exception because not available.org.pepstock.charba.client.geo.GeoDatasetHandler<ChoroplethDataPoint>getHandler()default intgetOrder()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 GraticulegetShowGraticule()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 booleanisClipMap()Returns whether to clip the rendering to the chart area of the graph.default booleanisShowGraticule()Returnstrueto render a graticule in the background.default booleanisShowOutline()Returnstrueto render the outline in the background.default voidsetClipMap(boolean clipMap)Sets whether to clip the rendering to the chart area of the graph.default voidsetClipMap(ClipMap clipMap)Sets whether to clip the rendering to the chart area of the graph.voidsetData(double... values)Throws an exception because not available.voidsetData(List<Double> values)Throws an exception because not available.default voidsetOrder(int order)Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend.default voidsetOutline(List<Feature> outline)Sets the outline used to scale and centralize the projection in the chart area.default voidsetOutline(Feature... outline)Sets the outline used to scale and centralize the projection in the chart area.default voidsetShowGraticule(boolean showGraticule)Setstrueto render the lines in the background.default voidsetShowGraticule(Graticule showGraticule)Sets the graticule object to render the lines in the background.default voidsetShowOutline(boolean showOutline)Setstrueto render the outline in the background.default voidsetValues(List<T> values)Sets the data property of a data set for a chart is specified as an array ofGeoDataPoint.default voidsetValues(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.BarDataset
getBase, getBaseCallback, getBorderRadius, getBorderRadiusAsObjects, getBorderRadiusCallback, getBorderSkipped, getBorderSkippedCallback, getBorderWidth, getBorderWidthAsObjects, getBorderWidthCallback, getDatasetOptionsHandler, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getDefaultHoverBackgroundColorAsString, getDefaultHoverBorderColorAsString, getDefaultHoverBorderWidth, getEnableBorderRadiusCallback, getFloatingData, getFloatingData, getHoverBorderRadius, getHoverBorderRadiusAsObjects, getHoverBorderRadiusCallback, getHoverBorderWidth, getHoverBorderWidthAsObjects, getHoverBorderWidthCallback, getIndexAxis, getInflateAmount, getInflateAmountCallback, getLabel, getOrderHandler, getPointStyle, getPointStyleAsCanvas, getPointStyleAsImage, getPointStyleCallback, getPointStyleType, getXAxisID, getYAxisID, isAutoInflateAmount, isEnableBorderRadius, setAutoInflateAmount, setBase, setBase, setBase, setBorderRadius, setBorderRadius, setBorderRadius, setBorderRadius, setBorderRadius, setBorderSkipped, setBorderSkipped, setBorderSkipped, setBorderSkipped, setBorderSkipped, setBorderWidth, setBorderWidth, setBorderWidth, setBorderWidth, setBorderWidth, setEnableBorderRadius, setEnableBorderRadius, setEnableBorderRadius, setFloatingData, setFloatingData, setFloatingData, setHoverBorderRadius, setHoverBorderRadius, setHoverBorderRadius, setHoverBorderRadius, setHoverBorderRadius, setHoverBorderWidth, setHoverBorderWidth, setHoverBorderWidth, setHoverBorderWidth, setHoverBorderWidth, setIndexAxis, setInflateAmount, setInflateAmount, setInflateAmount, setPointStyle, setPointStyle, setPointStyle, setPointStyle, setPointStyle, setPointStyle, setXAxisID, setXAxisID, setYAxisID, setYAxisID
-
Methods inherited from class org.pepstock.charba.client.data.HoverFlexDataset
getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPatterns, getBackgroundColorAsString, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getColors, getHoverBackgroundColor, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderColor, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getWidths, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setColors, setColors, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setWidths
-
Methods inherited from class org.pepstock.charba.client.data.Dataset
createContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, getDataCount, getDataset, getDataType, getDefaultValues, getHoverBackgroundColorCallback, getHoverBorderColorCallback, getId, 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, 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, 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.options.HasBarDatasetOptions
getBarPercentage, getBarThickness, getCategoryPercentage, getMaxBarThickness, getMinBarLength, isGrouped, setBarPercentage, setBarThickness, setCategoryPercentage, setGrouped, setMaxBarThickness, setMinBarLength
-
Methods inherited from interface org.pepstock.charba.client.data.HasDataPoints
getDataPoints, getDataPoints, setDataPoints, setDataPoints
-
Methods inherited from interface org.pepstock.charba.client.data.HasDataset
getDataset
-
-
-
-
Constructor Detail
-
ChoroplethDataset
public ChoroplethDataset()
Creates a data set.
It uses the global options has default.
-
ChoroplethDataset
public ChoroplethDataset(IsDefaultOptions defaultValues)
Creates a data set setting the defaults value.- Parameters:
defaultValues- default options
-
-
Method Detail
-
getHandler
public org.pepstock.charba.client.geo.GeoDatasetHandler<ChoroplethDataPoint> getHandler()
-
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- iftruebinds 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)
Setstrueto render the outline in the background.- Parameters:
showOutline-trueto render the outline in the background
-
isShowOutline
public default boolean isShowOutline()
Returnstrueto render the outline in the background.- Returns:
trueto render the outline in the background
-
setShowGraticule
public default void setShowGraticule(boolean showGraticule)
Setstrueto render the lines in the background.- Parameters:
showGraticule-trueto 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()
Returnstrueto render a graticule in the background.- Returns:
trueto 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
nullis 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
-
-