org.jfree.chart.event.AnnotationChangeListener Java Examples

The following examples show how to use org.jfree.chart.event.AnnotationChangeListener. 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: AbstractAnnotation.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the annotation has changed.
 *
 * @param event  contains information about the event that triggered the
 *               notification.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 * @see #removeChangeListener(AnnotationChangeListener)
 */
protected void notifyListeners(AnnotationChangeEvent event) {

    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == AnnotationChangeListener.class) {
            ((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
                    event);
        }
    }

}
 
Example #2
Source File: AbstractAnnotation.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the annotation has changed.
 *
 * @param event  contains information about the event that triggered the
 *               notification.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 * @see #removeChangeListener(AnnotationChangeListener)
 */
protected void notifyListeners(AnnotationChangeEvent event) {

    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == AnnotationChangeListener.class) {
            ((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
                    event);
        }
    }

}
 
Example #3
Source File: AbstractAnnotation.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the annotation has changed.
 *
 * @param event  contains information about the event that triggered the
 *               notification.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 * @see #removeChangeListener(AnnotationChangeListener)
 */
protected void notifyListeners(AnnotationChangeEvent event) {

    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == AnnotationChangeListener.class) {
            ((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
                    event);
        }
    }

}
 
Example #4
Source File: AbstractAnnotation.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the annotation has changed.
 *
 * @param event  contains information about the event that triggered the
 *               notification.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 * @see #removeChangeListener(AnnotationChangeListener)
 */
protected void notifyListeners(AnnotationChangeEvent event) {

    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == AnnotationChangeListener.class) {
            ((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
                    event);
        }
    }

}
 
Example #5
Source File: AbstractAnnotation.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the annotation has changed.
 *
 * @param event  contains information about the event that triggered the
 *               notification.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 * @see #removeChangeListener(AnnotationChangeListener)
 */
protected void notifyListeners(AnnotationChangeEvent event) {

    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == AnnotationChangeListener.class) {
            ((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
                    event);
        }
    }

}
 
Example #6
Source File: AbstractAnnotation.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the annotation has changed.
 *
 * @param event  contains information about the event that triggered the
 *               notification.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 * @see #removeChangeListener(AnnotationChangeListener)
 */
protected void notifyListeners(AnnotationChangeEvent event) {

    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == AnnotationChangeListener.class) {
            ((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
                    event);
        }
    }

}
 
Example #7
Source File: AbstractAnnotation.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the annotation has changed.
 *
 * @param event  contains information about the event that triggered the
 *               notification.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 * @see #removeChangeListener(AnnotationChangeListener)
 */
protected void notifyListeners(AnnotationChangeEvent event) {

    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == AnnotationChangeListener.class) {
            ((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
                    event);
        }
    }

}
 
Example #8
Source File: Annotation.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 annotation.
 *
 * @param listener  the object to register.
 */
public void addChangeListener(AnnotationChangeListener listener);
 
Example #9
Source File: Annotation.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Deregisters an object for notification of changes to the annotation.
 *
 * @param listener  the object to deregister.
 */
public void removeChangeListener(AnnotationChangeListener listener);
 
Example #10
Source File: AbstractAnnotation.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Deregisters an object so that it no longer receives notification of
 * changes to the annotation.
 *
 * @param listener  the object to deregister.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 */
@Override
public void removeChangeListener(AnnotationChangeListener listener) {
    this.listenerList.remove(AnnotationChangeListener.class, listener);
}
 
Example #11
Source File: AbstractAnnotation.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Registers an object to receive notification of changes to the
 * annotation.
 *
 * @param listener  the object to register.
 *
 * @see #removeChangeListener(AnnotationChangeListener)
 */
@Override
public void addChangeListener(AnnotationChangeListener listener) {
    this.listenerList.add(AnnotationChangeListener.class, listener);
}
 
Example #12
Source File: Annotation.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Deregisters an object for notification of changes to the annotation.
 *
 * @param listener  the object to deregister.
 */
public void removeChangeListener(AnnotationChangeListener listener);
 
Example #13
Source File: Annotation.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 annotation.
 *
 * @param listener  the object to register.
 */
public void addChangeListener(AnnotationChangeListener listener);
 
Example #14
Source File: AbstractAnnotation.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Registers an object to receive notification of changes to the
 * annotation.
 *
 * @param listener  the object to register.
 *
 * @see #removeChangeListener(AnnotationChangeListener)
 */
@Override
public void addChangeListener(AnnotationChangeListener listener) {
    this.listenerList.add(AnnotationChangeListener.class, listener);
}
 
Example #15
Source File: AbstractAnnotation.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Deregisters an object so that it no longer receives notification of
 * changes to the annotation.
 *
 * @param listener  the object to deregister.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 */
@Override
public void removeChangeListener(AnnotationChangeListener listener) {
    this.listenerList.remove(AnnotationChangeListener.class, listener);
}
 
Example #16
Source File: AbstractAnnotation.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Deregisters an object so that it no longer receives notification of
 * changes to the annotation.
 *
 * @param listener  the object to deregister.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 */
public void removeChangeListener(AnnotationChangeListener listener) {
    this.listenerList.remove(AnnotationChangeListener.class, listener);
}
 
Example #17
Source File: AbstractAnnotation.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Registers an object to receive notification of changes to the
 * annotation.
 *
 * @param listener  the object to register.
 *
 * @see #removeChangeListener(AnnotationChangeListener)
 */
public void addChangeListener(AnnotationChangeListener listener) {
    this.listenerList.add(AnnotationChangeListener.class, listener);
}
 
Example #18
Source File: Annotation.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Deregisters an object for notification of changes to the annotation.
 *
 * @param listener  the object to deregister.
 */
public void removeChangeListener(AnnotationChangeListener listener);
 
Example #19
Source File: Annotation.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 annotation.
 *
 * @param listener  the object to register.
 */
public void addChangeListener(AnnotationChangeListener listener);
 
Example #20
Source File: AbstractAnnotation.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Registers an object to receive notification of changes to the
 * annotation.
 *
 * @param listener  the object to register.
 *
 * @see #removeChangeListener(AnnotationChangeListener)
 */
@Override
public void addChangeListener(AnnotationChangeListener listener) {
    this.listenerList.add(AnnotationChangeListener.class, listener);
}
 
Example #21
Source File: AbstractAnnotation.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Deregisters an object so that it no longer receives notification of
 * changes to the annotation.
 *
 * @param listener  the object to deregister.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 */
@Override
public void removeChangeListener(AnnotationChangeListener listener) {
    this.listenerList.remove(AnnotationChangeListener.class, listener);
}
 
Example #22
Source File: Annotation.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 annotation.
 *
 * @param listener  the object to register.
 */
public void addChangeListener(AnnotationChangeListener listener);
 
Example #23
Source File: Annotation.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Deregisters an object for notification of changes to the annotation.
 *
 * @param listener  the object to deregister.
 */
public void removeChangeListener(AnnotationChangeListener listener);
 
Example #24
Source File: Annotation.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 annotation.
 *
 * @param listener  the object to register.
 */
public void addChangeListener(AnnotationChangeListener listener);
 
Example #25
Source File: AbstractAnnotation.java    From SIMVA-SoS with Apache License 2.0 2 votes vote down vote up
/**
 * Deregisters an object so that it no longer receives notification of
 * changes to the annotation.
 *
 * @param listener  the object to deregister.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 */
@Override
public void removeChangeListener(AnnotationChangeListener listener) {
    this.listenerList.remove(AnnotationChangeListener.class, listener);
}
 
Example #26
Source File: AbstractAnnotation.java    From SIMVA-SoS with Apache License 2.0 2 votes vote down vote up
/**
 * Registers an object to receive notification of changes to the
 * annotation.
 *
 * @param listener  the object to register.
 *
 * @see #removeChangeListener(AnnotationChangeListener)
 */
@Override
public void addChangeListener(AnnotationChangeListener listener) {
    this.listenerList.add(AnnotationChangeListener.class, listener);
}
 
Example #27
Source File: Annotation.java    From SIMVA-SoS with Apache License 2.0 2 votes vote down vote up
/**
 * Deregisters an object for notification of changes to the annotation.
 *
 * @param listener  the object to deregister.
 */
public void removeChangeListener(AnnotationChangeListener listener);
 
Example #28
Source File: Annotation.java    From SIMVA-SoS with Apache License 2.0 2 votes vote down vote up
/**
 * Registers an object for notification of changes to the annotation.
 *
 * @param listener  the object to register.
 */
public void addChangeListener(AnnotationChangeListener listener);
 
Example #29
Source File: AbstractAnnotation.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Deregisters an object so that it no longer receives notification of
 * changes to the annotation.
 *
 * @param listener  the object to deregister.
 *
 * @see #addChangeListener(AnnotationChangeListener)
 */
@Override
public void removeChangeListener(AnnotationChangeListener listener) {
    this.listenerList.remove(AnnotationChangeListener.class, listener);
}
 
Example #30
Source File: AbstractAnnotation.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Registers an object to receive notification of changes to the
 * annotation.
 *
 * @param listener  the object to register.
 *
 * @see #removeChangeListener(AnnotationChangeListener)
 */
@Override
public void addChangeListener(AnnotationChangeListener listener) {
    this.listenerList.add(AnnotationChangeListener.class, listener);
}