Class TreeSeries
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.AbstractSeries
-
- com.vaadin.flow.component.charts.model.TreeSeries
-
- All Implemented Interfaces:
Series
,Serializable
public class TreeSeries extends AbstractSeries
A collection ofTreeSeriesItems
that compose a multi-root tree. This series is meant to be used withChartType.TREEMAP
charts.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TreeSeries()
TreeSeries(String name)
Constructs a TreeSeries with the given nameTreeSeries(String name, Collection<TreeSeriesItem> data)
Constructs a TreeSeries with the given name and data
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(TreeSeriesItem item)
Add given item to the seriesvoid
addAll(TreeSeriesItem... items)
Add all the given items to the seriesvoid
clearSeries()
Remove all items in the series.Collection<TreeSeriesItem>
getData()
Return an unmodifiable copy of the items in this series.void
setData(Collection<TreeSeriesItem> data)
Set the list ofTreeSeriesItem
in this series.-
Methods inherited from class com.vaadin.flow.component.charts.model.AbstractSeries
getColorAxis, getConfiguration, getId, getName, getPlotOptions, getStack, getxAxis, getyAxis, isVisible, setColorAxis, setConfiguration, setId, setName, setPlotOptions, setStack, setVisible, setVisible, setxAxis, setyAxis, setyAxis, updateSeries
-
-
-
-
Constructor Detail
-
TreeSeries
public TreeSeries()
-
TreeSeries
public TreeSeries(String name)
Constructs a TreeSeries with the given name- Parameters:
name
- The name of this series.
-
TreeSeries
public TreeSeries(String name, Collection<TreeSeriesItem> data)
Constructs a TreeSeries with the given name and data- Parameters:
name
- The name of this seriesdata
- The data of this series
-
-
Method Detail
-
getData
public Collection<TreeSeriesItem> getData()
Return an unmodifiable copy of the items in this series.- Returns:
- See Also:
setData(Collection)
-
setData
public void setData(Collection<TreeSeriesItem> data)
Set the list ofTreeSeriesItem
in this series. The items are the whole tree, and the list is not ordered.- Parameters:
data
-
-
clearSeries
public void clearSeries()
Remove all items in the series.
-
add
public void add(TreeSeriesItem item)
Add given item to the series- Parameters:
item
-
-
addAll
public void addAll(TreeSeriesItem... items)
Add all the given items to the series- Parameters:
items
-
-
-