com.vaadin.flow.component.charts.events.internal.
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:
public class DataAddedEvent extends AbstractSeriesItemEvent
Event triggered when data was added to the series.
Since:
2.0
See Also:
-
-
Constructor Summary
Constructors Constructor Description DataAddedEvent(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
All Methods Modifier and Type Method Description boolean
isShift()
Whether or not the data addition was a shift and first item was removed
-
Methods 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 Detail
-
DataAddedEvent
public DataAddedEvent(Series series, Number value)
Constructs the event with given series and number.
Parameters:
series
- Data series.value
- A value.
-
DataAddedEvent
public DataAddedEvent(Series series, DataSeriesItem item, boolean shift)
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
-
-