Java Code Examples for org.jfree.chart.annotations.XYAnnotation#removeChangeListener()

The following examples show how to use org.jfree.chart.annotations.XYAnnotation#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: XYPlot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Clears all the annotations and sends a {@link PlotChangeEvent} to all
 * registered listeners.
 *
 * @see #addAnnotation(XYAnnotation)
 */
public void clearAnnotations() {
    for (XYAnnotation annotation : this.annotations) {
        annotation.removeChangeListener(this);
    }
    this.annotations.clear();
    fireChangeEvent();
}
 
Example 2
Source File: XYPlot.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Clears all the annotations and sends a {@link PlotChangeEvent} to all
 * registered listeners.
 *
 * @see #addAnnotation(XYAnnotation)
 */
public void clearAnnotations() {
    for (XYAnnotation annotation : this.annotations) {
        annotation.removeChangeListener(this);
    }
    this.annotations.clear();
    fireChangeEvent();
}
 
Example 3
Source File: XYPlot.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Clears all the annotations and sends a {@link PlotChangeEvent} to all
 * registered listeners.
 *
 * @see #addAnnotation(XYAnnotation)
 */
public void clearAnnotations() {
    for (XYAnnotation annotation : this.annotations) {
        annotation.removeChangeListener(this);
    }
    this.annotations.clear();
    fireChangeEvent();
}
 
Example 4
Source File: XYPlot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Clears all the annotations and sends a {@link PlotChangeEvent} to all
 * registered listeners.
 *
 * @see #addAnnotation(XYAnnotation)
 */
public void clearAnnotations() {
    for (XYAnnotation annotation : this.annotations) {
        annotation.removeChangeListener(this);
    }
    this.annotations.clear();
    fireChangeEvent();
}
 
Example 5
Source File: XYPlot.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Clears all the annotations and sends a {@link PlotChangeEvent} to all
 * registered listeners.
 *
 * @see #addAnnotation(XYAnnotation)
 */
public void clearAnnotations() {
    for (XYAnnotation annotation : this.annotations) {
        annotation.removeChangeListener(this);
    }
    this.annotations.clear();
    fireChangeEvent();
}
 
Example 6
Source File: XYPlot.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Clears all the annotations and sends a {@link PlotChangeEvent} to all
 * registered listeners.
 *
 * @see #addAnnotation(XYAnnotation)
 */
public void clearAnnotations() {
    for (XYAnnotation annotation : this.annotations) {
        annotation.removeChangeListener(this);
    }
    this.annotations.clear();
    fireChangeEvent();
}
 
Example 7
Source File: AbstractXYItemRenderer.java    From ECG-Viewer with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Removes the specified annotation and sends a {@link RendererChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation to remove (<code>null</code> not
 *                    permitted).
 *
 * @return A boolean to indicate whether or not the annotation was
 *         successfully removed.
 */
@Override
public boolean removeAnnotation(XYAnnotation annotation) {
    boolean removed = this.foregroundAnnotations.remove(annotation);
    removed = removed & this.backgroundAnnotations.remove(annotation);
    annotation.removeChangeListener(this);
    fireChangeEvent();
    return removed;
}
 
Example 8
Source File: XYPlot.java    From buffer_bci with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @return A boolean (indicates whether or not the annotation was removed).
 *
 * @since 1.0.10
 */
public boolean removeAnnotation(XYAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    boolean removed = this.annotations.remove(annotation);
    annotation.removeChangeListener(this);
    if (removed && notify) {
        fireChangeEvent();
    }
    return removed;
}
 
Example 9
Source File: AbstractXYItemRenderer.java    From buffer_bci with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Removes the specified annotation and sends a {@link RendererChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation to remove (<code>null</code> not
 *                    permitted).
 *
 * @return A boolean to indicate whether or not the annotation was
 *         successfully removed.
 */
@Override
public boolean removeAnnotation(XYAnnotation annotation) {
    boolean removed = this.foregroundAnnotations.remove(annotation);
    removed = removed & this.backgroundAnnotations.remove(annotation);
    annotation.removeChangeListener(this);
    fireChangeEvent();
    return removed;
}
 
Example 10
Source File: XYPlot.java    From buffer_bci with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @return A boolean (indicates whether or not the annotation was removed).
 *
 * @since 1.0.10
 */
public boolean removeAnnotation(XYAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    boolean removed = this.annotations.remove(annotation);
    annotation.removeChangeListener(this);
    if (removed && notify) {
        fireChangeEvent();
    }
    return removed;
}
 
Example 11
Source File: AbstractXYItemRenderer.java    From buffer_bci with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Removes the specified annotation and sends a {@link RendererChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation to remove (<code>null</code> not
 *                    permitted).
 *
 * @return A boolean to indicate whether or not the annotation was
 *         successfully removed.
 */
@Override
public boolean removeAnnotation(XYAnnotation annotation) {
    boolean removed = this.foregroundAnnotations.remove(annotation);
    removed = removed & this.backgroundAnnotations.remove(annotation);
    annotation.removeChangeListener(this);
    fireChangeEvent();
    return removed;
}
 
Example 12
Source File: AbstractXYItemRenderer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Removes the specified annotation and sends a {@link RendererChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation to remove (<code>null</code> not
 *                    permitted).
 *
 * @return A boolean to indicate whether or not the annotation was
 *         successfully removed.
 */
public boolean removeAnnotation(XYAnnotation annotation) {
    boolean removed = this.foregroundAnnotations.remove(annotation);
    removed = removed & this.backgroundAnnotations.remove(annotation);
    annotation.removeChangeListener(this);
    fireChangeEvent();
    return removed;
}
 
Example 13
Source File: XYPlot.java    From ECG-Viewer with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @return A boolean (indicates whether or not the annotation was removed).
 *
 * @since 1.0.10
 */
public boolean removeAnnotation(XYAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    boolean removed = this.annotations.remove(annotation);
    annotation.removeChangeListener(this);
    if (removed && notify) {
        fireChangeEvent();
    }
    return removed;
}
 
Example 14
Source File: AbstractXYItemRenderer.java    From openstock with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Removes the specified annotation and sends a {@link RendererChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation to remove (<code>null</code> not
 *                    permitted).
 *
 * @return A boolean to indicate whether or not the annotation was
 *         successfully removed.
 */
@Override
public boolean removeAnnotation(XYAnnotation annotation) {
    boolean removed = this.foregroundAnnotations.remove(annotation);
    removed = removed & this.backgroundAnnotations.remove(annotation);
    annotation.removeChangeListener(this);
    fireChangeEvent();
    return removed;
}
 
Example 15
Source File: XYPlot.java    From SIMVA-SoS with Apache License 2.0 3 votes vote down vote up
/**
 * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @return A boolean (indicates whether or not the annotation was removed).
 *
 * @since 1.0.10
 */
public boolean removeAnnotation(XYAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    boolean removed = this.annotations.remove(annotation);
    annotation.removeChangeListener(this);
    if (removed && notify) {
        fireChangeEvent();
    }
    return removed;
}
 
Example 16
Source File: AbstractXYItemRenderer.java    From SIMVA-SoS with Apache License 2.0 3 votes vote down vote up
/**
 * Removes the specified annotation and sends a {@link RendererChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation to remove (<code>null</code> not
 *                    permitted).
 *
 * @return A boolean to indicate whether or not the annotation was
 *         successfully removed.
 */
@Override
public boolean removeAnnotation(XYAnnotation annotation) {
    boolean removed = this.foregroundAnnotations.remove(annotation);
    removed = removed & this.backgroundAnnotations.remove(annotation);
    annotation.removeChangeListener(this);
    fireChangeEvent();
    return removed;
}
 
Example 17
Source File: XYPlot.java    From ccu-historian with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @return A boolean (indicates whether or not the annotation was removed).
 *
 * @since 1.0.10
 */
public boolean removeAnnotation(XYAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    boolean removed = this.annotations.remove(annotation);
    annotation.removeChangeListener(this);
    if (removed && notify) {
        fireChangeEvent();
    }
    return removed;
}
 
Example 18
Source File: AbstractXYItemRenderer.java    From ccu-historian with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Removes the specified annotation and sends a {@link RendererChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation to remove (<code>null</code> not
 *                    permitted).
 *
 * @return A boolean to indicate whether or not the annotation was
 *         successfully removed.
 */
@Override
public boolean removeAnnotation(XYAnnotation annotation) {
    boolean removed = this.foregroundAnnotations.remove(annotation);
    removed = removed & this.backgroundAnnotations.remove(annotation);
    annotation.removeChangeListener(this);
    fireChangeEvent();
    return removed;
}
 
Example 19
Source File: XYPlot.java    From openstock with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @return A boolean (indicates whether or not the annotation was removed).
 *
 * @since 1.0.10
 */
public boolean removeAnnotation(XYAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    boolean removed = this.annotations.remove(annotation);
    annotation.removeChangeListener(this);
    if (removed && notify) {
        fireChangeEvent();
    }
    return removed;
}