Example usage for org.jfree.data.statistics HistogramDataset addChangeListener

List of usage examples for org.jfree.data.statistics HistogramDataset addChangeListener

Introduction

In this page you can find the example usage for org.jfree.data.statistics HistogramDataset addChangeListener.

Prototype

@Override
public void addChangeListener(DatasetChangeListener listener) 

Source Link

Document

Registers an object to receive notification of changes to the dataset.

Usage

From source file:org.jfree.data.statistics.HistogramDatasetTest.java

/**
 * A test to show the limitation addressed by patch 2902842.
 *///from   w  w  w.  j  a  v  a 2 s.c om
@Test
public void test2902842() {
    this.lastEvent = null;
    double[] values = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 };
    HistogramDataset hd = new HistogramDataset();
    hd.addChangeListener(this);
    hd.addSeries("S1", values, 5);
    assertNotNull(this.lastEvent);
}