Example usage for org.jfree.chart.panel Overlay removeChangeListener

List of usage examples for org.jfree.chart.panel Overlay removeChangeListener

Introduction

In this page you can find the example usage for org.jfree.chart.panel Overlay removeChangeListener.

Prototype

public void removeChangeListener(OverlayChangeListener listener);

Source Link

Document

Deregisters a listener from the overlay.

Usage

From source file:com.rapidminer.gui.plotter.charts.AbstractChartPanel.java

/**
 * Removes an overlay from the panel.//from www .j av a  2  s . com
 * 
 * @param overlay
 *            the overlay to remove (<code>null</code> not permitted).
 * 
 * @since 1.0.13
 */

@Override
public void removeOverlay(Overlay overlay) {
    if (overlay == null) {
        throw new IllegalArgumentException("Null 'overlay' argument.");
    }
    boolean removed = this.overlays.remove(overlay);
    if (removed) {
        overlay.removeChangeListener(this);
        repaint();
    }
}