public class BubbleDataset extends HoverDataset implements HasDataPoints
Dataset.CanvasObjectProperty, Dataset.CommonProperty
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
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.
|
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, returns null . |
default List<Img> |
getPointStyleAsImages()
Returns the style of the point as image.
If property is missing or not an image, returns null . |
default PointStyleCallback |
getPointStyleCallback()
Returns the point style callback, if set, otherwise
null . |
org.pepstock.charba.client.data.DataPointStyleHandler |
getPointStyleHandler()
Returns a point style handler instance to use in the default methods of this interface.
|
default PointStyleType |
getPointStyleType()
Returns the type of point style.
|
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. |
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 |
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, getColors, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getHoverBorderWidth, getHoverBorderWidthCallback, getWidths, setBorderWidth, setBorderWidth, setColors, setColors, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidth, setWidths
getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPatterns, getBackgroundColorAsString, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBorderColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBorderWidth
createContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, 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, setData, setData, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setNormalized, setOptions, setOptions, setParsing
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, 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
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, 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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataPoints, getDataPoints, setDataPoints, setDataPoints
getDataset
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
extractScope
public 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 final org.pepstock.charba.client.data.OrderHandler getOrderHandler()
public final org.pepstock.charba.client.data.DataPointStyleHandler getPointStyleHandler()
protected String getDefaultBackgroundColorAsString()
Dataset
getDefaultBackgroundColorAsString
in class Dataset
protected String getDefaultBorderColorAsString()
Dataset
getDefaultBorderColorAsString
in class Dataset
protected int getDefaultBorderWidth()
Dataset
getDefaultBorderWidth
in class Dataset
protected String getDefaultHoverBackgroundColorAsString()
Dataset
getDefaultHoverBackgroundColorAsString
in class Dataset
protected String getDefaultHoverBorderColorAsString()
Dataset
getDefaultHoverBorderColorAsString
in class Dataset
protected int getDefaultHoverBorderWidth()
Dataset
getDefaultHoverBorderWidth
in class Dataset
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 void setOrder(int order)
order
- the drawing order of dataset.public int getOrder()
public void setPointStyle(PointStyle... pointStyle)
pointStyle
- array of the style of the point.public List<PointStyle> getPointStyle()
null
if point style is set as imagepublic void setPointStyle(Img... pointStyle)
pointStyle
- image element of the style of the point as image.public PointStyleType getPointStyleType()
public List<Img> getPointStyleAsImages()
null
.null
.public void setPointStyle(Canvas... pointStyle)
pointStyle
- canvas element of the style of the point as canvas.public List<Canvas> getPointStyleAsCanvas()
null
.null
.public PointStyleCallback getPointStyleCallback()
null
.null
.public void setPointStyle(PointStyleCallback pointStyleCallback)
pointStyleCallback
- the point style callback.