Class PointUpdateEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Map>
com.vaadin.componentfactory.maps.events.PointUpdateEvent
All Implemented Interfaces:
HasItem, HasSeries, Serializable

@DomEvent("point-update") public class PointUpdateEvent extends com.vaadin.flow.component.ComponentEvent<Map> implements HasItem
The PointUpdateEvent class stores data for update events on the points of the chart
Version:
$Id: $Id
Author:
Vaadin
See Also:
  • Constructor Details

    • PointUpdateEvent

      public PointUpdateEvent(Map source, boolean fromClient, @EventData("event.detail.originalEvent.target.series.index") int seriesIndex, @EventData("event.detail.originalEvent.target.category") String category, @EventData("event.detail.originalEvent.target.index") int pointIndex, @EventData("event.detail.originalEvent.target.x") Double oldXValue, @EventData("event.detail.originalEvent.target.y") Double oldYValue, @EventData("event.detail.originalEvent.options.x") Double newXValue, @EventData("event.detail.originalEvent.options.y") Double newYValue)

      Constructor for PointUpdateEvent.

      Parameters:
      source - a Map object.
      fromClient - a boolean.
      seriesIndex - a int.
      category - a String object.
      pointIndex - a int.
      oldXValue - a Double object.
      oldYValue - a Double object.
      newXValue - a Double object.
      newYValue - a Double object.
  • Method Details

    • getOldXValue

      public Double getOldXValue()

      Getter for the field oldXValue.

      Returns:
      a Double object.
    • getOldYValue

      public Double getOldYValue()

      Getter for the field oldYValue.

      Returns:
      a Double object.
    • getxValue

      public Double getxValue()

      getxValue.

      Returns:
      a Double object.
    • getyValue

      public Double getyValue()

      getyValue.

      Returns:
      a Double object.
    • getSeriesItemIndex

      public int getSeriesItemIndex()
      Returns the index of the series
      Specified by:
      getSeriesItemIndex in interface HasSeries
      Returns:
      index of the series
    • getCategory

      public String getCategory()
      Specified by:
      getCategory in interface HasItem
    • getItemIndex

      public int getItemIndex()
      Returns the index of HasItem.getItem() in HasSeries.getSeries().
      Specified by:
      getItemIndex in interface HasItem
      Returns:
      index of the item