Example usage for org.jfree.chart.plot Crosshair removePropertyChangeListener

List of usage examples for org.jfree.chart.plot Crosshair removePropertyChangeListener

Introduction

In this page you can find the example usage for org.jfree.chart.plot Crosshair removePropertyChangeListener.

Prototype

public void removePropertyChangeListener(PropertyChangeListener l) 

Source Link

Document

Removes a property change listener.

Usage

From source file:com.rapidminer.gui.new_plotter.engine.jfreechart.MultiAxesCrosshairOverlay.java

/**
 * Clears all range crosshairs on all axes.
 *///from w  w  w.  jav a2  s  . c om
@Override
public void clearRangeCrosshairs() {
    for (List<Crosshair> crosshairsForRange : rangeCrosshairs) {
        for (Crosshair crosshair : crosshairsForRange) {
            crosshair.removePropertyChangeListener(this);
        }
    }
    rangeCrosshairs.clear();
}

From source file:com.rapidminer.gui.new_plotter.engine.jfreechart.MultiAxesCrosshairOverlay.java

public void removeRangeCrosshair(int axisIdx, Crosshair crosshair) {
    if (rangeCrosshairs.size() > axisIdx) {
        ArrayList<Crosshair> crosshairsForRange = rangeCrosshairs.get(axisIdx);
        crosshairsForRange.remove(crosshair);
        crosshair.removePropertyChangeListener(this);
    }/* w w w  .j a v a 2  s.  c om*/
}