com.vaadin.flow.component.charts.events.internal.

Class DataAddedEvent

All Implemented Interfaces:

Serializable

public class DataAddedEvent extends AbstractSeriesItemEvent

Event triggered when data was added to the series.

Since:

2.0

See Also:

  • Constructor Details

    • 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

  • 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