public class TreeSeries extends AbstractSeries
TreeSeriesItems
that compose a
multi-root tree. This series is meant to be used with
ChartType.TREEMAP
charts.Constructor and Description |
---|
TreeSeries() |
TreeSeries(String name)
Constructs a TreeSeries with the given name
|
TreeSeries(String name,
Collection<TreeSeriesItem> data)
Constructs a TreeSeries with the given name and data
|
Modifier and Type | Method and Description |
---|---|
void |
add(TreeSeriesItem item)
Add given item to the series
|
void |
addAll(TreeSeriesItem... items)
Add all the given items to the series
|
void |
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 of
TreeSeriesItem in this series. |
getConfiguration, getId, getName, getPlotOptions, getStack, getxAxis, getyAxis, isVisible, setConfiguration, setId, setName, setPlotOptions, setStack, setVisible, setVisible, setxAxis, setyAxis, setyAxis, updateSeries
public TreeSeries()
public TreeSeries(String name)
name
- The name of this series.public TreeSeries(String name, Collection<TreeSeriesItem> data)
name
- The name of this seriesdata
- The data of this seriespublic Collection<TreeSeriesItem> getData()
setData(Collection)
public void setData(Collection<TreeSeriesItem> data)
TreeSeriesItem
in this series. The items are the
whole tree, and the list is not ordered.data
- public void clearSeries()
public void add(TreeSeriesItem item)
item
- public void addAll(TreeSeriesItem... items)
items
- Copyright © 2025. All rights reserved.