Logo Search packages:      
Sourcecode: libjfreechart-java version File versions  Download package

void org::jfree::data::statistics::SimpleHistogramDataset::clearObservations (  )  [inline]

Removes all current observation data and sends a DatasetChangeEvent to all registered listeners.

Since:
1.0.6
See also:
addObservations(double[])

removeAllBins()

Definition at line 249 of file SimpleHistogramDataset.java.

References bins, org::jfree::data::general::AbstractDataset::notifyListeners(), and org::jfree::data::statistics::SimpleHistogramBin::setItemCount().

Referenced by org::jfree::data::statistics::junit::SimpleHistogramDatasetTests::testClearObservations().

                                    {
        Iterator iterator = this.bins.iterator();
        while (iterator.hasNext()) {
            SimpleHistogramBin bin = (SimpleHistogramBin) iterator.next();
            bin.setItemCount(0);
        }
        notifyListeners(new DatasetChangeEvent(this, this));
    }


Generated by  Doxygen 1.6.0   Back to index