Example usage for org.jfree.data.time TimePeriodValues removeChangeListener

List of usage examples for org.jfree.data.time TimePeriodValues removeChangeListener

Introduction

In this page you can find the example usage for org.jfree.data.time TimePeriodValues removeChangeListener.

Prototype

public void removeChangeListener(SeriesChangeListener listener) 

Source Link

Document

Deregisters an object, so that it not longer receives notification whenever the series changes.

Usage

From source file:org.jfree.data.time.TimePeriodValuesCollection.java

/**
 * Removes the specified series from the collection.
 *
 * @param series  the series to remove (<code>null</code> not permitted).
 *///from ww  w .j  av  a 2 s.c o m
public void removeSeries(TimePeriodValues series) {
    ParamChecks.nullNotPermitted(series, "series");
    this.data.remove(series);
    series.removeChangeListener(this);
    fireDatasetChanged();

}