public class RadarDataset extends Dataset
Constructor and Description |
---|
RadarDataset()
Creates a dataset.
It uses the global options has default. |
RadarDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.
|
Modifier and Type | Method and Description |
---|---|
IsColor |
getBackgroundColor()
Returns the fill color under the line.
|
Gradient |
getBackgroundColorAsGradient()
Returns the fill gradient under the line.
|
Pattern |
getBackgroundColorAsPattern()
Returns the fill pattern under the line.
|
String |
getBackgroundColorAsString()
Returns the fill color under the line.
|
CapStyle |
getBorderCapStyle()
Returns how the end points of every line are drawn.
|
IsColor |
getBorderColor()
Returns the color of the line.
|
Gradient |
getBorderColorAsGradient()
Returns the gradient of the line.
|
String |
getBorderColorAsString()
Returns the color of the line.
|
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.
|
int |
getBorderDashOffset()
Returns the line dash pattern offset or "phase".
|
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. |
int |
getBorderWidth()
Returns the width of the line in pixels.
|
IsFill |
getFill()
Returns how to fill the area under the line.
|
double |
getLineTension()
Returns curve tension of the line.
|
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.
|
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.
|
List<Integer> |
getPointBorderWidth()
Returns the width of the point border in pixels.
|
List<Double> |
getPointHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.
|
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.
|
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.
|
List<Integer> |
getPointHoverBorderWidth()
Returns the border width of point when hovered.
|
List<Double> |
getPointHoverRadius()
Returns the radius of the point when hovered.
|
List<Double> |
getPointRadius()
Returns the radius of the point shape.
|
List<Double> |
getPointRotation()
Returns the rotation of the point in degrees.
|
List<PointStyle> |
getPointStyle()
Returns the style of the point.
|
List<ImageElement> |
getPointStyleAsImages()
Returns the style of the point as image.
|
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 |
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(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(int borderDashOffset)
Sets the line dash pattern offset or "phase".
|
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(boolean fill)
Sets how to fill the area under the line.
|
void |
setFill(int index)
Sets how to fill the area under the line, by absolute dataset index.
|
void |
setFill(IsFill fill)
Sets how to fill the area under the line.
|
void |
setFill(String index)
Sets how to fill the area under the line, by relative dataset index.
|
void |
setLineTension(double lineTension)
Sets curve tension of the line.
|
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(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(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 |
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 background color when hovered.
|
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(int... pointHoverBorderWidth)
Sets the border width of point when hovered.
|
void |
setPointHoverRadius(double... pointHoverRadius)
Sets the radius of the point when hovered.
|
void |
setPointRadius(double... pointRadius)
Sets the radius of the point shape.
|
void |
setPointRotation(double... pointRotation)
Sets the rotation of the point in degrees.
|
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.
|
getData, getData, getDataType, getId, getLabel, getOptions, getType, hasOptions, isHidden, setData, setData, setHidden, setLabel, setOptions, setType
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 RadarDataset()
public RadarDataset(IsDefaultOptions defaultValues)
defaultValues
- default optionspublic 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 void setFill(boolean fill)
fill
- true
to fill, otherwise false
.public void setFill(int index)
index
- absolute dataset index of the chart.public void setFill(String index)
index
- relative dataset index of the chart.public void setFill(IsFill fill)
fill
- how to fill the area under the line.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.