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.DatasetDataset.CanvasObjectProperty, Dataset.CommonProperty
 
- 
 - 
Field Summary- 
Fields inherited from class org.pepstock.charba.client.data.BarDatasetFLOATING_BAR_DATA_FACTORY
 - 
Fields inherited from class org.pepstock.charba.client.data.DatasetDEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
 
- 
 - 
Constructor SummaryConstructors 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 SummaryAll 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.BarDatasetgetBase, 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.HoverFlexDatasetgetBackgroundColor, 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.DatasetcreateContext, 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.AbstractNodecheckAndAddToParent, 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.NativeObjectContainercheckAndGetColor, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.options.HasAnimationOptionsgetAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
 - 
Methods inherited from interface org.pepstock.charba.client.options.HasBarDatasetOptionsgetBarPercentage, getBarThickness, getCategoryPercentage, getMaxBarThickness, getMinBarLength, isGrouped, setBarPercentage, setBarThickness, setCategoryPercentage, setGrouped, setMaxBarThickness, setMinBarLength
 - 
Methods inherited from interface org.pepstock.charba.client.data.HasDataPointsgetDataPoints, getDataPoints, setDataPoints, setDataPoints
 - 
Methods inherited from interface org.pepstock.charba.client.data.HasDatasetgetDataset
 
- 
 
- 
- 
- 
Constructor Detail- 
ChoroplethDatasetpublic ChoroplethDataset() Creates a data set.
 It uses the global options has default.
 - 
ChoroplethDatasetpublic ChoroplethDataset(IsDefaultOptions defaultValues) Creates a data set setting the defaults value.- Parameters:
- defaultValues- default options
 
 
- 
 - 
Method Detail- 
getHandlerpublic org.pepstock.charba.client.geo.GeoDatasetHandler<ChoroplethDataPoint> getHandler() 
 - 
setDatapublic void setData(double... values) Throws an exception because not available.
 - 
setValuespublic 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 of- GeoDataPoint
 
 - 
setValuespublic 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 of- GeoDataPoint
 
 - 
getValuespublic 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.
 
 - 
getValuespublic 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- if- truebinds the new array list in the container
- Returns:
- list of GeoDataPoint.
 
 - 
setOutlinepublic 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
 
 - 
setOutlinepublic 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
 
 - 
getOutlinepublic 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
 
 - 
setShowOutlinepublic default void setShowOutline(boolean showOutline) Setstrueto render the outline in the background.- Parameters:
- showOutline-- trueto render the outline in the background
 
 - 
isShowOutlinepublic default boolean isShowOutline() Returnstrueto render the outline in the background.- Returns:
- trueto render the outline in the background
 
 - 
setShowGraticulepublic default void setShowGraticule(boolean showGraticule) Setstrueto render the lines in the background.- Parameters:
- showGraticule-- trueto render the lines in the background
 
 - 
setShowGraticulepublic 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
 
 - 
isShowGraticulepublic default boolean isShowGraticule() Returnstrueto render a graticule in the background.- Returns:
- trueto render a graticule in the background
 
 - 
getShowGraticulepublic 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
 
 - 
setClipMappublic 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
 
 - 
getClipMappublic 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
 
 - 
setClipMappublic 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
 
 - 
isClipMappublic 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
 
 - 
setOrderpublic 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.
 
 - 
getOrderpublic default int getOrder() Returns the drawing order of dataset.
 Also affects order for stacking, tooltip, and legend.- Returns:
- the drawing order of dataset
 
 
- 
 
-