Package org.pepstock.charba.client.data
Class LiningDataset
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.data.Dataset
-
- org.pepstock.charba.client.data.LiningDataset
-
- All Implemented Interfaces:
HasCallbackScope
,HasDataset
,HasPointFillStrokeStyles
,IsDefaultAnimationContainer
,IsDefaultAnimationTransition
,IsDefaultFillHandler
,HasAnimationOptions
,HasFill
,HasSpanGaps
- Direct Known Subclasses:
LineDataset
,RadarDataset
public abstract class LiningDataset extends Dataset implements HasFill, HasPointFillStrokeStyles, HasSpanGaps
The chart allows a number of properties to be specified for each data set.
These are used to set display properties for a specific data set.
This class collects a set of common field for Line and Radar charts.- 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.Dataset
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LiningDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
Creates the data set using a default and chart type related to the data set.
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description IsColor
getBackgroundColor()
Returns the fill color under the line.
If property is missing or not a color, returns the default background color.Gradient
getBackgroundColorAsGradient()
Returns the fill gradient under the line.
If property is missing or not a gradient, returnsnull
.Pattern
getBackgroundColorAsPattern()
Returns the fill pattern under the line.
If property is missing or not a pattern, returnsnull
.String
getBackgroundColorAsString()
Returns the fill color under the line.
If property is missing or not a color, returns the default background color.CapStyle
getBorderCapStyle()
Returns how the end points of every line are drawn.CapStyleCallback<DatasetContext>
getBorderCapStyleCallback()
Returns the border cap style callback, if set, otherwisenull
.IsColor
getBorderColor()
Returns the color of the line.
If property is missing or not a color, returns the default border color.Gradient
getBorderColorAsGradient()
Returns the gradient of the line.
If property is missing or not a gradient, returnsnull
.String
getBorderColorAsString()
Returns the color of the line.
If property is missing or not a color, returns the default border color.List<Integer>
getBorderDash()
Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.BorderDashCallback<DatasetContext>
getBorderDashCallback()
Returns the border dash callback, if set, otherwisenull
.double
getBorderDashOffset()
Returns the line dash pattern offset.BorderDashOffsetCallback<DatasetContext>
getBorderDashOffsetCallback()
Returns the border dash offset callback, if set, otherwisenull
.JoinStyle
getBorderJoinStyle()
Returns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).JoinStyleCallback<DatasetContext>
getBorderJoinStyleCallback()
Returns the border join style callback, if set, otherwisenull
.int
getBorderWidth()
Returns the width of the line in pixels.WidthCallback<DatasetContext>
getBorderWidthCallback()
Returns the border width callback, if set, otherwisenull
.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.IsFill
getFill()
Returns how to fill the area under the line.FillCallback
getFillCallback()
Returns the fill callback, if set, otherwisenull
.FillHandler
getFillHandler()
Returns a fill handler instance to use in the default methods of this interface.IsColor
getHoverBackgroundColor()
Returns the fill color of the elements when hovered.Gradient
getHoverBackgroundColorAsGradient()
Returns the fill gradients of elements when hovered.Pattern
getHoverBackgroundColorAsPatterns()
Returns the fill patters of elements when hovered.String
getHoverBackgroundColorAsString()
Returns the fill color of the elements when hovered.CapStyle
getHoverBorderCapStyle()
Returns how the end points of every line are drawn, when element is hovered.CapStyleCallback<DatasetContext>
getHoverBorderCapStyleCallback()
Returns the border cap style callback when element is hovered, if set, otherwisenull
.IsColor
getHoverBorderColor()
Returns the stroke color of the elements when hoveredGradient
getHoverBorderColorAsGradient()
Returns the stroke gradients of the elements when hovered.String
getHoverBorderColorAsString()
Returns the stroke color of the elements when hovered.List<Integer>
getHoverBorderDash()
Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern, when element is hovered.BorderDashCallback<DatasetContext>
getHoverBorderDashCallback()
Returns the border dash callback when element is hovered, if set, otherwisenull
.double
getHoverBorderDashOffset()
Returns the line dash pattern offset, when element is hovered.BorderDashOffsetCallback<DatasetContext>
getHoverBorderDashOffsetCallback()
Returns the border dash offset callback when element is hovered, if set, otherwisenull
.JoinStyle
getHoverBorderJoinStyle()
Returns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped), when element is hovered.
There are three possible values for this property: round, bevel and miter.JoinStyleCallback<DatasetContext>
getHoverBorderJoinStyleCallback()
Returns the border join style callback when element is hovered, if set, otherwisenull
.int
getHoverBorderWidth()
Returns the stroke width of the elements when hovered.WidthCallback<DatasetContext>
getHoverBorderWidthCallback()
Returns the hover border width callback, if set, otherwisenull
.String
getLabel()
Returns the label for the data set which appears in the legend and tooltips.default int
getOrder()
Returns the drawing order of dataset.
Also affects order for stacking, tooltip, and legend.org.pepstock.charba.client.data.OrderHandler
getOrderHandler()
List<IsColor>
getPointBackgroundColor()
Returns the fill color for points.List<Gradient>
getPointBackgroundColorAsGradient()
Returns the fill color for points.List<String>
getPointBackgroundColorAsString()
Returns the fill color for points.ColorCallback<DatasetContext>
getPointBackgroundColorCallback()
Returns the point background color callback, if set, otherwisenull
.List<IsColor>
getPointBorderColor()
Returns the border color for points.List<Gradient>
getPointBorderColorAsGradient()
Returns the border gradient for points.List<String>
getPointBorderColorAsString()
Returns the border color for points.ColorCallback<DatasetContext>
getPointBorderColorCallback()
Returns the point border color callback, if set, otherwisenull
.List<Integer>
getPointBorderWidth()
Returns the width of the point border in pixels.WidthCallback<DatasetContext>
getPointBorderWidthCallback()
Returns the point border width callback, if set, otherwisenull
.Key
getPointFillStyleProperty()
Returns the property which is mapping the point fill style.List<Double>
getPointHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.RadiusCallback<DatasetContext>
getPointHitRadiusCallback()
Returns the point hit radius callback, if set, otherwisenull
.List<IsColor>
getPointHoverBackgroundColor()
Returns the point background color when hovered.
If property is missing or not a color, returns the default point background color.List<Gradient>
getPointHoverBackgroundColorAsGradient()
Returns the point background color when hovered.
If property is missing or not a gradient, returns an empty list.List<String>
getPointHoverBackgroundColorAsString()
Returns the point background color when hovered.
If property is missing or not a color, returns the default point background color.ColorCallback<DatasetContext>
getPointHoverBackgroundColorCallback()
Returns the point hover background color callback, if set, otherwisenull
.List<IsColor>
getPointHoverBorderColor()
Returns the point border color when hovered.List<Gradient>
getPointHoverBorderColorAsGradient()
Returns the point border gradient when hovered.List<String>
getPointHoverBorderColorAsString()
Returns the point border color when hovered.ColorCallback<DatasetContext>
getPointHoverBorderColorCallback()
Returns the point hover border color callback, if set, otherwisenull
.List<Integer>
getPointHoverBorderWidth()
Returns the border width of point when hovered.WidthCallback<DatasetContext>
getPointHoverBorderWidthCallback()
Returns the point hover border width callback, if set, otherwisenull
.List<Double>
getPointHoverRadius()
Returns the radius of the point when hovered.RadiusCallback<DatasetContext>
getPointHoverRadiusCallback()
Returns the point hover radius callback, if set, otherwisenull
.List<Double>
getPointRadius()
Returns the radius of the point shape.RadiusCallback<DatasetContext>
getPointRadiusCallback()
Returns the point radius callback, if set, otherwisenull
.List<Double>
getPointRotation()
Returns the rotation of the point in degrees.RotationCallback<DatasetContext>
getPointRotationCallback()
Returns the point rotation callback, if set, otherwisenull
.Key
getPointStrokeStyleProperty()
Returns the property which is mapping the point stroke style.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
getPointStyleCallback()
Returns the point style callback, if set, otherwisenull
.org.pepstock.charba.client.data.DataPointStyleHandler
getPointStyleHandler()
default PointStyleType
getPointStyleType()
Returns the type of point style.SpanGapHandler
getSpanGapHandler()
Returns a span gap handler instance to use in the default methods of this interface.double
getTension()
Returns curve tension of the line.void
setBackgroundColor(String backgroundColor)
Sets the fill color under the line.void
setBackgroundColor(Gradient backgroundColor)
Sets the fill gradient under the line.void
setBackgroundColor(IsColor backgroundColor)
Sets the fill color under the line.void
setBackgroundColor(Pattern backgroundColor)
Sets the fill pattern under the line.void
setBorderCapStyle(CapStyleCallback<DatasetContext> borderCapStyleCallback)
Sets the border cap style callback.void
setBorderCapStyle(NativeCallback borderCapStyleCallback)
Sets the border cap style callback.void
setBorderCapStyle(CapStyle borderCapStyle)
Sets how the end points of every line are drawn.void
setBorderColor(String borderColor)
Sets the color of the line.void
setBorderColor(Gradient borderColor)
Sets the gradient of the line.void
setBorderColor(IsColor borderColor)
Sets the color of the line.void
setBorderDash(int... borderDash)
Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.void
setBorderDash(BorderDashCallback<DatasetContext> borderDashCallback)
Sets the border dash callback.void
setBorderDash(NativeCallback borderDashCallback)
Sets the border dash callback.void
setBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset.void
setBorderDashOffset(BorderDashOffsetCallback<DatasetContext> borderDashOffsetCallback)
Sets the border dash offset callback.void
setBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the border dash offset callback.void
setBorderJoinStyle(JoinStyleCallback<DatasetContext> borderJoinStyleCallback)
Sets the border join style callback.void
setBorderJoinStyle(NativeCallback borderJoinStyleCallback)
Sets the border join style callback.void
setBorderJoinStyle(JoinStyle borderJoinStyle)
Sets how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).void
setBorderWidth(int borderWidth)
Sets the width of the line in pixels.void
setBorderWidth(NativeCallback borderWidthCallback)
Sets the border width callback.void
setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
Sets the border width callback.void
setFill(FillCallback fillCallback)
Sets the fill callback.void
setFill(NativeCallback fillCallback)
Sets the fill callback.void
setHoverBackgroundColor(String color)
Sets the fill color of the elements when hoveredvoid
setHoverBackgroundColor(Gradient gradient)
Sets the fill gradient of the elements when hovered.void
setHoverBackgroundColor(IsColor color)
Sets the fill color of the elements when hoveredvoid
setHoverBackgroundColor(Pattern pattern)
Sets the fill pattern of the elements when hovered.void
setHoverBorderCapStyle(CapStyleCallback<DatasetContext> borderCapStyleCallback)
Sets the border cap style callback when element is hovered.void
setHoverBorderCapStyle(NativeCallback borderCapStyleCallback)
Sets the border cap style callback when element is hovered.void
setHoverBorderCapStyle(CapStyle borderCapStyle)
Sets how the end points of every line are drawn, when element is hovered.void
setHoverBorderColor(String color)
Sets the stroke color of the elements when hoveredvoid
setHoverBorderColor(Gradient gradient)
Sets the stroke gradient of elements when hovered as gradient.void
setHoverBorderColor(IsColor color)
Sets the stroke color of the elements when hoveredvoid
setHoverBorderDash(int... borderDash)
Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern, when element is hovered.void
setHoverBorderDash(BorderDashCallback<DatasetContext> borderDashCallback)
Sets the border dash callback when element is hovered.void
setHoverBorderDash(NativeCallback borderDashCallback)
Sets the border dash callback when element is hovered.void
setHoverBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset, when element is hovered.void
setHoverBorderDashOffset(BorderDashOffsetCallback<DatasetContext> borderDashOffsetCallback)
Sets the border dash offset callback when element is hovered.void
setHoverBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the border dash offset callback when element is hovered.void
setHoverBorderJoinStyle(JoinStyleCallback<DatasetContext> borderJoinStyleCallback)
Sets the border join style callback when element is hovered.void
setHoverBorderJoinStyle(NativeCallback borderJoinStyleCallback)
Sets the border join style callback when element is hovered.void
setHoverBorderJoinStyle(JoinStyle borderJoinStyle)
Sets how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped), when element is hovered.
There are three possible values for this property: round, bevel and miter.void
setHoverBorderWidth(int width)
Sets the stroke width of the elements when hovered.void
setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
Sets the hover border width callback.void
setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
Sets the hover border width callback.default void
setOrder(int order)
Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend.void
setPointBackgroundColor(String... pointBackgroundColor)
Sets the fill color for points.void
setPointBackgroundColor(ColorCallback<DatasetContext> pointBackgroundColorCallback)
Sets the point background color callback.void
setPointBackgroundColor(NativeCallback pointBackgroundColorCallback)
Sets the point background color callback.void
setPointBackgroundColor(Gradient... pointBackgroundColor)
Sets the gradients for points.void
setPointBackgroundColor(IsColor... pointBackgroundColor)
Sets the fill color for points.void
setPointBorderColor(String... pointBorderColor)
Sets the border color for points.void
setPointBorderColor(ColorCallback<DatasetContext> pointBorderColorCallback)
Sets the point border color callback.void
setPointBorderColor(NativeCallback pointBorderColorCallback)
Sets the point border color callback.void
setPointBorderColor(Gradient... pointBorderColor)
Sets the border gradient for points.void
setPointBorderColor(IsColor... pointBorderColor)
Sets the border color for points.void
setPointBorderWidth(int... pointBorderWidth)
Sets the width of the point border in pixels.void
setPointBorderWidth(NativeCallback pointBorderWidthCallback)
Sets the point border width callback.void
setPointBorderWidth(WidthCallback<DatasetContext> pointBorderWidthCallback)
Sets the point border width callback.void
setPointHitRadius(double... pointHitRadius)
Sets the pixel size of the non-displayed point that reacts to mouse events.void
setPointHitRadius(NativeCallback pointHitRadiusCallback)
Sets the point hit radius callback.void
setPointHitRadius(RadiusCallback<DatasetContext> pointHitRadiusCallback)
Sets the point hit radius callback.void
setPointHoverBackgroundColor(String... pointHoverBackgroundColor)
Sets the point hover background color when hovered.void
setPointHoverBackgroundColor(ColorCallback<DatasetContext> pointHoverBackgroundColorCallback)
Sets the point hover background color callback.void
setPointHoverBackgroundColor(NativeCallback pointHoverBackgroundColorCallback)
Sets the point hover background color callback.void
setPointHoverBackgroundColor(Gradient... pointHoverBackgroundColor)
Sets the point background gradient when hovered.void
setPointHoverBackgroundColor(IsColor... pointHoverBackgroundColor)
Sets the point background color when hovered.void
setPointHoverBorderColor(String... pointHoverBorderColor)
Sets the point border color when hovered.void
setPointHoverBorderColor(ColorCallback<DatasetContext> pointHoverBorderColorCallback)
Sets the point hover border color callback.void
setPointHoverBorderColor(NativeCallback pointHoverBorderColorCallback)
Sets the point hover border color callback.void
setPointHoverBorderColor(Gradient... pointHoverBorderColor)
Sets the point border gradient when hovered.void
setPointHoverBorderColor(IsColor... pointHoverBorderColor)
Sets the point border color when hovered.void
setPointHoverBorderWidth(int... pointHoverBorderWidth)
Sets the border width of point when hovered.void
setPointHoverBorderWidth(NativeCallback pointHoverBorderWidthCallback)
Sets the point hover border width callback.void
setPointHoverBorderWidth(WidthCallback<DatasetContext> pointHoverBorderWidthCallback)
Sets the point hover border width callback.void
setPointHoverRadius(double... pointHoverRadius)
Sets the radius of the point when hovered.void
setPointHoverRadius(NativeCallback pointHoverRadiusCallback)
Sets the point hover radius callback.void
setPointHoverRadius(RadiusCallback<DatasetContext> pointHoverRadiusCallback)
Sets the point hover radius callback.void
setPointRadius(double... pointRadius)
Sets the radius of the point shape.
If set to 0, the point is not rendered.void
setPointRadius(NativeCallback pointRadiusCallback)
Sets the point radius callback.void
setPointRadius(RadiusCallback<DatasetContext> pointRadiusCallback)
Sets the point radius callback.void
setPointRotation(double... pointRotation)
Sets the rotation of the point in degrees.void
setPointRotation(NativeCallback pointRotationCallback)
Sets the point rotation callback.void
setPointRotation(RotationCallback<DatasetContext> pointRotationCallback)
Sets the point rotation callback.default void
setPointStyle(PointStyleCallback pointStyleCallback)
Sets the point style callback.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.void
setTension(double tension)
Sets curve tension of the line.-
Methods inherited from class org.pepstock.charba.client.data.Dataset
createContext, 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.AbstractNode
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
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
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
-
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.HasFill
setFill, setFill, setFill, setFill
-
Methods inherited from interface org.pepstock.charba.client.options.HasSpanGaps
getSpanGaps, isSpanGaps, setSpanGaps, setSpanGaps
-
-
-
-
Constructor Detail
-
LiningDataset
protected LiningDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
Creates the data set using a default and chart type related to the data set.- Parameters:
type
- chart type related to the data setdefaultValues
- default optionshidden
- iftrue
, it will be initially hidden.
-
-
Method Detail
-
getFillHandler
public FillHandler getFillHandler()
Description copied from interface:HasFill
Returns a fill handler instance to use in the default methods of this interface.- Specified by:
getFillHandler
in interfaceHasFill
- Returns:
- a fill handler instance
-
getOrderHandler
public final org.pepstock.charba.client.data.OrderHandler getOrderHandler()
-
getSpanGapHandler
public final SpanGapHandler getSpanGapHandler()
Description copied from interface:HasSpanGaps
Returns a span gap handler instance to use in the default methods of this interface.- Specified by:
getSpanGapHandler
in interfaceHasSpanGaps
- Returns:
- a span gap handler instance
-
getPointStyleHandler
public final org.pepstock.charba.client.data.DataPointStyleHandler getPointStyleHandler()
-
getPointFillStyleProperty
public Key getPointFillStyleProperty()
Description copied from interface:HasPointFillStrokeStyles
Returns the property which is mapping the point fill style.- Specified by:
getPointFillStyleProperty
in interfaceHasPointFillStrokeStyles
- Returns:
- the property which is mapping the point fill style
-
getPointStrokeStyleProperty
public Key getPointStrokeStyleProperty()
Description copied from interface:HasPointFillStrokeStyles
Returns the property which is mapping the point stroke style.- Specified by:
getPointStrokeStyleProperty
in interfaceHasPointFillStrokeStyles
- Returns:
- the property which is mapping the point stroke style
-
getLabel
public String getLabel()
Returns the label for the data set which appears in the legend and tooltips.
-
setBackgroundColor
public void setBackgroundColor(IsColor backgroundColor)
Sets the fill color under the line.- Parameters:
backgroundColor
- the fill color under the line.
-
setBackgroundColor
public void setBackgroundColor(String backgroundColor)
Sets the fill color under the line.- Parameters:
backgroundColor
- the fill color under the line.
-
setBackgroundColor
public void setBackgroundColor(Pattern backgroundColor)
Sets the fill pattern under the line.- Parameters:
backgroundColor
- the fill pattern under the line.
-
setBackgroundColor
public void setBackgroundColor(Gradient backgroundColor)
Sets the fill gradient under the line.- Parameters:
backgroundColor
- the fill gradient under the line.
-
getBackgroundColorAsString
public String getBackgroundColorAsString()
Returns the fill color under the line.
If property is missing or not a color, returns the default background color.- Returns:
- the fill color under the line.
If property is missing or not a color, returns the default background color.
-
getBackgroundColor
public IsColor getBackgroundColor()
Returns the fill color under the line.
If property is missing or not a color, returns the default background color.- Returns:
- the fill color under the line.
If property is missing or not a color, returns the default background color.
-
getBackgroundColorAsPattern
public Pattern getBackgroundColorAsPattern()
Returns the fill pattern under the line.
If property is missing or not a pattern, returnsnull
.- Returns:
- the fill pattern under the line.
If property is missing or not a pattern, returnsnull
.
-
getBackgroundColorAsGradient
public Gradient getBackgroundColorAsGradient()
Returns the fill gradient under the line.
If property is missing or not a gradient, returnsnull
.- Returns:
- the fill gradient under the line.
If property is missing or not a gradient, returnsnull
.
-
setBorderColor
public void setBorderColor(IsColor borderColor)
Sets the color of the line.- Parameters:
borderColor
- the color of the line.
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the color of the line.- Parameters:
borderColor
- the color of the line.
-
setBorderColor
public void setBorderColor(Gradient borderColor)
Sets the gradient of the line.- Parameters:
borderColor
- the gradient of the line.
-
getBorderColorAsString
public String getBorderColorAsString()
Returns the color of the line.
If property is missing or not a color, returns the default border color.- Returns:
- the color of the line.
If property is missing or not a color, returns the default border color.
-
getBorderColor
public IsColor getBorderColor()
Returns the color of the line.
If property is missing or not a color, returns the default border color.- Returns:
- the color of the line.
If property is missing or not a color, returns the default border color.
-
getBorderColorAsGradient
public Gradient getBorderColorAsGradient()
Returns the gradient of the line.
If property is missing or not a gradient, returnsnull
.- Returns:
- the gradient of the line.
If property is missing or not a gradient, returnsnull
.
-
setBorderWidth
public void setBorderWidth(int borderWidth)
Sets the width of the line in pixels.- Parameters:
borderWidth
- the width of the line in pixels.
-
getBorderWidth
public int getBorderWidth()
Returns the width of the line in pixels.- Returns:
- the width of the line in pixels.
-
getBorderWidthCallback
public WidthCallback<DatasetContext> getBorderWidthCallback()
Returns the border width callback, if set, otherwisenull
.- Returns:
- the border width callback, if set, otherwise
null
.
-
setBorderWidth
public void setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
Sets the border width callback.- Parameters:
borderWidthCallback
- the border width callback to set
-
setBorderWidth
public void setBorderWidth(NativeCallback borderWidthCallback)
Sets the border width callback.- Parameters:
borderWidthCallback
- the border width callback to set
-
setBorderDash
public void setBorderDash(int... borderDash)
Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Parameters:
borderDash
- the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
-
getBorderDash
public List<Integer> getBorderDash()
Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Returns:
- the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
-
setBorderDashOffset
public void setBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset.- Parameters:
borderDashOffset
- the line dash pattern offset.
-
getBorderDashOffset
public double getBorderDashOffset()
Returns the line dash pattern offset.- Returns:
- the line dash pattern offset.
-
setBorderCapStyle
public void setBorderCapStyle(CapStyle borderCapStyle)
Sets how the end points of every line are drawn.- Parameters:
borderCapStyle
- how the end points of every line are drawn.
-
getBorderCapStyle
public CapStyle getBorderCapStyle()
Returns how the end points of every line are drawn.- Returns:
- how the end points of every line are drawn.
-
setBorderJoinStyle
public void setBorderJoinStyle(JoinStyle borderJoinStyle)
Sets how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).- Parameters:
borderJoinStyle
- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together
-
getBorderJoinStyle
public JoinStyle getBorderJoinStyle()
Returns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).- Returns:
- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together
-
getFill
public IsFill getFill()
Returns how to fill the area under the line.- Specified by:
getFill
in interfaceHasFill
- Specified by:
getFill
in interfaceIsDefaultFillHandler
- Returns:
- how to fill the area under the line.
-
setTension
public void setTension(double tension)
Sets curve tension of the line. Set to 0 to draw straight lines. This option is ignored if monotone cubic interpolation is used.- Parameters:
tension
- curve tension of the line
-
getTension
public double getTension()
Returns curve tension of the line. Set to 0 to draw straight lines. This option is ignored if monotone cubic interpolation is used.- Returns:
- curve tension of the line.
-
setHoverBackgroundColor
public void setHoverBackgroundColor(IsColor color)
Sets the fill color of the elements when hovered- Parameters:
color
- the fill color of the elements when hovered
-
setHoverBackgroundColor
public void setHoverBackgroundColor(String color)
Sets the fill color of the elements when hovered- Parameters:
color
- the fill color of the elements when hovered
-
setHoverBackgroundColor
public void setHoverBackgroundColor(Pattern pattern)
Sets the fill pattern of the elements when hovered.- Parameters:
pattern
- the fill pattern of element when hovered.
-
setHoverBackgroundColor
public void setHoverBackgroundColor(Gradient gradient)
Sets the fill gradient of the elements when hovered.- Parameters:
gradient
- the fill gradient of the elements when hovered.
-
getHoverBackgroundColorAsString
public String getHoverBackgroundColorAsString()
Returns the fill color of the elements when hovered.- Returns:
- the fill color of the elements when hovered
-
getHoverBackgroundColor
public IsColor getHoverBackgroundColor()
Returns the fill color of the elements when hovered.- Returns:
- the fill color of the elements when hovered
-
getHoverBackgroundColorAsPatterns
public Pattern getHoverBackgroundColorAsPatterns()
Returns the fill patters of elements when hovered. If property is missing or not a pattern, returnsnull
.- Returns:
- the fill patterns of elements when hovered. If property is missing or not a pattern, returns
null
-
getHoverBackgroundColorAsGradient
public Gradient getHoverBackgroundColorAsGradient()
Returns the fill gradients of elements when hovered. If property is missing or not a gradient, returnsnull
.- Returns:
- the fill gradients of elements when hovered. If property is missing or not a gradient, returns
null
-
setHoverBorderColor
public void setHoverBorderColor(IsColor color)
Sets the stroke color of the elements when hovered- Parameters:
color
- the stroke color of the elements when hovered
-
setHoverBorderColor
public void setHoverBorderColor(String color)
Sets the stroke color of the elements when hovered- Parameters:
color
- the stroke color of the elements when hovered
-
setHoverBorderColor
public void setHoverBorderColor(Gradient gradient)
Sets the stroke gradient of elements when hovered as gradient.- Parameters:
gradient
- the stroke gradient of elements when hovered as gradient.
-
getHoverBorderColorAsString
public String getHoverBorderColorAsString()
Returns the stroke color of the elements when hovered.- Returns:
- the stroke color of the elements when hovered.
-
getHoverBorderColor
public IsColor getHoverBorderColor()
Returns the stroke color of the elements when hovered- Returns:
- the stroke color of the elements when hovered
-
getHoverBorderColorAsGradient
public Gradient getHoverBorderColorAsGradient()
Returns the stroke gradients of the elements when hovered. If property is missing or not a pattern, returnsnull
.- Returns:
- list of the stroke gradients of the elements when hovered. If property is missing or not a pattern, returns
null
-
setHoverBorderWidth
public void setHoverBorderWidth(int width)
Sets the stroke width of the elements when hovered.- Parameters:
width
- the stroke width of the elements when hovered.
-
getHoverBorderWidth
public int getHoverBorderWidth()
Returns the stroke width of the elements when hovered.- Returns:
- list of the stroke width of the elements when hovered.
-
getHoverBorderWidthCallback
public WidthCallback<DatasetContext> getHoverBorderWidthCallback()
Returns the hover border width callback, if set, otherwisenull
.- Returns:
- the hover border width callback, if set, otherwise
null
.
-
setHoverBorderWidth
public void setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
Sets the hover border width callback.- Parameters:
hoverBorderWidthCallback
- the hover border width callback to set
-
setHoverBorderWidth
public void setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
Sets the hover border width callback.- Parameters:
hoverBorderWidthCallback
- the hover border width callback to set
-
setHoverBorderDash
public void setHoverBorderDash(int... borderDash)
Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern, when element is hovered.- Parameters:
borderDash
- the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern, when element is hovered
-
getHoverBorderDash
public List<Integer> getHoverBorderDash()
Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern, when element is hovered.- Returns:
- the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern, when element is hovered
-
setHoverBorderDashOffset
public void setHoverBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset, when element is hovered.- Parameters:
borderDashOffset
- the line dash pattern offset, when element is hovered
-
getHoverBorderDashOffset
public double getHoverBorderDashOffset()
Returns the line dash pattern offset, when element is hovered.- Returns:
- the line dash pattern offset, when element is hovered
-
setHoverBorderCapStyle
public void setHoverBorderCapStyle(CapStyle borderCapStyle)
Sets how the end points of every line are drawn, when element is hovered.- Parameters:
borderCapStyle
- how the end points of every line are drawn, when element is hovered
-
getHoverBorderCapStyle
public CapStyle getHoverBorderCapStyle()
Returns how the end points of every line are drawn, when element is hovered.- Returns:
- how the end points of every line are drawn, when element is hovered
-
setHoverBorderJoinStyle
public void setHoverBorderJoinStyle(JoinStyle borderJoinStyle)
Sets how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped), when element is hovered.
There are three possible values for this property: round, bevel and miter. By default this property is set to miter.- Parameters:
borderJoinStyle
- There are three possible values for this property: round, bevel and miter.
-
getHoverBorderJoinStyle
public JoinStyle getHoverBorderJoinStyle()
Returns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped), when element is hovered.
There are three possible values for this property: round, bevel and miter. By default this property is set to miter.- Returns:
- There are three possible values for this property: round, bevel and miter.
-
setPointBackgroundColor
public void setPointBackgroundColor(IsColor... pointBackgroundColor)
Sets the fill color for points.- Parameters:
pointBackgroundColor
- array of the fill color for points.
-
setPointBackgroundColor
public void setPointBackgroundColor(String... pointBackgroundColor)
Sets the fill color for points.- Parameters:
pointBackgroundColor
- array of the fill color for points.
-
setPointBackgroundColor
public void setPointBackgroundColor(Gradient... pointBackgroundColor)
Sets the gradients for points.- Parameters:
pointBackgroundColor
- array of the gradients for points.
-
getPointBackgroundColorAsString
public List<String> getPointBackgroundColorAsString()
Returns the fill color for points. If property is missing or not a color, returns the default point background color color.- Returns:
- list of the fill color for points. If property is missing or not a color, returns the point background color color.
-
getPointBackgroundColor
public List<IsColor> getPointBackgroundColor()
Returns the fill color for points.- Returns:
- list of the fill color for points.
-
getPointBackgroundColorAsGradient
public List<Gradient> getPointBackgroundColorAsGradient()
Returns the fill color for points. If property is missing or not a gradient, returns an empty list.- Returns:
- list of the fill color for points. If property is missing or not a gradient, returns an empty list.
-
setPointBorderColor
public void setPointBorderColor(IsColor... pointBorderColor)
Sets the border color for points.- Parameters:
pointBorderColor
- array of the border color for points.
-
setPointBorderColor
public void setPointBorderColor(String... pointBorderColor)
Sets the border color for points.- Parameters:
pointBorderColor
- array of the border color for points.
-
setPointBorderColor
public void setPointBorderColor(Gradient... pointBorderColor)
Sets the border gradient for points.- Parameters:
pointBorderColor
- array of the border gradient for points.
-
getPointBorderColorAsString
public List<String> getPointBorderColorAsString()
Returns the border color for points. If property is missing or not a color, returns the default point border color.- Returns:
- list of the border color for points. If property is missing or not a color, returns the default point border color.
-
getPointBorderColor
public List<IsColor> getPointBorderColor()
Returns the border color for points. If property is missing or not a color, returns the default point border color.- Returns:
- list of the border color for points. If property is missing or not a color, returns the default point border color.
-
getPointBorderColorAsGradient
public List<Gradient> getPointBorderColorAsGradient()
Returns the border gradient for points. If property is missing or not a gradient, returns an empty list.- Returns:
- list of the border gradient for points. If property is missing or not a gradient, returns an empty list.
-
setPointBorderWidth
public void setPointBorderWidth(int... pointBorderWidth)
Sets the width of the point border in pixels.- Parameters:
pointBorderWidth
- array of the width of the point border in pixels.
-
getPointBorderWidth
public List<Integer> getPointBorderWidth()
Returns the width of the point border in pixels.- Returns:
- list of the width of the point border in pixels.
-
setPointHitRadius
public void setPointHitRadius(double... pointHitRadius)
Sets the pixel size of the non-displayed point that reacts to mouse events.- Parameters:
pointHitRadius
- array of the pixel size of the non-displayed point.
-
getPointHitRadius
public List<Double> getPointHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.- Returns:
- list of the pixel size of the non-displayed point.
-
setPointHoverBackgroundColor
public void setPointHoverBackgroundColor(IsColor... pointHoverBackgroundColor)
Sets the point background color when hovered.- Parameters:
pointHoverBackgroundColor
- array of the point background color when hovered.
-
setPointHoverBackgroundColor
public void setPointHoverBackgroundColor(String... pointHoverBackgroundColor)
Sets the point hover background color when hovered.- Parameters:
pointHoverBackgroundColor
- array of the point background color when hovered.
-
setPointHoverBackgroundColor
public void setPointHoverBackgroundColor(Gradient... pointHoverBackgroundColor)
Sets the point background gradient when hovered.- Parameters:
pointHoverBackgroundColor
- array of the point background gradient when hovered.
-
getPointHoverBackgroundColorAsString
public List<String> getPointHoverBackgroundColorAsString()
Returns the point background color when hovered.
If property is missing or not a color, returns the default point background color.- Returns:
- list of the point background color when hovered.
If property is missing or not a color, returns the default point background color.
-
getPointHoverBackgroundColor
public List<IsColor> getPointHoverBackgroundColor()
Returns the point background color when hovered.
If property is missing or not a color, returns the default point background color.- Returns:
- list of the point background color when hovered.
If property is missing or not a color, returns the default point background color.
-
getPointHoverBackgroundColorAsGradient
public List<Gradient> getPointHoverBackgroundColorAsGradient()
Returns the point background color when hovered.
If property is missing or not a gradient, returns an empty list.- Returns:
- list of the point background color when hovered.
If property is missing or not a gradient, returns an empty list.
-
setPointHoverBorderColor
public void setPointHoverBorderColor(IsColor... pointHoverBorderColor)
Sets the point border color when hovered.- Parameters:
pointHoverBorderColor
- array of the point border color when hovered.
-
setPointHoverBorderColor
public void setPointHoverBorderColor(String... pointHoverBorderColor)
Sets the point border color when hovered.- Parameters:
pointHoverBorderColor
- array of the point border color when hovered.
-
setPointHoverBorderColor
public void setPointHoverBorderColor(Gradient... pointHoverBorderColor)
Sets the point border gradient when hovered.- Parameters:
pointHoverBorderColor
- array of the point border gradient when hovered.
-
getPointHoverBorderColorAsString
public List<String> getPointHoverBorderColorAsString()
Returns the point border color when hovered. If property is missing or not a color, returns the default border color.- Returns:
- list of the point border color when hovered. If property is missing or not a color, returns the default border color.
-
getPointHoverBorderColor
public List<IsColor> getPointHoverBorderColor()
Returns the point border color when hovered. If property is missing or not a color, returns the default border color.- Returns:
- list of the point border color when hovered. If property is missing or not a color, returns the default border color.
-
getPointHoverBorderColorAsGradient
public List<Gradient> getPointHoverBorderColorAsGradient()
Returns the point border gradient when hovered. If property is missing or not a gradient, returns an empty list.- Returns:
- list of the point border gradient when hovered. If property is missing or not a gradient, returns an empty list.
-
setPointHoverBorderWidth
public void setPointHoverBorderWidth(int... pointHoverBorderWidth)
Sets the border width of point when hovered.- Parameters:
pointHoverBorderWidth
- array of the border width of point when hovered.
-
getPointHoverBorderWidth
public List<Integer> getPointHoverBorderWidth()
Returns the border width of point when hovered.- Returns:
- list of the border width of point when hovered.
-
setPointHoverRadius
public void setPointHoverRadius(double... pointHoverRadius)
Sets the radius of the point when hovered.- Parameters:
pointHoverRadius
- array of the radius of the point when hovered.
-
getPointHoverRadius
public List<Double> getPointHoverRadius()
Returns the radius of the point when hovered.- Returns:
- list of the radius of the point when hovered.
-
setPointRadius
public void setPointRadius(double... pointRadius)
Sets the radius of the point shape.
If set to 0, the point is not rendered.- Parameters:
pointRadius
- array of the radius of the point shape.
-
getPointRadius
public List<Double> getPointRadius()
Returns the radius of the point shape.- Returns:
- list of the radius of the point shape.
-
setPointRotation
public void setPointRotation(double... pointRotation)
Sets the rotation of the point in degrees.- Parameters:
pointRotation
- array of the rotation of the point in degrees.
-
getPointRotation
public List<Double> getPointRotation()
Returns the rotation of the point in degrees.- Returns:
- list of the rotation of the point in degrees.
-
getPointBackgroundColorCallback
public ColorCallback<DatasetContext> getPointBackgroundColorCallback()
Returns the point background color callback, if set, otherwisenull
.- Returns:
- the point background color callback, if set, otherwise
null
.
-
setPointBackgroundColor
public void setPointBackgroundColor(ColorCallback<DatasetContext> pointBackgroundColorCallback)
Sets the point background color callback.- Parameters:
pointBackgroundColorCallback
- the point background color callback.
-
setPointBackgroundColor
public void setPointBackgroundColor(NativeCallback pointBackgroundColorCallback)
Sets the point background color callback.- Parameters:
pointBackgroundColorCallback
- the point background color callback.
-
getPointBorderColorCallback
public ColorCallback<DatasetContext> getPointBorderColorCallback()
Returns the point border color callback, if set, otherwisenull
.- Returns:
- the point border color callback, if set, otherwise
null
.
-
setPointBorderColor
public void setPointBorderColor(ColorCallback<DatasetContext> pointBorderColorCallback)
Sets the point border color callback.- Parameters:
pointBorderColorCallback
- the point border color callback.
-
setPointBorderColor
public void setPointBorderColor(NativeCallback pointBorderColorCallback)
Sets the point border color callback.- Parameters:
pointBorderColorCallback
- the point border color callback.
-
getPointBorderWidthCallback
public WidthCallback<DatasetContext> getPointBorderWidthCallback()
Returns the point border width callback, if set, otherwisenull
.- Returns:
- the point border width callback, if set, otherwise
null
.
-
setPointBorderWidth
public void setPointBorderWidth(WidthCallback<DatasetContext> pointBorderWidthCallback)
Sets the point border width callback.- Parameters:
pointBorderWidthCallback
- the point border width callback to set
-
setPointBorderWidth
public void setPointBorderWidth(NativeCallback pointBorderWidthCallback)
Sets the point border width callback.- Parameters:
pointBorderWidthCallback
- the point border width callback to set
-
getPointHoverBackgroundColorCallback
public ColorCallback<DatasetContext> getPointHoverBackgroundColorCallback()
Returns the point hover background color callback, if set, otherwisenull
.- Returns:
- the point hover background color callback, if set, otherwise
null
.
-
setPointHoverBackgroundColor
public void setPointHoverBackgroundColor(ColorCallback<DatasetContext> pointHoverBackgroundColorCallback)
Sets the point hover background color callback.- Parameters:
pointHoverBackgroundColorCallback
- the point hover background color callback.
-
setPointHoverBackgroundColor
public void setPointHoverBackgroundColor(NativeCallback pointHoverBackgroundColorCallback)
Sets the point hover background color callback.- Parameters:
pointHoverBackgroundColorCallback
- the point hover background color callback.
-
getPointHoverBorderColorCallback
public ColorCallback<DatasetContext> getPointHoverBorderColorCallback()
Returns the point hover border color callback, if set, otherwisenull
.- Returns:
- the point hover border color callback, if set, otherwise
null
.
-
setPointHoverBorderColor
public void setPointHoverBorderColor(ColorCallback<DatasetContext> pointHoverBorderColorCallback)
Sets the point hover border color callback.- Parameters:
pointHoverBorderColorCallback
- the point hover border color callback.
-
setPointHoverBorderColor
public void setPointHoverBorderColor(NativeCallback pointHoverBorderColorCallback)
Sets the point hover border color callback.- Parameters:
pointHoverBorderColorCallback
- the point hover border color callback.
-
getPointHoverBorderWidthCallback
public WidthCallback<DatasetContext> getPointHoverBorderWidthCallback()
Returns the point hover border width callback, if set, otherwisenull
.- Returns:
- the point hover border width callback, if set, otherwise
null
.
-
setPointHoverBorderWidth
public void setPointHoverBorderWidth(WidthCallback<DatasetContext> pointHoverBorderWidthCallback)
Sets the point hover border width callback.- Parameters:
pointHoverBorderWidthCallback
- the point hover border width callback to set
-
setPointHoverBorderWidth
public void setPointHoverBorderWidth(NativeCallback pointHoverBorderWidthCallback)
Sets the point hover border width callback.- Parameters:
pointHoverBorderWidthCallback
- the point hover border width callback to set
-
getPointRadiusCallback
public RadiusCallback<DatasetContext> getPointRadiusCallback()
Returns the point radius callback, if set, otherwisenull
.- Returns:
- the point radius callback, if set, otherwise
null
.
-
setPointRadius
public void setPointRadius(RadiusCallback<DatasetContext> pointRadiusCallback)
Sets the point radius callback.- Parameters:
pointRadiusCallback
- the point radius callback to set
-
setPointRadius
public void setPointRadius(NativeCallback pointRadiusCallback)
Sets the point radius callback.- Parameters:
pointRadiusCallback
- the point radius callback to set
-
getPointHitRadiusCallback
public RadiusCallback<DatasetContext> getPointHitRadiusCallback()
Returns the point hit radius callback, if set, otherwisenull
.- Returns:
- the point hit radius callback, if set, otherwise
null
.
-
setPointHitRadius
public void setPointHitRadius(RadiusCallback<DatasetContext> pointHitRadiusCallback)
Sets the point hit radius callback.- Parameters:
pointHitRadiusCallback
- the point hit radius callback to set
-
setPointHitRadius
public void setPointHitRadius(NativeCallback pointHitRadiusCallback)
Sets the point hit radius callback.- Parameters:
pointHitRadiusCallback
- the point hit radius callback to set
-
getPointHoverRadiusCallback
public RadiusCallback<DatasetContext> getPointHoverRadiusCallback()
Returns the point hover radius callback, if set, otherwisenull
.- Returns:
- the point hover radius callback, if set, otherwise
null
.
-
setPointHoverRadius
public void setPointHoverRadius(RadiusCallback<DatasetContext> pointHoverRadiusCallback)
Sets the point hover radius callback.- Parameters:
pointHoverRadiusCallback
- the point hover radius callback to set
-
setPointHoverRadius
public void setPointHoverRadius(NativeCallback pointHoverRadiusCallback)
Sets the point hover radius callback.- Parameters:
pointHoverRadiusCallback
- the point hover radius callback to set
-
getPointRotationCallback
public RotationCallback<DatasetContext> getPointRotationCallback()
Returns the point rotation callback, if set, otherwisenull
.- Returns:
- the point rotation callback, if set, otherwise
null
.
-
setPointRotation
public void setPointRotation(RotationCallback<DatasetContext> pointRotationCallback)
Sets the point rotation callback.- Parameters:
pointRotationCallback
- the point rotation callback to set
-
setPointRotation
public void setPointRotation(NativeCallback pointRotationCallback)
Sets the point rotation callback.- Parameters:
pointRotationCallback
- the point rotation callback to set
-
getBorderCapStyleCallback
public CapStyleCallback<DatasetContext> getBorderCapStyleCallback()
Returns the border cap style callback, if set, otherwisenull
.- Returns:
- the border cap style callback, if set, otherwise
null
.
-
setBorderCapStyle
public void setBorderCapStyle(CapStyleCallback<DatasetContext> borderCapStyleCallback)
Sets the border cap style callback.- Parameters:
borderCapStyleCallback
- the border cap style callback.
-
setBorderCapStyle
public void setBorderCapStyle(NativeCallback borderCapStyleCallback)
Sets the border cap style callback.- Parameters:
borderCapStyleCallback
- the border cap style callback.
-
getBorderJoinStyleCallback
public JoinStyleCallback<DatasetContext> getBorderJoinStyleCallback()
Returns the border join style callback, if set, otherwisenull
.- Returns:
- the border join style callback, if set, otherwise
null
.
-
setBorderJoinStyle
public void setBorderJoinStyle(JoinStyleCallback<DatasetContext> borderJoinStyleCallback)
Sets the border join style callback.- Parameters:
borderJoinStyleCallback
- the border join style callback.
-
setBorderJoinStyle
public void setBorderJoinStyle(NativeCallback borderJoinStyleCallback)
Sets the border join style callback.- Parameters:
borderJoinStyleCallback
- the border join style callback.
-
getBorderDashCallback
public BorderDashCallback<DatasetContext> getBorderDashCallback()
Returns the border dash callback, if set, otherwisenull
.- Returns:
- the border dash callback, if set, otherwise
null
.
-
setBorderDash
public void setBorderDash(BorderDashCallback<DatasetContext> borderDashCallback)
Sets the border dash callback.- Parameters:
borderDashCallback
- the border dash callback.
-
setBorderDash
public void setBorderDash(NativeCallback borderDashCallback)
Sets the border dash callback.- Parameters:
borderDashCallback
- the border dash callback.
-
getBorderDashOffsetCallback
public BorderDashOffsetCallback<DatasetContext> getBorderDashOffsetCallback()
Returns the border dash offset callback, if set, otherwisenull
.- Returns:
- the border dash offset callback, if set, otherwise
null
.
-
setBorderDashOffset
public void setBorderDashOffset(BorderDashOffsetCallback<DatasetContext> borderDashOffsetCallback)
Sets the border dash offset callback.- Parameters:
borderDashOffsetCallback
- the border dash offset callback.
-
setBorderDashOffset
public void setBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the border dash offset callback.- Parameters:
borderDashOffsetCallback
- the border dash offset callback.
-
getHoverBorderCapStyleCallback
public CapStyleCallback<DatasetContext> getHoverBorderCapStyleCallback()
Returns the border cap style callback when element is hovered, if set, otherwisenull
.- Returns:
- the border cap style callback when element is hovered, if set, otherwise
null
-
setHoverBorderCapStyle
public void setHoverBorderCapStyle(CapStyleCallback<DatasetContext> borderCapStyleCallback)
Sets the border cap style callback when element is hovered.- Parameters:
borderCapStyleCallback
- the border cap style callback when element is hovered
-
setHoverBorderCapStyle
public void setHoverBorderCapStyle(NativeCallback borderCapStyleCallback)
Sets the border cap style callback when element is hovered.- Parameters:
borderCapStyleCallback
- the border cap style callback when element is hovered
-
getHoverBorderJoinStyleCallback
public JoinStyleCallback<DatasetContext> getHoverBorderJoinStyleCallback()
Returns the border join style callback when element is hovered, if set, otherwisenull
.- Returns:
- the border join style callback when element is hovered, if set, otherwise
null
.
-
setHoverBorderJoinStyle
public void setHoverBorderJoinStyle(JoinStyleCallback<DatasetContext> borderJoinStyleCallback)
Sets the border join style callback when element is hovered.- Parameters:
borderJoinStyleCallback
- the border join style callback when element is hovered.
-
setHoverBorderJoinStyle
public void setHoverBorderJoinStyle(NativeCallback borderJoinStyleCallback)
Sets the border join style callback when element is hovered.- Parameters:
borderJoinStyleCallback
- the border join style callback when element is hovered.
-
getHoverBorderDashCallback
public BorderDashCallback<DatasetContext> getHoverBorderDashCallback()
Returns the border dash callback when element is hovered, if set, otherwisenull
.- Returns:
- the border dash callback when element is hovered, if set, otherwise
null
.
-
setHoverBorderDash
public void setHoverBorderDash(BorderDashCallback<DatasetContext> borderDashCallback)
Sets the border dash callback when element is hovered.- Parameters:
borderDashCallback
- the border dash callback when element is hovered.
-
setHoverBorderDash
public void setHoverBorderDash(NativeCallback borderDashCallback)
Sets the border dash callback when element is hovered.- Parameters:
borderDashCallback
- the border dash callback when element is hovered.
-
getHoverBorderDashOffsetCallback
public BorderDashOffsetCallback<DatasetContext> getHoverBorderDashOffsetCallback()
Returns the border dash offset callback when element is hovered, if set, otherwisenull
.- Returns:
- the border dash offset callback when element is hovered, if set, otherwise
null
.
-
setHoverBorderDashOffset
public void setHoverBorderDashOffset(BorderDashOffsetCallback<DatasetContext> borderDashOffsetCallback)
Sets the border dash offset callback when element is hovered.- Parameters:
borderDashOffsetCallback
- the border dash offset callback when element is hovered.
-
setHoverBorderDashOffset
public void setHoverBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the border dash offset callback when element is hovered.- Parameters:
borderDashOffsetCallback
- the border dash offset callback when element is hovered.
-
getFillCallback
public FillCallback getFillCallback()
Returns the fill callback, if set, otherwisenull
.- Returns:
- the fill callback, if set, otherwise
null
.
-
setFill
public void setFill(FillCallback fillCallback)
Sets the fill callback.- Parameters:
fillCallback
- the fill callback.
-
setFill
public void setFill(NativeCallback fillCallback)
Sets the fill callback.- Parameters:
fillCallback
- the fill callback.
-
getDefaultBackgroundColorAsString
protected String getDefaultBackgroundColorAsString()
Description copied from class:Dataset
Returns the default background color value based on type of chart.- Overrides:
getDefaultBackgroundColorAsString
in classDataset
- Returns:
- the default background color value based on type of chart.
-
getDefaultBorderColorAsString
protected String getDefaultBorderColorAsString()
Description copied from class:Dataset
Returns the default border color value based on type of chart.- Overrides:
getDefaultBorderColorAsString
in classDataset
- Returns:
- the default border color value based on type of chart.
-
getDefaultBorderWidth
protected int getDefaultBorderWidth()
Description copied from class:Dataset
Returns the default border width value based on type of chart.- Overrides:
getDefaultBorderWidth
in classDataset
- Returns:
- the default border width value based on type of chart.
-
getDefaultHoverBackgroundColorAsString
protected String getDefaultHoverBackgroundColorAsString()
Description copied from class:Dataset
Returns the default background color value based on type of chart.- Overrides:
getDefaultHoverBackgroundColorAsString
in classDataset
- Returns:
- the default background color value based on type of chart.
-
getDefaultHoverBorderColorAsString
protected String getDefaultHoverBorderColorAsString()
Description copied from class:Dataset
Returns the default border color value based on type of chart.- Overrides:
getDefaultHoverBorderColorAsString
in classDataset
- Returns:
- the default border color value based on type of chart.
-
getDefaultHoverBorderWidth
protected int getDefaultHoverBorderWidth()
Description copied from class:Dataset
Returns the default border width value based on type of chart.- Overrides:
getDefaultHoverBorderWidth
in classDataset
- Returns:
- the default border width value based on type of chart.
-
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
-
setPointStyle
public default void setPointStyle(PointStyle... pointStyle)
Sets the style of the point.- Parameters:
pointStyle
- array of the style of the point.
-
getPointStyle
public default List<PointStyle> getPointStyle()
Returns the style of the point.- Returns:
- the style of the point or
null
if point style is set as image
-
setPointStyle
public 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.
-
getPointStyleType
public default PointStyleType getPointStyleType()
Returns the type of point style.- Returns:
- the type of point style
-
getPointStyleAsImages
public 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
.
-
setPointStyle
public 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.
-
getPointStyleAsCanvas
public 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
.
-
getPointStyleCallback
public default PointStyleCallback getPointStyleCallback()
Returns the point style callback, if set, otherwisenull
.- Returns:
- the point style callback, if set, otherwise
null
.
-
setPointStyle
public default void setPointStyle(PointStyleCallback pointStyleCallback)
Sets the point style callback.- Parameters:
pointStyleCallback
- the point style callback.
-
-