Interface RangeListener
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));
-
Method Summary
Modifier and TypeMethodDescriptionvoidrangeSelected(Chart chart, double from, double to) Called when a brush drag ends.
-
Method Details
-
rangeSelected
Called when a brush drag ends.
Parameters
-
chart: the chart -
from: the smaller x value of the selection -
to: the larger x value of the selection
-
-