public abstract class LiningDataset extends Dataset implements HasFill
Modifier and Type | Method and Description |
---|---|
protected void |
applyGradient(Key key,
List<CanvasGradient> canvasGradientsList)
Stores the canvas gradients into dataset object by property name passed as key.
|
protected void |
applyPattern(Key key,
List<CanvasPattern> canvasPatternsList)
Stores the canvas patterns into dataset object by property name passed as key.
|
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.
There are three possible values for this property and those are: butt, round and square. |
BorderCapStyleCallback |
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 |
getBorderDashCallback()
Returns the border dash callback, if set, otherwise
null . |
int |
getBorderDashOffset()
Returns the line dash pattern offset or "phase".
|
BorderDashOffsetCallback |
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).
There are three possible values for this property: round, bevel and miter. |
BorderJoinStyleCallback |
getBorderJoinStyleCallback()
Returns the border join style callback, if set, otherwise
null . |
int |
getBorderWidth()
Returns the width of the line in pixels.
|
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.
|
IsFill |
getFill()
Returns how to fill the area under the line.
|
FillCallback |
getFillCallback()
Returns the fill callback, if set, otherwise
null . |
Filler |
getFiller()
Returns a filler instance to use into default methods of this interface.
|
String |
getLabel()
Returns the label for the dataset which appears in the legend and tooltips.
|
double |
getLineTension()
Returns curve tension of the line.
|
default int |
getOrder()
Returns the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
Orderer |
getOrderer()
Returns an order option manager 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.
|
BackgroundColorCallback |
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.
|
BorderColorCallback |
getPointBorderColorCallback()
Returns the point border color callback, if set, otherwise
null . |
List<Integer> |
getPointBorderWidth()
Returns the width of the point border in pixels.
|
BorderWidthCallback |
getPointBorderWidthCallback()
Returns the point border width callback, if set, otherwise
null . |
List<Double> |
getPointHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.
|
RadiusCallback |
getPointHitRadiusCallback()
Returns the point hit radius callback, if set, otherwise
null . |
List<IsColor> |
getPointHoverBackgroundColor()
Returns the point background color when hovered.
|
List<Gradient> |
getPointHoverBackgroundColorAsGradient()
Returns the point background color when hovered.
|
List<String> |
getPointHoverBackgroundColorAsString()
Returns the point background color when hovered.
|
BackgroundColorCallback |
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.
|
BorderColorCallback |
getPointHoverBorderColorCallback()
Returns the point hover border color callback, if set, otherwise
null . |
List<Integer> |
getPointHoverBorderWidth()
Returns the border width of point when hovered.
|
BorderWidthCallback |
getPointHoverBorderWidthCallback()
Returns the point hover border width callback, if set, otherwise
null . |
List<Double> |
getPointHoverRadius()
Returns the radius of the point when hovered.
|
RadiusCallback |
getPointHoverRadiusCallback()
Returns the point hover radius callback, if set, otherwise
null . |
List<Double> |
getPointRadius()
Returns the radius of the point shape.
|
RadiusCallback |
getPointRadiusCallback()
Returns the point radius callback, if set, otherwise
null . |
List<Double> |
getPointRotation()
Returns the rotation of the point in degrees.
|
RotationCallback |
getPointRotationCallback()
Returns the point rotation callback, if set, otherwise
null . |
List<PointStyle> |
getPointStyle()
Returns the style of the point.
|
List<ImageElement> |
getPointStyleAsImages()
Returns the style of the point as image.
|
PointStyleCallback |
getPointStyleCallback()
Returns the point style callback, if set, otherwise
null . |
boolean |
isSpanGaps()
Returns if lines will be drawn between points with no or null data.
|
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(BorderCapStyleCallback borderCapStyleCallback)
Sets the border cap style callback.
|
void |
setBorderCapStyle(CapStyle borderCapStyle)
Sets how the end points of every line are drawn.
There are three possible values for this property and those are: butt, round and square. |
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 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 |
setBorderDashOffset(BorderDashOffsetCallback borderDashOffsetCallback)
Sets the border dash offset callback.
|
void |
setBorderDashOffset(int borderDashOffset)
Sets the line dash pattern offset or "phase".
|
void |
setBorderJoinStyle(BorderJoinStyleCallback 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).
There are three possible values for this property: round, bevel and miter. |
void |
setBorderWidth(int borderWidth)
Sets the width of the line in pixels.
|
void |
setFill(FillCallback fillCallback)
Sets the fill callback.
|
void |
setLineTension(double lineTension)
Sets curve tension of the line.
|
default void |
setOrder(int order)
Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
void |
setPointBackgroundColor(BackgroundColorCallback 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(String... pointBackgroundColor)
Sets the fill color for points.
|
void |
setPointBorderColor(BorderColorCallback 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(String... pointBorderColor)
Sets the border color for points.
|
void |
setPointBorderWidth(BorderWidthCallback pointBorderWidthCallback)
Sets the point border width callback.
|
void |
setPointBorderWidth(int... pointBorderWidth)
Sets the width of the point border in pixels.
|
void |
setPointHitRadius(double... pointHitRadius)
Sets the pixel size of the non-displayed point that reacts to mouse events.
|
void |
setPointHitRadius(RadiusCallback pointHitRadiusCallback)
Sets the point hit radius callback.
|
void |
setPointHoverBackgroundColor(BackgroundColorCallback 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(String... pointHoverBackgroundColor)
Sets the point hover background color when hovered.
|
void |
setPointHoverBorderColor(BorderColorCallback 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(String... pointHoverBorderColor)
Sets the point border color when hovered.
|
void |
setPointHoverBorderWidth(BorderWidthCallback pointHoverBorderWidthCallback)
Sets the point hover border width callback.
|
void |
setPointHoverBorderWidth(int... pointHoverBorderWidth)
Sets the border width of point when hovered.
|
void |
setPointHoverRadius(double... pointHoverRadius)
Sets the radius of the point when hovered.
|
void |
setPointHoverRadius(RadiusCallback pointHoverRadiusCallback)
Sets the point hover radius callback.
|
void |
setPointRadius(double... pointRadius)
Sets the radius of the point shape.
|
void |
setPointRadius(RadiusCallback pointRadiusCallback)
Sets the point radius callback.
|
void |
setPointRotation(double... pointRotation)
Sets the rotation of the point in degrees.
|
void |
setPointRotation(RotationCallback pointRotationCallback)
Sets the point rotation callback.
|
void |
setPointStyle(Image... pointStyle)
Sets the style of the point as image.
|
void |
setPointStyle(ImageElement... pointStyle)
Sets the style of the point as image.
|
void |
setPointStyle(ImageResource... pointStyle)
Sets the style of the point as image.
|
void |
setPointStyle(PointStyle... pointStyle)
Sets the style of the point.
|
void |
setPointStyle(PointStyleCallback pointStyleCallback)
Sets the point style callback.
|
void |
setSpanGaps(boolean spanGaps)
Sets if lines will be drawn between points with no or null data.
|
getBackgroundColorCallback, getBorderColorCallback, getBorderWidthCallback, getData, getData, getDataset, getDataType, getDefaultValues, getId, getOptions, getType, hasOptions, isHidden, setBackgroundColor, setBorderColor, setBorderWidth, setData, setData, setHidden, setLabel, setOptions, setType
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public final Filler getFiller()
HasFill
public Orderer getOrderer()
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 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(int borderDashOffset)
borderDashOffset
- the line dash pattern offset or "phase".public int 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
- There are three possible values for this property: round, bevel and miter.public JoinStyle getBorderJoinStyle()
public IsFill getFill()
public void setLineTension(double lineTension)
lineTension
- curve tension of the linepublic double getLineTension()
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 setPointStyle(PointStyle... pointStyle)
pointStyle
- array of the style of the point.public List<PointStyle> getPointStyle()
public void setPointStyle(ImageResource... pointStyle)
pointStyle
- array of the style of the point as image.public void setPointStyle(Image... pointStyle)
pointStyle
- array of the style of the point as image.public void setPointStyle(ImageElement... pointStyle)
pointStyle
- array of the style of the point as image.public List<ImageElement> getPointStyleAsImages()
public void setPointRotation(double... pointRotation)
pointRotation
- array of the rotation of the point in degrees.public List<Double> getPointRotation()
public void setSpanGaps(boolean spanGaps)
spanGaps
- true
if lines will be drawn between points with no or null data. If false, points with NaN
data will create a break in the linepublic boolean isSpanGaps()
true
if lines will be drawn between points with no or null data. If false, points with NaN data will
create a break in the line.public BackgroundColorCallback getPointBackgroundColorCallback()
null
.null
.public void setPointBackgroundColor(BackgroundColorCallback pointBackgroundColorCallback)
pointBackgroundColorCallback
- the point background color callback.public BorderColorCallback getPointBorderColorCallback()
null
.null
.public void setPointBorderColor(BorderColorCallback pointBorderColorCallback)
pointBorderColorCallback
- the point border color callback.public BorderWidthCallback getPointBorderWidthCallback()
null
.null
.public void setPointBorderWidth(BorderWidthCallback pointBorderWidthCallback)
pointBorderWidthCallback
- the point border width callback to setpublic BackgroundColorCallback getPointHoverBackgroundColorCallback()
null
.null
.public void setPointHoverBackgroundColor(BackgroundColorCallback pointHoverBackgroundColorCallback)
pointHoverBackgroundColorCallback
- the point hover background color callback.public BorderColorCallback getPointHoverBorderColorCallback()
null
.null
.public void setPointHoverBorderColor(BorderColorCallback pointHoverBorderColorCallback)
pointHoverBorderColorCallback
- the point hover border color callback.public BorderWidthCallback getPointHoverBorderWidthCallback()
null
.null
.public void setPointHoverBorderWidth(BorderWidthCallback pointHoverBorderWidthCallback)
pointHoverBorderWidthCallback
- the point hover border width callback to setpublic RadiusCallback getPointRadiusCallback()
null
.null
.public void setPointRadius(RadiusCallback pointRadiusCallback)
pointRadiusCallback
- the point radius callback to setpublic RadiusCallback getPointHitRadiusCallback()
null
.null
.public void setPointHitRadius(RadiusCallback pointHitRadiusCallback)
pointHitRadiusCallback
- the point hit radius callback to setpublic RadiusCallback getPointHoverRadiusCallback()
null
.null
.public void setPointHoverRadius(RadiusCallback pointHoverRadiusCallback)
pointHoverRadiusCallback
- the point hover radius callback to setpublic RotationCallback getPointRotationCallback()
null
.null
.public void setPointRotation(RotationCallback pointRotationCallback)
pointRotationCallback
- the point rotation callback to setpublic PointStyleCallback getPointStyleCallback()
null
.null
.public void setPointStyle(PointStyleCallback pointStyleCallback)
pointStyleCallback
- the point style callback.public BorderCapStyleCallback getBorderCapStyleCallback()
null
.null
.public void setBorderCapStyle(BorderCapStyleCallback borderCapStyleCallback)
borderCapStyleCallback
- the border cap style callback.public BorderJoinStyleCallback getBorderJoinStyleCallback()
null
.null
.public void setBorderJoinStyle(BorderJoinStyleCallback borderJoinStyleCallback)
borderJoinStyleCallback
- the border join style callback.public BorderDashCallback getBorderDashCallback()
null
.null
.public void setBorderDash(BorderDashCallback borderDashCallback)
borderDashCallback
- the border dash callback.public BorderDashOffsetCallback getBorderDashOffsetCallback()
null
.null
.public void setBorderDashOffset(BorderDashOffsetCallback borderDashOffsetCallback)
borderDashOffsetCallback
- the border dash offset callback.public FillCallback getFillCallback()
null
.null
.public void setFill(FillCallback 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 final void applyPattern(Key key, List<CanvasPattern> canvasPatternsList)
Dataset
applyPattern
in class Dataset
key
- key property name to use to store canvas patterns into dataset object.canvasPatternsList
- list of canvas patternsprotected final void applyGradient(Key key, List<CanvasGradient> canvasGradientsList)
Dataset
applyGradient
in class Dataset
key
- key property name to use to store canvas gradients into dataset object.canvasGradientsList
- list of canvas gradientspublic void setOrder(int order)
order
- the drawing order of dataset.public int getOrder()