Class DrilldownEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Map>
com.vaadin.componentfactory.maps.events.DrilldownEvent
- All Implemented Interfaces:
HasItem,HasSeries,Serializable
@DomEvent("chart-drilldown")
public class DrilldownEvent
extends com.vaadin.flow.component.ComponentEvent<Map>
implements HasItem
The DrilldownEvent class stores information on click events in drilldown
points
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the drilldownintReturns the index ofHasItem.getItem()inHasSeries.getSeries().Getter for the fieldpointId.intReturns the index of the seriesgetxValue.getyValue.voidsetPointId(String pointId) Setter for the fieldpointId.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DrilldownEvent
public DrilldownEvent(Map source, boolean fromClient, @EventData("event.detail.originalEvent.point.drilldown") String drilldown, @EventData("event.detail.originalEvent.point.category") String category, @EventData("event.detail.originalEvent.point.x") Double x, @EventData("event.detail.originalEvent.point.y") Double y, @EventData("event.detail.originalEvent.point.index") int pointIndex, @EventData("event.detail.originalEvent.point.series.index") int seriesIndex, @EventData("event.detail.originalEvent.point.id") String pointId) Construct a ChartDrilldownEvent
-
-
Method Details
-
getDrilldown
Gets the name of the drilldown- Returns:
- a
Stringobject.
-
getxValue
getxValue.
- Returns:
- a
Doubleobject.
-
getyValue
getyValue.
- Returns:
- a
Doubleobject.
-
getCategory
- Specified by:
getCategoryin interfaceHasItem
-
getSeriesItemIndex
public int getSeriesItemIndex()Returns the index of the series- Specified by:
getSeriesItemIndexin interfaceHasSeries- Returns:
- index of the series
-
getItemIndex
public int getItemIndex()Returns the index ofHasItem.getItem()inHasSeries.getSeries().- Specified by:
getItemIndexin interfaceHasItem- Returns:
- index of the item
-
getPointId
Getter for the field
pointId.- Returns:
- a
Stringobject.
-
setPointId
Setter for the field
pointId.- Parameters:
pointId- aStringobject.
-