com.vaadin.flow.component.charts.model.
Class TreeSeriesItem
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.AbstractSeriesItem
-
- com.vaadin.flow.component.charts.model.TreeSeriesItem
-
All Implemented Interfaces:
public class TreeSeriesItem extends AbstractSeriesItem
This class represents one node in a
TreeSeries
.See Also:
-
-
Constructor Summary
Constructors Constructor Description TreeSeriesItem()
TreeSeriesItem(String name, int value)
TreeSeriesItem(String name, TreeSeriesItem parent, int value)
TreeSeriesItem(String id, String name)
-
Method Summary
All Methods Modifier and Type Method Description Number
getColorValue()
String
getParent()
Number
getValue()
void
setColorValue(Number colorValue)
This value will decide which color the point gets from the scale of the colorAxis.
void
setParent(TreeSeriesItem parent)
Set the parent of this node.
void
setParent(String parent)
The value should be the id of the point which is the parent.
void
setValue(Number value)
Set the numeric value of this node
-
Methods inherited from class com.vaadin.flow.component.charts.model.AbstractSeriesItem
getClassName, getColor, getColorIndex, getId, getLegendIndex, getMarker, getName, getSliced, getX, getY, setClassName, setColor, setColorIndex, setId, setLegendIndex, setMarker, setName, setSliced, setX, setX, setX, setY
-
-
-
-
Constructor Detail
-
TreeSeriesItem
public TreeSeriesItem()
-
TreeSeriesItem
public TreeSeriesItem(String name, TreeSeriesItem parent, int value)
-
TreeSeriesItem
public TreeSeriesItem(String name, int value)
-
-
Method Detail
-
getParent
public String getParent()
Returns:
See Also:
-
setParent
public void setParent(String parent)
The value should be the id of the point which is the parent. If no points has a matching id, or this option is null, then the parent will be set to the root. Defaults to null.
Parameters:
parent
-
-
setParent
public void setParent(TreeSeriesItem parent)
Set the parent of this node.
Parameters:
parent
-
-
getValue
public Number getValue()
Returns:
See Also:
-
setValue
public void setValue(Number value)
Set the numeric value of this node
Parameters:
value
-
-
getColorValue
public Number getColorValue()
Returns:
See Also:
-
setColorValue
public void setColorValue(Number colorValue)
This value will decide which color the point gets from the scale of the colorAxis.
Parameters:
colorValue
-
-
-