org.jfree.chart.event.PlotChangeListener Java Examples

The following examples show how to use org.jfree.chart.event.PlotChangeListener. 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: Plot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the plot has been modified.
 *
 * @param event  information about the change event.
 */
public void notifyListeners(PlotChangeEvent event) {
    // if the 'notify' flag has been switched to false, we don't notify
    // the listeners
    if (!this.notify) {
        return;
    }
    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == PlotChangeListener.class) {
            ((PlotChangeListener) listeners[i + 1]).plotChanged(event);
        }
    }
}
 
Example #2
Source File: Plot.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the plot has been modified.
 *
 * @param event  information about the change event.
 */
public void notifyListeners(PlotChangeEvent event) {
    // if the 'notify' flag has been switched to false, we don't notify
    // the listeners
    if (!this.notify) {
        return;
    }
    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == PlotChangeListener.class) {
            ((PlotChangeListener) listeners[i + 1]).plotChanged(event);
        }
    }
}
 
Example #3
Source File: Plot.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the plot has been modified.
 *
 * @param event  information about the change event.
 */
public void notifyListeners(PlotChangeEvent event) {
    // if the 'notify' flag has been switched to false, we don't notify
    // the listeners
    if (!this.notify) {
        return;
    }
    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == PlotChangeListener.class) {
            ((PlotChangeListener) listeners[i + 1]).plotChanged(event);
        }
    }
}
 
Example #4
Source File: Plot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the plot has been modified.
 *
 * @param event  information about the change event.
 */
public void notifyListeners(PlotChangeEvent event) {
    // if the 'notify' flag has been switched to false, we don't notify
    // the listeners
    if (!this.notify) {
        return;
    }
    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == PlotChangeListener.class) {
            ((PlotChangeListener) listeners[i + 1]).plotChanged(event);
        }
    }
}
 
Example #5
Source File: Plot.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the plot has been modified.
 *
 * @param event  information about the change event.
 */
public void notifyListeners(PlotChangeEvent event) {
    // if the 'notify' flag has been switched to false, we don't notify
    // the listeners
    if (!this.notify) {
        return;
    }
    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == PlotChangeListener.class) {
            ((PlotChangeListener) listeners[i + 1]).plotChanged(event);
        }
    }
}
 
Example #6
Source File: Plot.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the plot has been modified.
 *
 * @param event  information about the change event.
 */
public void notifyListeners(PlotChangeEvent event) {
    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == PlotChangeListener.class) {
            ((PlotChangeListener) listeners[i + 1]).plotChanged(event);
        }
    }
}
 
Example #7
Source File: Plot.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the plot has been modified.
 *
 * @param event  information about the change event.
 */
public void notifyListeners(PlotChangeEvent event) {
    // if the 'notify' flag has been switched to false, we don't notify
    // the listeners
    if (!this.notify) {
        return;
    }
    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == PlotChangeListener.class) {
            ((PlotChangeListener) listeners[i + 1]).plotChanged(event);
        }
    }
}
 
Example #8
Source File: Plot.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the plot has been modified.
 *
 * @param event  information about the change event.
 */
public void notifyListeners(PlotChangeEvent event) {
    // if the 'notify' flag has been switched to false, we don't notify
    // the listeners
    if (!this.notify) {
        return;
    }
    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == PlotChangeListener.class) {
            ((PlotChangeListener) listeners[i + 1]).plotChanged(event);
        }
    }
}
 
Example #9
Source File: Plot.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the plot has been modified.
 *
 * @param event  information about the change event.
 */
public void notifyListeners(PlotChangeEvent event) {
    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == PlotChangeListener.class) {
            ((PlotChangeListener) listeners[i + 1]).plotChanged(event);
        }
    }
}
 
Example #10
Source File: Plot.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Unregisters an object for notification of changes to the plot.
 *
 * @param listener  the object to be unregistered.
 *
 * @see #addChangeListener(PlotChangeListener)
 */
public void removeChangeListener(PlotChangeListener listener) {
    this.listenerList.remove(PlotChangeListener.class, listener);
}
 
Example #11
Source File: Plot.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Unregisters an object for notification of changes to the plot.
 *
 * @param listener  the object to be unregistered.
 *
 * @see #addChangeListener(PlotChangeListener)
 */
public void removeChangeListener(PlotChangeListener listener) {
    this.listenerList.remove(PlotChangeListener.class, listener);
}
 
Example #12
Source File: Plot.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Registers an object for notification of changes to the plot.
 *
 * @param listener  the object to be registered.
 *
 * @see #removeChangeListener(PlotChangeListener)
 */
public void addChangeListener(PlotChangeListener listener) {
    this.listenerList.add(PlotChangeListener.class, listener);
}
 
Example #13
Source File: Plot.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Unregisters an object for notification of changes to the plot.
 *
 * @param listener  the object to be unregistered.
 *
 * @see #addChangeListener(PlotChangeListener)
 */
public void removeChangeListener(PlotChangeListener listener) {
    this.listenerList.remove(PlotChangeListener.class, listener);
}
 
Example #14
Source File: Plot.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Registers an object for notification of changes to the plot.
 *
 * @param listener  the object to be registered.
 *
 * @see #removeChangeListener(PlotChangeListener)
 */
public void addChangeListener(PlotChangeListener listener) {
    this.listenerList.add(PlotChangeListener.class, listener);
}
 
Example #15
Source File: Plot.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Unregisters an object for notification of changes to the plot.
 *
 * @param listener  the object to be unregistered.
 * 
 * @see #addChangeListener(PlotChangeListener)
 */
public void removeChangeListener(PlotChangeListener listener) {
    this.listenerList.remove(PlotChangeListener.class, listener);
}
 
Example #16
Source File: Plot.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Registers an object for notification of changes to the plot.
 *
 * @param listener  the object to be registered.
 * 
 * @see #removeChangeListener(PlotChangeListener)
 */
public void addChangeListener(PlotChangeListener listener) {
    this.listenerList.add(PlotChangeListener.class, listener);
}
 
Example #17
Source File: Plot.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Unregisters an object for notification of changes to the plot.
 *
 * @param listener  the object to be unregistered.
 * 
 * @see #addChangeListener(PlotChangeListener)
 */
public void removeChangeListener(PlotChangeListener listener) {
    this.listenerList.remove(PlotChangeListener.class, listener);
}
 
Example #18
Source File: Plot.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Registers an object for notification of changes to the plot.
 *
 * @param listener  the object to be registered.
 * 
 * @see #removeChangeListener(PlotChangeListener)
 */
public void addChangeListener(PlotChangeListener listener) {
    this.listenerList.add(PlotChangeListener.class, listener);
}
 
Example #19
Source File: Plot.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Registers an object for notification of changes to the plot.
 *
 * @param listener  the object to be registered.
 *
 * @see #removeChangeListener(PlotChangeListener)
 */
public void addChangeListener(PlotChangeListener listener) {
    this.listenerList.add(PlotChangeListener.class, listener);
}
 
Example #20
Source File: Plot.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Registers an object for notification of changes to the plot.
 *
 * @param listener  the object to be registered.
 *
 * @see #removeChangeListener(PlotChangeListener)
 */
public void addChangeListener(PlotChangeListener listener) {
    this.listenerList.add(PlotChangeListener.class, listener);
}
 
Example #21
Source File: Plot.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Unregisters an object for notification of changes to the plot.
 *
 * @param listener  the object to be unregistered.
 *
 * @see #addChangeListener(PlotChangeListener)
 */
public void removeChangeListener(PlotChangeListener listener) {
    this.listenerList.remove(PlotChangeListener.class, listener);
}
 
Example #22
Source File: Plot.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Registers an object for notification of changes to the plot.
 *
 * @param listener  the object to be registered.
 *
 * @see #removeChangeListener(PlotChangeListener)
 */
public void addChangeListener(PlotChangeListener listener) {
    this.listenerList.add(PlotChangeListener.class, listener);
}
 
Example #23
Source File: Plot.java    From SIMVA-SoS with Apache License 2.0 2 votes vote down vote up
/**
 * Unregisters an object for notification of changes to the plot.
 *
 * @param listener  the object to be unregistered.
 *
 * @see #addChangeListener(PlotChangeListener)
 */
public void removeChangeListener(PlotChangeListener listener) {
    this.listenerList.remove(PlotChangeListener.class, listener);
}
 
Example #24
Source File: Plot.java    From SIMVA-SoS with Apache License 2.0 2 votes vote down vote up
/**
 * Registers an object for notification of changes to the plot.
 *
 * @param listener  the object to be registered.
 *
 * @see #removeChangeListener(PlotChangeListener)
 */
public void addChangeListener(PlotChangeListener listener) {
    this.listenerList.add(PlotChangeListener.class, listener);
}
 
Example #25
Source File: Plot.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Unregisters an object for notification of changes to the plot.
 *
 * @param listener  the object to be unregistered.
 *
 * @see #addChangeListener(PlotChangeListener)
 */
public void removeChangeListener(PlotChangeListener listener) {
    this.listenerList.remove(PlotChangeListener.class, listener);
}
 
Example #26
Source File: Plot.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Registers an object for notification of changes to the plot.
 *
 * @param listener  the object to be registered.
 *
 * @see #removeChangeListener(PlotChangeListener)
 */
public void addChangeListener(PlotChangeListener listener) {
    this.listenerList.add(PlotChangeListener.class, listener);
}
 
Example #27
Source File: Plot.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Unregisters an object for notification of changes to the plot.
 *
 * @param listener  the object to be unregistered.
 *
 * @see #addChangeListener(PlotChangeListener)
 */
public void removeChangeListener(PlotChangeListener listener) {
    this.listenerList.remove(PlotChangeListener.class, listener);
}