com.vaadin.flow.component.charts.events.
Class ChartSelectionEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Chart>
-
- com.vaadin.flow.component.charts.events.ChartSelectionEvent
-
All Implemented Interfaces:
@DomEvent("chart-selection") public class ChartSelectionEvent extends ComponentEvent<Chart>
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
-
-
Method Summary
All Methods Modifier and Type Method Description Double
getSelectionEnd()
This value is undefined and shouldn't be considered if
ChartModel.setZoomType(Dimension)
was set toDimension.Y
Double
getSelectionStart()
This value is undefined and shouldn't be considered if
ChartModel.setZoomType(Dimension)
was set toDimension.Y
Double
getValueEnd()
This value is undefined and shouldn't be considered if
ChartModel.setZoomType(Dimension)
was set toDimension.X
Double
getValueStart()
This value is undefined and shouldn't be considered if
ChartModel.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 Detail
-
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 Detail
-
getSelectionStart
public Double getSelectionStart()
This value is undefined and shouldn't be considered if
ChartModel.setZoomType(Dimension)
was set toDimension.Y
Returns:
the X coordinate where the selection started if ZoomType is
Dimension.X
orDimension.XY
.
-
getSelectionEnd
public Double getSelectionEnd()
This value is undefined and shouldn't be considered if
ChartModel.setZoomType(Dimension)
was set toDimension.Y
Returns:
the X coordinate where the selection ended if ZoomType is
Dimension.X
orDimension.XY
.
-
getValueStart
public Double getValueStart()
This value is undefined and shouldn't be considered if
ChartModel.setZoomType(Dimension)
was set toDimension.X
Returns:
the Y coordinate where the selection started if ZoomType is
Dimension.Y
orDimension.XY
.
-
getValueEnd
public Double getValueEnd()
This value is undefined and shouldn't be considered if
ChartModel.setZoomType(Dimension)
was set toDimension.X
Returns:
the Y coordinate where the selection ended if ZoomType is
Dimension.Y
orDimension.XY
.
-
-