public final class BubbleDataset extends HovingDataset implements HasDataPoints
Dataset.CanvasObjectProperty, Dataset.CommonPropertyDEFAULT_HIDDEN| Modifier | Constructor and Description |
|---|---|
|
BubbleDataset()
Creates a data set.
It uses the global options has default. |
|
BubbleDataset(boolean hidden)
Creates a data set.
It uses the global options has default. |
|
BubbleDataset(IsDefaultOptions defaultValues)
Creates the data set using a default.
|
|
BubbleDataset(IsDefaultOptions defaultValues,
boolean hidden)
Creates the data set using a default.
|
protected |
BubbleDataset(Type type,
boolean hidden)
Creates the data set using chart type related to the data set.
|
protected |
BubbleDataset(Type type,
IsDefaultOptions defaultValues,
boolean hidden)
Creates the data set using a default and chart type related to the data set.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDefaultBackgroundColorAsString()
Returns the default background color value based on type of chart.
|
protected String |
getDefaultBorderColorAsString()
Returns the default border color value based on type of chart.
|
protected int |
getDefaultBorderWidth()
Returns the default border width value based on type of chart.
|
protected String |
getDefaultHoverBackgroundColorAsString()
Returns the default background color value based on type of chart.
|
protected String |
getDefaultHoverBorderColorAsString()
Returns the default border color value based on type of chart.
|
protected int |
getDefaultHoverBorderWidth()
Returns the default border width value based on type of chart.
|
List<Double> |
getHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.
|
RadiusCallback<DatasetContext> |
getHitRadiusCallback()
Returns the hit radius callback, if set, otherwise
null. |
List<Double> |
getHoverRadius()
Returns the radius of the point when hovered.
|
RadiusCallback<DatasetContext> |
getHoverRadiusCallback()
Returns the hover radius callback, if set, otherwise
null. |
default int |
getOrder()
Returns the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
org.pepstock.charba.client.data.OrderHandler |
getOrderHandler()
Returns an order option handler instance.
|
List<PointStyle> |
getPointStyle()
Returns the style of the point.
|
PointStyleCallback |
getPointStyleCallback()
Returns the point style callback, if set, otherwise
null. |
List<Double> |
getRadius()
Returns the radius of the point shape.
|
RadiusCallback<DatasetContext> |
getRadiusCallback()
Returns the radius callback, if set, otherwise
null. |
List<Double> |
getRotation()
Returns the rotation of the point in degrees.
|
RotationCallback<DatasetContext> |
getRotationCallback()
Returns the rotation callback, if set, otherwise
null. |
void |
setHitRadius(double... hitRadius)
Sets the pixel size of the non-displayed point that reacts to mouse events.
|
void |
setHitRadius(NativeCallback hitRadiusCallback)
Sets the hit radius callback.
|
void |
setHitRadius(RadiusCallback<DatasetContext> hitRadiusCallback)
Sets the hit radius callback.
|
void |
setHoverRadius(double... hoverRadius)
Sets the radius of the point when hovered.
|
void |
setHoverRadius(NativeCallback hoverRadiusCallback)
Sets the hover radius callback.
|
void |
setHoverRadius(RadiusCallback<DatasetContext> hoverRadiusCallback)
Sets the hover radius callback.
|
default void |
setOrder(int order)
Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
void |
setPointStyle(NativeCallback pointStyleCallback)
Sets the point style callback.
|
void |
setPointStyle(PointStyle... pointStyle)
Sets the style of the point.
|
void |
setPointStyle(PointStyleCallback pointStyleCallback)
Sets the point style callback.
|
void |
setRadius(double... radius)
Sets the radius of the point shape.
If set to 0, the point is not rendered. |
void |
setRadius(NativeCallback radiusCallback)
Sets the radius callback.
|
void |
setRadius(RadiusCallback<DatasetContext> radiusCallback)
Sets the radius callback.
|
void |
setRotation(double... rotation)
Sets the rotation of the point in degrees.
|
void |
setRotation(NativeCallback rotationCallback)
Sets the rotation callback.
|
void |
setRotation(RotationCallback<DatasetContext> rotationCallback)
Sets the rotation callback.
|
getBorderWidthCallback, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getHoverBorderWidth, getHoverBorderWidthCallback, setBorderWidth, setBorderWidth, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidthgetBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPatterns, getBackgroundColorAsString, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBorderColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBorderWidthgetAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, getData, getDataCount, getDataset, getDataType, getDefaultValues, getHoverBackgroundColorCallback, getHoverBorderColorCallback, getId, getLabel, getOptions, getOptions, getScope, getType, getTypedDataset, hasOptions, invokeColorCallback, isHidden, removeOptions, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setClip, setClip, setData, setData, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setOptions, setOptionscheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, 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, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataPoints, getDataPoints, setDataPoints, setDataPointsgetDatasetgetAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabledextractScopepublic BubbleDataset()
public BubbleDataset(boolean hidden)
hidden - if true, it will be initially hidden.public BubbleDataset(IsDefaultOptions defaultValues)
defaultValues - default optionspublic BubbleDataset(IsDefaultOptions defaultValues, boolean hidden)
defaultValues - default optionshidden - if true, it will be initially hidden.protected BubbleDataset(Type type, boolean hidden)
type - chart type related to the data sethidden - if true, it will be initially hidden.protected BubbleDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
type - chart type related to the data setdefaultValues - default optionshidden - if true, it will be initially hidden.public org.pepstock.charba.client.data.OrderHandler getOrderHandler()
protected String getDefaultBackgroundColorAsString()
DatasetgetDefaultBackgroundColorAsString in class Datasetprotected String getDefaultBorderColorAsString()
DatasetgetDefaultBorderColorAsString in class Datasetprotected int getDefaultBorderWidth()
DatasetgetDefaultBorderWidth in class Datasetprotected String getDefaultHoverBackgroundColorAsString()
DatasetgetDefaultHoverBackgroundColorAsString in class Datasetprotected String getDefaultHoverBorderColorAsString()
DatasetgetDefaultHoverBorderColorAsString in class Datasetprotected int getDefaultHoverBorderWidth()
DatasetgetDefaultHoverBorderWidth in class Datasetpublic void setPointStyle(PointStyle... pointStyle)
pointStyle - array of the style of the point.public List<PointStyle> getPointStyle()
public void setHitRadius(double... hitRadius)
hitRadius - array of the pixel size of the non-displayed point.public List<Double> getHitRadius()
public void setHoverRadius(double... hoverRadius)
hoverRadius - array of the radius of the point when hovered.public List<Double> getHoverRadius()
public void setRadius(double... radius)
radius - array of the radius of the point shape.public List<Double> getRadius()
public void setRotation(double... rotation)
rotation - array of the rotation of the point in degrees.public List<Double> getRotation()
public RadiusCallback<DatasetContext> getRadiusCallback()
null.null.public void setRadius(RadiusCallback<DatasetContext> radiusCallback)
radiusCallback - the radius callback to setpublic void setRadius(NativeCallback radiusCallback)
radiusCallback - the radius callback to setpublic RadiusCallback<DatasetContext> getHitRadiusCallback()
null.null.public void setHitRadius(RadiusCallback<DatasetContext> hitRadiusCallback)
hitRadiusCallback - the hit radius callback to setpublic void setHitRadius(NativeCallback hitRadiusCallback)
hitRadiusCallback - the hit radius callback to setpublic RadiusCallback<DatasetContext> getHoverRadiusCallback()
null.null.public void setHoverRadius(RadiusCallback<DatasetContext> hoverRadiusCallback)
hoverRadiusCallback - the hover radius callback to setpublic void setHoverRadius(NativeCallback hoverRadiusCallback)
hoverRadiusCallback - the hover radius callback to setpublic RotationCallback<DatasetContext> getRotationCallback()
null.null.public void setRotation(RotationCallback<DatasetContext> rotationCallback)
rotationCallback - the rotation callback to setpublic void setRotation(NativeCallback rotationCallback)
rotationCallback - the rotation callback to setpublic PointStyleCallback getPointStyleCallback()
null.null.public void setPointStyle(NativeCallback pointStyleCallback)
pointStyleCallback - the point style callback.public void setPointStyle(PointStyleCallback pointStyleCallback)
pointStyleCallback - the point style callback.public void setOrder(int order)
order - the drawing order of dataset.public int getOrder()