org.moxieapps.gwt.highcharts.client.events
Interface ChartClickEventHandler
public interface ChartClickEventHandler
An interface that can be used as a callback handler when click events are fired anywhere on the
plot area of the chart. General usage is as follows:
chart.setClickEventHandler(new ChartClickEventHandler() {
public boolean onClick(ChartClickEvent clickEvent) {
Window.alert("User clicked at " + clickEvent.getXAxisValue() + ", " + clickEvent.getYAxisValue());
return true;
}
});
See the documentation on the ChartClickEvent
class for more details on the data
available when a click event occurs.
- Since:
- 1.1.0
- Author:
- squinn@moxiegroup.com (Shawn Quinn)
Method Summary |
boolean |
onClick(ChartClickEvent chartClickEvent)
This method is fired whenever a click event occurs on the plot area of the chart. |
onClick
boolean onClick(ChartClickEvent chartClickEvent)
- This method is fired whenever a click event occurs on the plot area of the chart. See
the
ChartClickEvent
class for more details on the data available when this event is fired.
- Parameters:
chartClickEvent
- The details of the event that occurred.
- Returns:
- The response to send back to the event handler function
Copyright © 2015. All Rights Reserved.