com.vaadin.flow.component.charts.events.
Class DrilldownEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Chart>
-
- com.vaadin.flow.component.charts.events.DrilldownEvent
-
All Implemented Interfaces:
@DomEvent(value="chart-drilldown") public class DrilldownEvent extends ComponentEvent<Chart> implements HasItem
The DrilldownEvent class stores information on click events in drilldown points
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description DrilldownEvent(Chart source, boolean fromClient, String drilldown, String category, Double x, Double y, int pointIndex, int seriesIndex)
Construct a ChartDrilldownEvent
-
Method Summary
All Methods Modifier and Type Method and Description String
getCategory()
String
getDrilldown()
Gets the name of the drilldown
int
getItemIndex()
Returns the index of
HasItem.getItem()
inHasSeries.getSeries()
.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
-
DrilldownEvent
public DrilldownEvent(Chart source, boolean fromClient, @EventData(value="event.detail.originalEvent.point.drilldown") String drilldown, @EventData(value="event.detail.originalEvent.point.category") String category, @EventData(value="event.detail.originalEvent.point.x") Double x, @EventData(value="event.detail.originalEvent.point.y") Double y, @EventData(value="event.detail.originalEvent.point.index") int pointIndex, @EventData(value="event.detail.originalEvent.point.series.index") int seriesIndex)
Construct a ChartDrilldownEvent
Parameters:
source
-
-
-
Method Detail
-
getDrilldown
public String getDrilldown()
Gets the name of the drilldown
Returns:
-
getxValue
public Double getxValue()
-
getyValue
public Double getyValue()
-
getCategory
public String getCategory()
Specified by:
getCategory
in interfaceHasItem
-
getSeriesItemIndex
public int getSeriesItemIndex()
Description copied from interface:
HasSeries
Returns the index of the series
Specified by:
getSeriesItemIndex
in interfaceHasSeries
Returns:
-
getItemIndex
public int getItemIndex()
Description copied from interface:
HasItem
Returns the index of
HasItem.getItem()
inHasSeries.getSeries()
.Specified by:
getItemIndex
in interfaceHasItem
Returns:
-
-