org.moxieapps.gwt.highcharts.client.events
Interface ChartSelectionEventHandler


public interface ChartSelectionEventHandler

An interface that can be used as a callback handler when selection events are fired by the chart. General usage is as follows:

 chart.setSelectionEventHandler(new ChartSelectionEventHandler() {
    public boolean onSelection(ChartSelectionEvent selectionEvent) {
       Window.alert("User selected from " + selectionEvent.getXAxisMin() + " to " + selectionEvent.getXAxisMax());
       return true;
    }
 });
 
See the documentation on the ChartSelectionEvent class for more details on the data available when a selection event occurs.

Since:
1.1.0
Author:
squinn@moxiegroup.com (Shawn Quinn)

Method Summary
 boolean onSelection(ChartSelectionEvent chartSelectionEvent)
          This method is fired whenever a selection event occurs on the plot area of the chart.
 

Method Detail

onSelection

boolean onSelection(ChartSelectionEvent chartSelectionEvent)
This method is fired whenever a selection event occurs on the plot area of the chart. See the ChartSelectionEvent class for more details on the data available when this event is fired.

Parameters:
chartSelectionEvent - The details of the event that occurred.
Returns:
The response to send back to the event handler function


Copyright © 2015. All Rights Reserved.