Class DataAddedEvent
java.lang.Object
com.vaadin.flow.component.charts.events.internal.AbstractSeriesEvent
com.vaadin.flow.component.charts.events.internal.AbstractSeriesItemEvent
com.vaadin.flow.component.charts.events.internal.DataAddedEvent
- All Implemented Interfaces:
Serializable
Event triggered when data was added to the series.
- Since:
- 2.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataAddedEvent
(Series series, DataSeriesItem item, boolean shift) Constructs the event with given series, item and a shift information.DataAddedEvent
(Series series, Number value) Constructs the event with given series and number. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isShift()
Whether or not the data addition was a shift and first item was removedMethods inherited from class com.vaadin.flow.component.charts.events.internal.AbstractSeriesItemEvent
getItem, getValue
Methods inherited from class com.vaadin.flow.component.charts.events.internal.AbstractSeriesEvent
getSeries
-
Constructor Details
-
DataAddedEvent
Constructs the event with given series and number.- Parameters:
series
- Data series.value
- A value.
-
DataAddedEvent
Constructs the event with given series, item and a shift information.- Parameters:
series
- Series.item
- Series item.shift
- true if the data addition was a shift and first item was removed
-
-
Method Details
-
isShift
public boolean isShift()Whether or not the data addition was a shift and first item was removed- Returns:
- true if the data addition was a shift and first item was removed
-