public abstract class LiningDataset extends Dataset implements HasFill, HasPointFillStrokeStyles, HasSpanGaps
Dataset.CanvasObjectProperty, Dataset.CommonProperty
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
Modifier | Constructor and Description |
---|---|
protected |
LiningDataset(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 |
---|---|
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, returns null . |
Pattern |
getBackgroundColorAsPattern()
Returns the fill pattern under the line.
If property is missing or not a pattern, returns null . |
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, otherwise
null . |
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, returns null . |
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, otherwise
null . |
double |
getBorderDashOffset()
Returns the line dash pattern offset.
|
BorderDashOffsetCallback<DatasetContext> |
getBorderDashOffsetCallback()
Returns the border dash offset callback, if set, otherwise
null . |
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, otherwise
null . |
int |
getBorderWidth()
Returns the width of the line in pixels.
|
WidthCallback<DatasetContext> |
getBorderWidthCallback()
Returns the border width callback, if set, otherwise
null . |
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, otherwise
null . |
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, otherwise
null . |
IsColor |
getHoverBorderColor()
Returns the stroke color of the elements when hovered
|
Gradient |
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, otherwise
null . |
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, otherwise
null . |
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, otherwise
null . |
int |
getHoverBorderWidth()
Returns the stroke width of the elements when hovered.
|
WidthCallback<DatasetContext> |
getHoverBorderWidthCallback()
Returns the hover border width callback, if set, otherwise
null . |
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()
Returns an order option handler instance.
|
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, otherwise
null . |
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, otherwise
null . |
List<Integer> |
getPointBorderWidth()
Returns the width of the point border in pixels.
|
WidthCallback<DatasetContext> |
getPointBorderWidthCallback()
Returns the point border width callback, if set, otherwise
null . |
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, otherwise
null . |
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, otherwise
null . |
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, otherwise
null . |
List<Integer> |
getPointHoverBorderWidth()
Returns the border width of point when hovered.
|
WidthCallback<DatasetContext> |
getPointHoverBorderWidthCallback()
Returns the point hover border width callback, if set, otherwise
null . |
List<Double> |
getPointHoverRadius()
Returns the radius of the point when hovered.
|
RadiusCallback<DatasetContext> |
getPointHoverRadiusCallback()
Returns the point hover radius callback, if set, otherwise
null . |
List<Double> |
getPointRadius()
Returns the radius of the point shape.
|
RadiusCallback<DatasetContext> |
getPointRadiusCallback()
Returns the point radius callback, if set, otherwise
null . |
List<Double> |
getPointRotation()
Returns the rotation of the point in degrees.
|
RotationCallback<DatasetContext> |
getPointRotationCallback()
Returns the point rotation callback, if set, otherwise
null . |
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, 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.
|
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(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 |
setBackgroundColor(String backgroundColor)
Sets the fill color under the line.
|
void |
setBorderCapStyle(CapStyle borderCapStyle)
Sets how the end points of every line are drawn.
|
void |
setBorderCapStyle(CapStyleCallback<DatasetContext> borderCapStyleCallback)
Sets the border cap style callback.
|
void |
setBorderCapStyle(NativeCallback borderCapStyleCallback)
Sets the border cap style callback.
|
void |
setBorderColor(Gradient borderColor)
Sets the gradient of the line.
|
void |
setBorderColor(IsColor borderColor)
Sets the color of the line.
|
void |
setBorderColor(String borderColor)
Sets the color of the line.
|
void |
setBorderDash(BorderDashCallback<DatasetContext> borderDashCallback)
Sets the border dash callback.
|
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(NativeCallback borderDashCallback)
Sets the border dash callback.
|
void |
setBorderDashOffset(BorderDashOffsetCallback<DatasetContext> borderDashOffsetCallback)
Sets the border dash offset callback.
|
void |
setBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset.
|
void |
setBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the border dash offset 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 |
setBorderJoinStyle(JoinStyleCallback<DatasetContext> borderJoinStyleCallback)
Sets the border join style callback.
|
void |
setBorderJoinStyle(NativeCallback borderJoinStyleCallback)
Sets the border join style callback.
|
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(Gradient gradient)
Sets the fill gradient of the elements when hovered.
|
void |
setHoverBackgroundColor(IsColor color)
Sets the fill color of the elements when hovered
|
void |
setHoverBackgroundColor(Pattern pattern)
Sets the fill pattern of the elements when hovered.
|
void |
setHoverBackgroundColor(String color)
Sets the fill color of the elements when hovered
|
void |
setHoverBorderCapStyle(CapStyle borderCapStyle)
Sets how the end points of every line are drawn, when element is 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 |
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 hovered
|
void |
setHoverBorderColor(String color)
Sets the stroke color of the elements when hovered
|
void |
setHoverBorderDash(BorderDashCallback<DatasetContext> borderDashCallback)
Sets the border dash callback when element is hovered.
|
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.
|
void |
setHoverBorderDash(NativeCallback borderDashCallback)
Sets the border dash callback when element is hovered.
|
void |
setHoverBorderDashOffset(BorderDashOffsetCallback<DatasetContext> borderDashOffsetCallback)
Sets the border dash offset callback when element is hovered.
|
void |
setHoverBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset, when element is hovered.
|
void |
setHoverBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the border dash offset 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 |
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 |
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(ColorCallback<DatasetContext> 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 |
setPointBackgroundColor(NativeCallback pointBackgroundColorCallback)
Sets the point background color callback.
|
void |
setPointBackgroundColor(String... pointBackgroundColor)
Sets the fill color for points.
|
void |
setPointBorderColor(ColorCallback<DatasetContext> 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 |
setPointBorderColor(NativeCallback pointBorderColorCallback)
Sets the point border color callback.
|
void |
setPointBorderColor(String... 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(ColorCallback<DatasetContext> 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 |
setPointHoverBackgroundColor(NativeCallback pointHoverBackgroundColorCallback)
Sets the point hover background color callback.
|
void |
setPointHoverBackgroundColor(String... pointHoverBackgroundColor)
Sets the point hover background color when hovered.
|
void |
setPointHoverBorderColor(ColorCallback<DatasetContext> 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 |
setPointHoverBorderColor(NativeCallback pointHoverBorderColorCallback)
Sets the point hover border color callback.
|
void |
setPointHoverBorderColor(String... 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(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 |
setTension(double tension)
Sets curve tension of the line.
|
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
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
setFill, setFill, setFill, setFill
getSpanGaps, isSpanGaps, setSpanGaps, setSpanGaps
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
extractScope
protected LiningDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
type
- chart type related to the data setdefaultValues
- default optionshidden
- if true
, it will be initially hidden.public FillHandler getFillHandler()
HasFill
getFillHandler
in interface HasFill
public final org.pepstock.charba.client.data.OrderHandler getOrderHandler()
public final SpanGapHandler getSpanGapHandler()
HasSpanGaps
getSpanGapHandler
in interface HasSpanGaps
public final org.pepstock.charba.client.data.DataPointStyleHandler getPointStyleHandler()
public Key getPointFillStyleProperty()
HasPointFillStrokeStyles
getPointFillStyleProperty
in interface HasPointFillStrokeStyles
public Key getPointStrokeStyleProperty()
HasPointFillStrokeStyles
getPointStrokeStyleProperty
in interface HasPointFillStrokeStyles
public String getLabel()
public void setBackgroundColor(IsColor backgroundColor)
backgroundColor
- the fill color under the line.public void setBackgroundColor(String backgroundColor)
backgroundColor
- the fill color under the line.public void setBackgroundColor(Pattern backgroundColor)
backgroundColor
- the fill pattern under the line.public void setBackgroundColor(Gradient backgroundColor)
backgroundColor
- the fill gradient under the line.public String getBackgroundColorAsString()
public IsColor getBackgroundColor()
public Pattern getBackgroundColorAsPattern()
null
.null
.public Gradient getBackgroundColorAsGradient()
null
.null
.public void setBorderColor(IsColor borderColor)
borderColor
- the color of the line.public void setBorderColor(String borderColor)
borderColor
- the color of the line.public void setBorderColor(Gradient borderColor)
borderColor
- the gradient of the line.public String getBorderColorAsString()
public IsColor getBorderColor()
public Gradient getBorderColorAsGradient()
null
.null
.public void setBorderWidth(int borderWidth)
borderWidth
- the width of the line in pixels.public int getBorderWidth()
public WidthCallback<DatasetContext> getBorderWidthCallback()
null
.null
.public void setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
borderWidthCallback
- the border width callback to setpublic void setBorderWidth(NativeCallback borderWidthCallback)
borderWidthCallback
- the border width callback to setpublic void setBorderDash(int... borderDash)
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.public List<Integer> getBorderDash()
public void setBorderDashOffset(double borderDashOffset)
borderDashOffset
- the line dash pattern offset.public double getBorderDashOffset()
public void setBorderCapStyle(CapStyle borderCapStyle)
borderCapStyle
- how the end points of every line are drawn.public CapStyle getBorderCapStyle()
public void setBorderJoinStyle(JoinStyle borderJoinStyle)
borderJoinStyle
- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined togetherpublic JoinStyle getBorderJoinStyle()
public IsFill getFill()
getFill
in interface IsDefaultFillHandler
getFill
in interface HasFill
public void setTension(double tension)
tension
- curve tension of the linepublic double getTension()
public void setHoverBackgroundColor(IsColor color)
color
- the fill color of the elements when hoveredpublic void setHoverBackgroundColor(String color)
color
- the fill color of the elements when hoveredpublic void setHoverBackgroundColor(Pattern pattern)
pattern
- the fill pattern of element when hovered.public void setHoverBackgroundColor(Gradient gradient)
gradient
- the fill gradient of the elements when hovered.public String getHoverBackgroundColorAsString()
public IsColor getHoverBackgroundColor()
public Pattern getHoverBackgroundColorAsPatterns()
null
.null
public Gradient getHoverBackgroundColorAsGradient()
null
.null
public void setHoverBorderColor(IsColor color)
color
- the stroke color of the elements when hoveredpublic void setHoverBorderColor(String color)
color
- the stroke color of the elements when hoveredpublic void setHoverBorderColor(Gradient gradient)
gradient
- the stroke gradient of elements when hovered as gradient.public String getHoverBorderColorAsString()
public IsColor getHoverBorderColor()
public Gradient getHoverBorderColorAsGradient()
null
.null
public void setHoverBorderWidth(int width)
width
- the stroke width of the elements when hovered.public int getHoverBorderWidth()
public WidthCallback<DatasetContext> getHoverBorderWidthCallback()
null
.null
.public void setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
hoverBorderWidthCallback
- the hover border width callback to setpublic void setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
hoverBorderWidthCallback
- the hover border width callback to setpublic void setHoverBorderDash(int... borderDash)
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 hoveredpublic List<Integer> getHoverBorderDash()
public void setHoverBorderDashOffset(double borderDashOffset)
borderDashOffset
- the line dash pattern offset, when element is hoveredpublic double getHoverBorderDashOffset()
public void setHoverBorderCapStyle(CapStyle borderCapStyle)
borderCapStyle
- how the end points of every line are drawn, when element is hoveredpublic CapStyle getHoverBorderCapStyle()
public void setHoverBorderJoinStyle(JoinStyle borderJoinStyle)
borderJoinStyle
- There are three possible values for this property: round, bevel and miter.public JoinStyle getHoverBorderJoinStyle()
public void setPointBackgroundColor(IsColor... pointBackgroundColor)
pointBackgroundColor
- array of the fill color for points.public void setPointBackgroundColor(String... pointBackgroundColor)
pointBackgroundColor
- array of the fill color for points.public void setPointBackgroundColor(Gradient... pointBackgroundColor)
pointBackgroundColor
- array of the gradients for points.public List<String> getPointBackgroundColorAsString()
public List<IsColor> getPointBackgroundColor()
public List<Gradient> getPointBackgroundColorAsGradient()
public void setPointBorderColor(IsColor... pointBorderColor)
pointBorderColor
- array of the border color for points.public void setPointBorderColor(String... pointBorderColor)
pointBorderColor
- array of the border color for points.public void setPointBorderColor(Gradient... pointBorderColor)
pointBorderColor
- array of the border gradient for points.public List<String> getPointBorderColorAsString()
public List<IsColor> getPointBorderColor()
public List<Gradient> getPointBorderColorAsGradient()
public void setPointBorderWidth(int... pointBorderWidth)
pointBorderWidth
- array of the width of the point border in pixels.public List<Integer> getPointBorderWidth()
public void setPointHitRadius(double... pointHitRadius)
pointHitRadius
- array of the pixel size of the non-displayed point.public List<Double> getPointHitRadius()
public void setPointHoverBackgroundColor(IsColor... pointHoverBackgroundColor)
pointHoverBackgroundColor
- array of the point background color when hovered.public void setPointHoverBackgroundColor(String... pointHoverBackgroundColor)
pointHoverBackgroundColor
- array of the point background color when hovered.public void setPointHoverBackgroundColor(Gradient... pointHoverBackgroundColor)
pointHoverBackgroundColor
- array of the point background gradient when hovered.public List<String> getPointHoverBackgroundColorAsString()
public List<IsColor> getPointHoverBackgroundColor()
public List<Gradient> getPointHoverBackgroundColorAsGradient()
public void setPointHoverBorderColor(IsColor... pointHoverBorderColor)
pointHoverBorderColor
- array of the point border color when hovered.public void setPointHoverBorderColor(String... pointHoverBorderColor)
pointHoverBorderColor
- array of the point border color when hovered.public void setPointHoverBorderColor(Gradient... pointHoverBorderColor)
pointHoverBorderColor
- array of the point border gradient when hovered.public List<String> getPointHoverBorderColorAsString()
public List<IsColor> getPointHoverBorderColor()
public List<Gradient> getPointHoverBorderColorAsGradient()
public void setPointHoverBorderWidth(int... pointHoverBorderWidth)
pointHoverBorderWidth
- array of the border width of point when hovered.public List<Integer> getPointHoverBorderWidth()
public void setPointHoverRadius(double... pointHoverRadius)
pointHoverRadius
- array of the radius of the point when hovered.public List<Double> getPointHoverRadius()
public void setPointRadius(double... pointRadius)
pointRadius
- array of the radius of the point shape.public List<Double> getPointRadius()
public void setPointRotation(double... pointRotation)
pointRotation
- array of the rotation of the point in degrees.public List<Double> getPointRotation()
public ColorCallback<DatasetContext> getPointBackgroundColorCallback()
null
.null
.public void setPointBackgroundColor(ColorCallback<DatasetContext> pointBackgroundColorCallback)
pointBackgroundColorCallback
- the point background color callback.public void setPointBackgroundColor(NativeCallback pointBackgroundColorCallback)
pointBackgroundColorCallback
- the point background color callback.public ColorCallback<DatasetContext> getPointBorderColorCallback()
null
.null
.public void setPointBorderColor(ColorCallback<DatasetContext> pointBorderColorCallback)
pointBorderColorCallback
- the point border color callback.public void setPointBorderColor(NativeCallback pointBorderColorCallback)
pointBorderColorCallback
- the point border color callback.public WidthCallback<DatasetContext> getPointBorderWidthCallback()
null
.null
.public void setPointBorderWidth(WidthCallback<DatasetContext> pointBorderWidthCallback)
pointBorderWidthCallback
- the point border width callback to setpublic void setPointBorderWidth(NativeCallback pointBorderWidthCallback)
pointBorderWidthCallback
- the point border width callback to setpublic ColorCallback<DatasetContext> getPointHoverBackgroundColorCallback()
null
.null
.public void setPointHoverBackgroundColor(ColorCallback<DatasetContext> pointHoverBackgroundColorCallback)
pointHoverBackgroundColorCallback
- the point hover background color callback.public void setPointHoverBackgroundColor(NativeCallback pointHoverBackgroundColorCallback)
pointHoverBackgroundColorCallback
- the point hover background color callback.public ColorCallback<DatasetContext> getPointHoverBorderColorCallback()
null
.null
.public void setPointHoverBorderColor(ColorCallback<DatasetContext> pointHoverBorderColorCallback)
pointHoverBorderColorCallback
- the point hover border color callback.public void setPointHoverBorderColor(NativeCallback pointHoverBorderColorCallback)
pointHoverBorderColorCallback
- the point hover border color callback.public WidthCallback<DatasetContext> getPointHoverBorderWidthCallback()
null
.null
.public void setPointHoverBorderWidth(WidthCallback<DatasetContext> pointHoverBorderWidthCallback)
pointHoverBorderWidthCallback
- the point hover border width callback to setpublic void setPointHoverBorderWidth(NativeCallback pointHoverBorderWidthCallback)
pointHoverBorderWidthCallback
- the point hover border width callback to setpublic RadiusCallback<DatasetContext> getPointRadiusCallback()
null
.null
.public void setPointRadius(RadiusCallback<DatasetContext> pointRadiusCallback)
pointRadiusCallback
- the point radius callback to setpublic void setPointRadius(NativeCallback pointRadiusCallback)
pointRadiusCallback
- the point radius callback to setpublic RadiusCallback<DatasetContext> getPointHitRadiusCallback()
null
.null
.public void setPointHitRadius(RadiusCallback<DatasetContext> pointHitRadiusCallback)
pointHitRadiusCallback
- the point hit radius callback to setpublic void setPointHitRadius(NativeCallback pointHitRadiusCallback)
pointHitRadiusCallback
- the point hit radius callback to setpublic RadiusCallback<DatasetContext> getPointHoverRadiusCallback()
null
.null
.public void setPointHoverRadius(RadiusCallback<DatasetContext> pointHoverRadiusCallback)
pointHoverRadiusCallback
- the point hover radius callback to setpublic void setPointHoverRadius(NativeCallback pointHoverRadiusCallback)
pointHoverRadiusCallback
- the point hover radius callback to setpublic RotationCallback<DatasetContext> getPointRotationCallback()
null
.null
.public void setPointRotation(RotationCallback<DatasetContext> pointRotationCallback)
pointRotationCallback
- the point rotation callback to setpublic void setPointRotation(NativeCallback pointRotationCallback)
pointRotationCallback
- the point rotation callback to setpublic CapStyleCallback<DatasetContext> getBorderCapStyleCallback()
null
.null
.public void setBorderCapStyle(CapStyleCallback<DatasetContext> borderCapStyleCallback)
borderCapStyleCallback
- the border cap style callback.public void setBorderCapStyle(NativeCallback borderCapStyleCallback)
borderCapStyleCallback
- the border cap style callback.public JoinStyleCallback<DatasetContext> getBorderJoinStyleCallback()
null
.null
.public void setBorderJoinStyle(JoinStyleCallback<DatasetContext> borderJoinStyleCallback)
borderJoinStyleCallback
- the border join style callback.public void setBorderJoinStyle(NativeCallback borderJoinStyleCallback)
borderJoinStyleCallback
- the border join style callback.public BorderDashCallback<DatasetContext> getBorderDashCallback()
null
.null
.public void setBorderDash(BorderDashCallback<DatasetContext> borderDashCallback)
borderDashCallback
- the border dash callback.public void setBorderDash(NativeCallback borderDashCallback)
borderDashCallback
- the border dash callback.public BorderDashOffsetCallback<DatasetContext> getBorderDashOffsetCallback()
null
.null
.public void setBorderDashOffset(BorderDashOffsetCallback<DatasetContext> borderDashOffsetCallback)
borderDashOffsetCallback
- the border dash offset callback.public void setBorderDashOffset(NativeCallback borderDashOffsetCallback)
borderDashOffsetCallback
- the border dash offset callback.public CapStyleCallback<DatasetContext> getHoverBorderCapStyleCallback()
null
.null
public void setHoverBorderCapStyle(CapStyleCallback<DatasetContext> borderCapStyleCallback)
borderCapStyleCallback
- the border cap style callback when element is hoveredpublic void setHoverBorderCapStyle(NativeCallback borderCapStyleCallback)
borderCapStyleCallback
- the border cap style callback when element is hoveredpublic JoinStyleCallback<DatasetContext> getHoverBorderJoinStyleCallback()
null
.null
.public void setHoverBorderJoinStyle(JoinStyleCallback<DatasetContext> borderJoinStyleCallback)
borderJoinStyleCallback
- the border join style callback when element is hovered.public void setHoverBorderJoinStyle(NativeCallback borderJoinStyleCallback)
borderJoinStyleCallback
- the border join style callback when element is hovered.public BorderDashCallback<DatasetContext> getHoverBorderDashCallback()
null
.null
.public void setHoverBorderDash(BorderDashCallback<DatasetContext> borderDashCallback)
borderDashCallback
- the border dash callback when element is hovered.public void setHoverBorderDash(NativeCallback borderDashCallback)
borderDashCallback
- the border dash callback when element is hovered.public BorderDashOffsetCallback<DatasetContext> getHoverBorderDashOffsetCallback()
null
.null
.public void setHoverBorderDashOffset(BorderDashOffsetCallback<DatasetContext> borderDashOffsetCallback)
borderDashOffsetCallback
- the border dash offset callback when element is hovered.public void setHoverBorderDashOffset(NativeCallback borderDashOffsetCallback)
borderDashOffsetCallback
- the border dash offset callback when element is hovered.public FillCallback getFillCallback()
null
.null
.public void setFill(FillCallback fillCallback)
fillCallback
- the fill callback.public void setFill(NativeCallback fillCallback)
fillCallback
- the fill callback.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 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.