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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index ofHasItem.getItem()inHasSeries.getSeries().Getter for the fieldoldXValue.Getter for the fieldoldYValue.intReturns the index of the seriesgetxValue.getyValue.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
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.
-
-
Method Details
-
getOldXValue
Getter for the field
oldXValue.- Returns:
- a
Doubleobject.
-
getOldYValue
Getter for the field
oldYValue.- Returns:
- a
Doubleobject.
-
getxValue
getxValue.
- Returns:
- a
Doubleobject.
-
getyValue
getyValue.
- Returns:
- a
Doubleobject.
-
getSeriesItemIndex
public int getSeriesItemIndex()Returns the index of the series- Specified by:
getSeriesItemIndexin interfaceHasSeries- Returns:
- index of the series
-
getCategory
- Specified by:
getCategoryin interfaceHasItem
-
getItemIndex
public int getItemIndex()Returns the index ofHasItem.getItem()inHasSeries.getSeries().- Specified by:
getItemIndexin interfaceHasItem- Returns:
- index of the item
-