org.jfree.chart.event.TitleChangeListener Java Examples

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