Package org.pepstock.charba.client.data
Class ScatterDataset
- 
- All Implemented Interfaces:
- HasCallbackScope,- HasDataPoints,- HasDataset,- HasPointFillStrokeStyles,- IsDefaultAnimationContainer,- IsDefaultAnimationTransition,- IsDefaultFillHandler,- HasAnimationOptions,- HasFill,- HasSpanGaps
 
 public final class ScatterDataset extends LineDataset The scatter chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset.
 Extends the line dataset to set fixed properties for scatter chart.
 The scatter dataset can use ONLY data points. If you try to use array of data numbers, an exception will be thrown.- 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.DatasetDEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description ScatterDataset()Creates a dataset.
 It uses the global options has default.ScatterDataset(boolean hidden)Creates a dataset.
 It uses the global options has default.ScatterDataset(IsDefaultOptions defaultValues)Creates the dataset using a default.ScatterDataset(IsDefaultOptions defaultValues, boolean hidden)Creates the dataset using a default.protectedScatterDataset(Type type, boolean hidden)Creates the dataset using chart type related to the dataset.protectedScatterDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)Creates the dataset using a default and chart type related to the dataset.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description default intgetOrder()Returns the drawing order of dataset.
 Also affects order for stacking, tooltip, and legend.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 PointStyleTypegetPointStyleType()Returns the type of point style.voidsetFill(FillCallback fillCallback)Sets the fill callback.voidsetFill(NativeCallback fillCallback)Sets the fill callback.voidsetFill(IsFill fill)Sets how to fill the area under the line.default voidsetOrder(int order)Sets the drawing order of dataset.
 Also affects order for stacking, tooltip, and legend.default voidsetPointStyle(PointStyleCallback<DatasetContext> pointStyleCallback)Sets the point style callback.default voidsetPointStyle(Canvas... pointStyle)Sets the style of the point as canvas.default voidsetPointStyle(Img... pointStyle)Sets the style of the point as image.default voidsetPointStyle(PointStyle... pointStyle)Sets the style of the point.- 
Methods inherited from class org.pepstock.charba.client.data.LineDatasetgetCubicInterpolationMode, getCubicInterpolationModeCallback, getDataString, getDataString, getIndexAxis, getStepped, getSteppedCallback, getXAxisID, getYAxisID, isShowLine, setCubicInterpolationMode, setCubicInterpolationMode, setCubicInterpolationMode, setDataString, setDataString, setIndexAxis, setShowLine, setStepped, setStepped, setStepped, setStepped, setXAxisID, setXAxisID, setYAxisID, setYAxisID
 - 
Methods inherited from class org.pepstock.charba.client.data.LiningDatasetgetBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPattern, getBackgroundColorAsString, getBorderCapStyle, getBorderCapStyleCallback, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderDash, getBorderDashCallback, getBorderDashOffset, getBorderDashOffsetCallback, getBorderJoinStyle, getBorderJoinStyleCallback, getBorderWidth, getBorderWidthCallback, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getDefaultHoverBackgroundColorAsString, getDefaultHoverBorderColorAsString, getDefaultHoverBorderWidth, getDrawActiveElementsOnTopCallback, getFill, getFillCallback, getFillHandler, getHoverBackgroundColor, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderCapStyle, getHoverBorderCapStyleCallback, getHoverBorderColor, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getHoverBorderDash, getHoverBorderDashCallback, getHoverBorderDashOffset, getHoverBorderDashOffsetCallback, getHoverBorderJoinStyle, getHoverBorderJoinStyleCallback, getHoverBorderWidth, getHoverBorderWidthCallback, getLabel, getOrderHandler, getPointBackgroundColor, getPointBackgroundColorAsGradient, getPointBackgroundColorAsString, getPointBackgroundColorCallback, getPointBorderColor, getPointBorderColorAsGradient, getPointBorderColorAsString, getPointBorderColorCallback, getPointBorderWidth, getPointBorderWidthCallback, getPointFillStyleProperty, getPointHitRadius, getPointHitRadiusCallback, getPointHoverBackgroundColor, getPointHoverBackgroundColorAsGradient, getPointHoverBackgroundColorAsString, getPointHoverBackgroundColorCallback, getPointHoverBorderColor, getPointHoverBorderColorAsGradient, getPointHoverBorderColorAsString, getPointHoverBorderColorCallback, getPointHoverBorderWidth, getPointHoverBorderWidthCallback, getPointHoverRadius, getPointHoverRadiusCallback, getPointRadius, getPointRadiusCallback, getPointRotation, getPointRotationCallback, getPointStrokeStyleProperty, getPointStyleHandler, getSpanGapHandler, getTension, isDrawActiveElementsOnTop, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderCapStyle, setBorderCapStyle, setBorderCapStyle, setBorderColor, setBorderColor, setBorderColor, setBorderDash, setBorderDash, setBorderDash, setBorderDashOffset, setBorderDashOffset, setBorderDashOffset, setBorderJoinStyle, setBorderJoinStyle, setBorderJoinStyle, setBorderWidth, setBorderWidth, setBorderWidth, setDrawActiveElementsOnTop, setDrawActiveElementsOnTop, setDrawActiveElementsOnTop, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderCapStyle, setHoverBorderCapStyle, setHoverBorderCapStyle, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderDash, setHoverBorderDash, setHoverBorderDash, setHoverBorderDashOffset, setHoverBorderDashOffset, setHoverBorderDashOffset, setHoverBorderJoinStyle, setHoverBorderJoinStyle, setHoverBorderJoinStyle, setHoverBorderWidth, setHoverBorderWidth, setHoverBorderWidth, setPointBackgroundColor, setPointBackgroundColor, setPointBackgroundColor, setPointBackgroundColor, setPointBackgroundColor, setPointBorderColor, setPointBorderColor, setPointBorderColor, setPointBorderColor, setPointBorderColor, setPointBorderWidth, setPointBorderWidth, setPointBorderWidth, setPointHitRadius, setPointHitRadius, setPointHitRadius, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderWidth, setPointHoverBorderWidth, setPointHoverBorderWidth, setPointHoverRadius, setPointHoverRadius, setPointHoverRadius, setPointRadius, setPointRadius, setPointRadius, setPointRotation, setPointRotation, setPointRotation, setTension
 - 
Methods inherited from class org.pepstock.charba.client.data.DatasetcreateContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, 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, setData, setData, 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, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, 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.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.data.HasDataPointsgetDataPoints, getDataPoints, setDataPoints, setDataPoints
 - 
Methods inherited from interface org.pepstock.charba.client.data.HasDatasetgetDataset
 - 
Methods inherited from interface org.pepstock.charba.client.options.HasFillsetFill, setFill, setFill
 - 
Methods inherited from interface org.pepstock.charba.client.options.HasSpanGapsgetSpanGaps, isSpanGaps, setSpanGaps, setSpanGaps
 
- 
 
- 
- 
- 
Constructor Detail- 
ScatterDatasetpublic ScatterDataset() Creates a dataset.
 It uses the global options has default.
 - 
ScatterDatasetpublic ScatterDataset(boolean hidden) Creates a dataset.
 It uses the global options has default.- Parameters:
- hidden- if- true, it will be initially hidden.
 
 - 
ScatterDatasetpublic ScatterDataset(IsDefaultOptions defaultValues) Creates the dataset using a default.- Parameters:
- defaultValues- default options
 
 - 
ScatterDatasetpublic ScatterDataset(IsDefaultOptions defaultValues, boolean hidden) Creates the dataset using a default.- Parameters:
- defaultValues- default options
- hidden- if- true, it will be initially hidden.
 
 - 
ScatterDatasetprotected ScatterDataset(Type type, boolean hidden) Creates the dataset using chart type related to the dataset.- Parameters:
- type- chart type related to the dataset
- hidden- if- true, it will be initially hidden.
 
 - 
ScatterDatasetprotected ScatterDataset(Type type, IsDefaultOptions defaultValues, boolean hidden) Creates the dataset using a default and chart type related to the dataset.- Parameters:
- type- chart type related to the dataset
- defaultValues- default options
- hidden- if- true, it will be initially hidden.
 
 
- 
 - 
Method Detail- 
setFillpublic void setFill(IsFill fill) Description copied from interface:HasFillSets how to fill the area under the line.- Parameters:
- fill- how to fill the area under the line.
 
 - 
setFillpublic void setFill(FillCallback fillCallback) Description copied from class:LiningDatasetSets the fill callback.- Overrides:
- setFillin class- LiningDataset
- Parameters:
- fillCallback- the fill callback.
 
 - 
setFillpublic void setFill(NativeCallback fillCallback) Description copied from class:LiningDatasetSets the fill callback.- Overrides:
- setFillin class- LiningDataset
- Parameters:
- fillCallback- the fill callback.
 
 - 
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
 
 - 
setPointStylepublic default void setPointStyle(PointStyle... pointStyle) Sets the style of the point.- Parameters:
- pointStyle- array of the style of the point.
 
 - 
getPointStylepublic default List<PointStyle> getPointStyle() Returns the style of the point.- Returns:
- the style of the point or nullif point style is set as image
 
 - 
setPointStylepublic 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.
 
 - 
getPointStyleTypepublic default PointStyleType getPointStyleType() Returns the type of point style.- Returns:
- the type of point style
 
 - 
getPointStyleAsImagespublic 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.
 
 - 
setPointStylepublic 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.
 
 - 
getPointStyleAsCanvaspublic 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.
 
 - 
getPointStyleCallbackpublic default PointStyleCallback<DatasetContext> getPointStyleCallback() Returns the point style callback, if set, otherwisenull.- Returns:
- the point style callback, if set, otherwise null.
 
 - 
setPointStylepublic default void setPointStyle(PointStyleCallback<DatasetContext> pointStyleCallback) Sets the point style callback.- Parameters:
- pointStyleCallback- the point style callback.
 
 
- 
 
-