Class ChartSelectionEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Chart>
com.vaadin.flow.component.charts.events.ChartSelectionEvent
- All Implemented Interfaces:
Serializable
The ChartSelectionEvent class stores information on selection events on the
chart's area.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis value is undefined and shouldn't be considered ifChartModel.setZoomType(Dimension)
was set toDimension.Y
This value is undefined and shouldn't be considered ifChartModel.setZoomType(Dimension)
was set toDimension.Y
This value is undefined and shouldn't be considered ifChartModel.setZoomType(Dimension)
was set toDimension.X
This value is undefined and shouldn't be considered ifChartModel.setZoomType(Dimension)
was set toDimension.X
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ChartSelectionEvent
public ChartSelectionEvent(Chart source, boolean fromClient, @EventData("event.detail.xAxisMin") Double selectionStart, @EventData("event.detail.xAxisMax") Double selectionEnd, @EventData("event.detail.yAxisMin") Double valueStart, @EventData("event.detail.yAxisMax") Double valueEnd) Construct a ChartSelectionEvent- Parameters:
source
-selectionStart
-selectionEnd
-valueStart
-valueEnd
-
-
-
Method Details
-
getSelectionStart
This value is undefined and shouldn't be considered ifChartModel.setZoomType(Dimension)
was set toDimension.Y
- Returns:
- the X coordinate where the selection started if ZoomType is
Dimension.X
orDimension.XY
.
-
getSelectionEnd
This value is undefined and shouldn't be considered ifChartModel.setZoomType(Dimension)
was set toDimension.Y
- Returns:
- the X coordinate where the selection ended if ZoomType is
Dimension.X
orDimension.XY
.
-
getValueStart
This value is undefined and shouldn't be considered ifChartModel.setZoomType(Dimension)
was set toDimension.X
- Returns:
- the Y coordinate where the selection started if ZoomType is
Dimension.Y
orDimension.XY
.
-
getValueEnd
This value is undefined and shouldn't be considered ifChartModel.setZoomType(Dimension)
was set toDimension.X
- Returns:
- the Y coordinate where the selection ended if ZoomType is
Dimension.Y
orDimension.XY
.
-