public final class DatasetElementOptions extends NativeObjectContainer
Modifier and Type | Method and Description |
---|---|
TooltipLabelColor |
createTooltipLabelColor()
Create new
TooltipLabelColor filling it with background and border color of dataset element. |
TooltipLabelPointStyle |
createTooltipLabelPointStyle()
Create new
TooltipLabelPointStyle filling it with point style and rotation of dataset element. |
double |
getAngle()
Returns the arc angle to cover.
|
ArcBorderRadius |
getArcBorderRadius()
Returns the border radius of the dataset item in pixels as
ArcBorderRadius . |
IsColor |
getBackgroundColor()
Returns the background color of the dataset item.
|
CanvasGradientItem |
getBackgroundColorAsCanvasGradient()
Returns the background color as canvas gradient.
|
CanvasPatternItem |
getBackgroundColorAsCanvasPattern()
Returns the background color as canvas pattern.
|
Gradient |
getBackgroundColorAsGradient()
Returns the background color as gradient.
|
Pattern |
getBackgroundColorAsPattern()
Returns the background color as pattern.
|
String |
getBackgroundColorAsString()
Returns the background color of the dataset item.
|
BarBorderRadius |
getBarBorderRadius()
Returns the border radius of the dataset item in pixels as
BarBorderRadius . |
double |
getBarPercentage()
Returns the percent (0-1) of the available width each bar should be within the category width.
|
BorderAlign |
getBorderAlign()
Returns the property to set the border alignment on chart datasets.
|
CapStyle |
getBorderCapStyle()
Returns how the end points of every line are drawn.
|
IsColor |
getBorderColor()
Returns the color of the dataset item border
|
CanvasGradientItem |
getBorderColorAsCanvasGradient()
Returns the border color as canvas gradient.
|
Gradient |
getBorderColorAsGradient()
Returns the border color as gradient.
|
String |
getBorderColorAsString()
Returns the color of the dataset item border
|
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.
|
double |
getBorderDashOffset()
Returns the line dash pattern offset.
|
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).
|
int |
getBorderRadius()
Returns the bar border radius (in pixels).
|
BorderSkipped |
getBorderSkipped()
Returns the edge to skip drawing the border for.
|
int |
getBorderWidth()
Returns the border width of the dataset item in pixels.
|
BarBorderWidth |
getBorderWidthAsObject()
Returns the border width of the dataset item in pixels as
BarBorderWidth . |
double |
getCategoryPercentage()
Returns the percent (0-1) of the available width each category should be within the sample width.
|
CubicInterpolationMode |
getCubicInterpolationMode()
Returns algorithm used to interpolate a smooth curve from the discrete data points.
|
IsFill |
getFill()
Returns how to fill the area under the line.
|
double |
getHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.
|
int |
getHoverBorderWidth()
Returns the border width of point when hovered.
|
double |
getHoverRadius()
Returns the radius of the point when hovered.
|
int |
getOffset()
Returns the arc offset (in pixels).
|
PointStyle |
getPointStyle()
Returns the style of the point.
|
Canvas |
getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returns null . |
Img |
getPointStyleAsImage()
Returns the style of the point as image.
If property is missing or not an image, returns null . |
PointStyleType |
getPointStyleType()
Returns the type of point style.
|
double |
getRadius()
Returns the radius of the point.
|
double |
getRotation()
Returns the point rotation (in degrees).
|
double |
getTension()
Returns the Bézier curve tension (0 for no Bézier curves).
|
double |
getWeight()
Returns the relative thickness of the dataset.
|
boolean |
isBackgroundColorAsColor()
Returns
true if the background color is defined as color. |
boolean |
isBackgroundColorAsGradient()
Returns
true if the background color is defined as gradient. |
boolean |
isBackgroundColorAsPattern()
Returns
true if the background color is defined as canvas pattern. |
boolean |
isBorderColorAsColor()
Returns
true if the border color is defined as color. |
boolean |
isBorderColorAsGradient()
Returns
true if the border color is defined as gradient. |
boolean |
isBorderRadiusAsObject()
Returns
true if the border width is defined as BarBorderRadius . |
boolean |
isBorderWidthAsObject()
Returns
true if the border width is defined as BarBorderWidth . |
boolean |
isCapBezierPoints()
Returns
true to keep Bézier control inside the chart, false for no restriction. |
Stepped |
isStepped()
Returns if the line is shown as a stepped line.
|
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
public boolean isBackgroundColorAsColor()
true
if the background color is defined as color.true
if the background color is defined as colorpublic boolean isBackgroundColorAsGradient()
true
if the background color is defined as gradient.true
if the background color is defined as gradientpublic boolean isBackgroundColorAsPattern()
true
if the background color is defined as canvas pattern.true
if the background color is defined as canvas patternpublic String getBackgroundColorAsString()
public IsColor getBackgroundColor()
public Gradient getBackgroundColorAsGradient()
null
if is not a gradientpublic CanvasGradientItem getBackgroundColorAsCanvasGradient()
null
if is not a canvas gradientpublic Pattern getBackgroundColorAsPattern()
null
if is not a patternpublic CanvasPatternItem getBackgroundColorAsCanvasPattern()
null
if is not a canvas patternpublic boolean isBorderWidthAsObject()
true
if the border width is defined as BarBorderWidth
.true
if the border width is defined as BarBorderWidth
public int getBorderWidth()
public BarBorderWidth getBorderWidthAsObject()
BarBorderWidth
.BarBorderWidth
.public boolean isBorderColorAsColor()
true
if the border color is defined as color.true
if the border color is defined as colorpublic boolean isBorderColorAsGradient()
true
if the border color is defined as gradient.true
if the border color is defined as gradientpublic String getBorderColorAsString()
public IsColor getBorderColor()
public Gradient getBorderColorAsGradient()
null
if is not a gradientpublic CanvasGradientItem getBorderColorAsCanvasGradient()
null
if is not a canvas gradientpublic double getBarPercentage()
public double getCategoryPercentage()
public BorderAlign getBorderAlign()
public double getWeight()
public double getAngle()
public int getOffset()
public BorderSkipped getBorderSkipped()
public boolean isBorderRadiusAsObject()
true
if the border width is defined as BarBorderRadius
.true
if the border width is defined as BarBorderRadius
public int getBorderRadius()
public BarBorderRadius getBarBorderRadius()
BarBorderRadius
.BarBorderRadius
.public ArcBorderRadius getArcBorderRadius()
ArcBorderRadius
.ArcBorderRadius
.public double getTension()
public CapStyle getBorderCapStyle()
public List<Integer> getBorderDash()
public double getBorderDashOffset()
public JoinStyle getBorderJoinStyle()
public boolean isCapBezierPoints()
true
to keep Bézier control inside the chart, false
for no restriction.true
to keep Bézier control inside the chart, false
for no restriction.public CubicInterpolationMode getCubicInterpolationMode()
public Stepped isStepped()
public IsFill getFill()
public double getRadius()
public double getHitRadius()
public double getHoverRadius()
public int getHoverBorderWidth()
public double getRotation()
public PointStyleType getPointStyleType()
public Img getPointStyleAsImage()
null
.null
.public Canvas getPointStyleAsCanvas()
null
.null
.public PointStyle getPointStyle()
public TooltipLabelPointStyle createTooltipLabelPointStyle()
TooltipLabelPointStyle
filling it with point style and rotation of dataset element.TooltipLabelPointStyle
filling it with point style and rotation of dataset elementpublic TooltipLabelColor createTooltipLabelColor()
TooltipLabelColor
filling it with background and border color of dataset element.TooltipLabelColor
filling it with background and border color of dataset element