We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.charts.events.
Class PointUpdateEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Chart>
-
- com.vaadin.flow.component.charts.events.PointUpdateEvent
-
All Implemented Interfaces:
@DomEvent(value="point-update") public class PointUpdateEvent extends ComponentEvent<Chart> implements HasItem
The PointUpdateEvent class stores data for update events on the points of the chart
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description PointUpdateEvent(Chart source, boolean fromClient, int seriesIndex, String category, int pointIndex, Double oldXValue, Double oldYValue, Double newXValue, Double newYValue)
-
Method Summary
All Methods Modifier and Type Method and Description String
getCategory()
int
getItemIndex()
Returns the index of
HasItem.getItem()
inHasSeries.getSeries()
.Double
getOldXValue()
Double
getOldYValue()
int
getSeriesItemIndex()
Returns the index of the series
Double
getxValue()
Double
getyValue()
-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
PointUpdateEvent
public PointUpdateEvent(Chart source, boolean fromClient, @EventData(value="event.detail.originalEvent.target.series.index") int seriesIndex, @EventData(value="event.detail.originalEvent.target.category") String category, @EventData(value="event.detail.originalEvent.target.index") int pointIndex, @EventData(value="event.detail.originalEvent.target.x") Double oldXValue, @EventData(value="event.detail.originalEvent.target.y") Double oldYValue, @EventData(value="event.detail.originalEvent.options.x") Double newXValue, @EventData(value="event.detail.originalEvent.options.y") Double newYValue)
-
-
Method Detail
-
getOldXValue
public Double getOldXValue()
-
getOldYValue
public Double getOldYValue()
-
getxValue
public Double getxValue()
-
getyValue
public Double getyValue()
-
getSeriesItemIndex
public int getSeriesItemIndex()
Description copied from interface:
HasSeries
Returns the index of the series
Specified by:
getSeriesItemIndex
in interfaceHasSeries
Returns:
-
getCategory
public String getCategory()
Specified by:
getCategory
in interfaceHasItem
-
getItemIndex
public int getItemIndex()
Description copied from interface:
HasItem
Returns the index of
HasItem.getItem()
inHasSeries.getSeries()
.Specified by:
getItemIndex
in interfaceHasItem
Returns:
-
-