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 Type
    Method
    Description
    void
    rangeSelected(Chart chart, double from, double to)
    Called when a brush drag ends.
  • Method Details

    • rangeSelected

      void rangeSelected(Chart chart, double from, double to)

      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