Java Code Examples for org.jfree.chart.panel.Overlay#removeChangeListener()

The following examples show how to use org.jfree.chart.panel.Overlay#removeChangeListener() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChartPanel.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Removes an overlay from the panel.
 *
 * @param overlay  the overlay to remove (<code>null</code> not permitted).
 *
 * @since 1.0.13
 */
public void removeOverlay(Overlay overlay) {
    ParamChecks.nullNotPermitted(overlay, "overlay");
    boolean removed = this.overlays.remove(overlay);
    if (removed) {
        overlay.removeChangeListener(this);
        repaint();
    }
}
 
Example 2
Source File: ChartPanel.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Removes an overlay from the panel.
 *
 * @param overlay  the overlay to remove (<code>null</code> not permitted).
 *
 * @since 1.0.13
 */
public void removeOverlay(Overlay overlay) {
    ParamChecks.nullNotPermitted(overlay, "overlay");
    boolean removed = this.overlays.remove(overlay);
    if (removed) {
        overlay.removeChangeListener(this);
        repaint();
    }
}
 
Example 3
Source File: ChartPanel.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Removes an overlay from the panel.
 *
 * @param overlay  the overlay to remove (<code>null</code> not permitted).
 *
 * @since 1.0.13
 */
public void removeOverlay(Overlay overlay) {
    ParamChecks.nullNotPermitted(overlay, "overlay");
    boolean removed = this.overlays.remove(overlay);
    if (removed) {
        overlay.removeChangeListener(this);
        repaint();
    }
}
 
Example 4
Source File: AbstractChartPanel.java    From rapidminer-studio with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * Removes an overlay from the panel.
 * 
 * @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();
	}
}
 
Example 5
Source File: ChartPanel.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Removes an overlay from the panel.
 *
 * @param overlay  the overlay to remove (<code>null</code> not permitted).
 *
 * @since 1.0.13
 */
public void removeOverlay(Overlay overlay) {
    ParamChecks.nullNotPermitted(overlay, "overlay");
    boolean removed = this.overlays.remove(overlay);
    if (removed) {
        overlay.removeChangeListener(this);
        repaint();
    }
}
 
Example 6
Source File: ChartPanel.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Removes an overlay from the panel.
 *
 * @param overlay  the overlay to remove (<code>null</code> not permitted).
 *
 * @since 1.0.13
 */
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();
    }
}
 
Example 7
Source File: ChartPanel.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Removes an overlay from the panel.
 *
 * @param overlay  the overlay to remove (<code>null</code> not permitted).
 *
 * @since 1.0.13
 */
public void removeOverlay(Overlay overlay) {
    ParamChecks.nullNotPermitted(overlay, "overlay");
    boolean removed = this.overlays.remove(overlay);
    if (removed) {
        overlay.removeChangeListener(this);
        repaint();
    }
}
 
Example 8
Source File: ChartPanel.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Removes an overlay from the panel.
 *
 * @param overlay  the overlay to remove (<code>null</code> not permitted).
 *
 * @since 1.0.13
 */
public void removeOverlay(Overlay overlay) {
    ParamChecks.nullNotPermitted(overlay, "overlay");
    boolean removed = this.overlays.remove(overlay);
    if (removed) {
        overlay.removeChangeListener(this);
        repaint();
    }
}