Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface RangeListener
Receives the range the user selects by dragging across a chart with brushing on.
Chart chart = new Chart();
Label detail = new Label();
chart.setBrushEnabled(true);
chart.addRangeListener((c, from, to) -> detail.setText("From " + from + " to " + to));Methods
public abstract void rangeSelected(Chart chart, double from, double to) | Called when a brush drag ends. |
Method details
rangeSelected
public abstract void rangeSelected(Chart chart, double from, double to)Called when a brush drag ends.
Parameters
chartChart- the chart
fromdouble- the smaller x value of the selection
todouble- the larger x value of the selection