Class GanttSeries
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.AbstractSeries
com.vaadin.flow.component.charts.model.GanttSeries
- All Implemented Interfaces:
Series
,Serializable
A series of tasks to be used in the Gantt chart. Each task (represented by
GanttSeriesItem
) has a start and an end date.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGanttSeries
(String name) Constructs a GanttSeries with the given nameGanttSeries
(String name, Collection<GanttSeriesItem> data) Constructs a GanttSeries with the given name and data -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(GanttSeriesItem item) Add given item to the seriesvoid
addAll
(GanttSeriesItem... items) Add all the given items to the seriesvoid
Remove all items in the series.get
(int index) ReturnsGanttSeriesItem
at given indexgetData()
Return an unmodifiable copy of the items in this series.void
setData
(Collection<GanttSeriesItem> data) Set the list ofGanttSeriesItem
in this series.int
size()
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 Details
-
GanttSeries
public GanttSeries() -
GanttSeries
Constructs a GanttSeries with the given name- Parameters:
name
- The name of this series.
-
GanttSeries
Constructs a GanttSeries with the given name and data- Parameters:
name
- The name of this seriesdata
- The data of this series
-
-
Method Details
-
getData
Return an unmodifiable copy of the items in this series.- Returns:
- See Also:
-
setData
Set the list ofGanttSeriesItem
in this series.- Parameters:
data
-
-
clearSeries
public void clearSeries()Remove all items in the series. -
add
Add given item to the series- Parameters:
item
-
-
addAll
Add all the given items to the series- Parameters:
items
-
-
get
ReturnsGanttSeriesItem
at given index- Parameters:
index
-- Returns:
- the Item
- Throws:
IndexOutOfBoundsException
- if data series don't have item at given index
-
size
public int size()- Returns:
- the number of data items in the series
-