Java Code Examples for org.jfree.chart.annotations.CategoryAnnotation#addChangeListener()

The following examples show how to use org.jfree.chart.annotations.CategoryAnnotation#addChangeListener() . 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: CategoryPlot.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds an annotation to the plot and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @since 1.0.10
 */
public void addAnnotation(CategoryAnnotation annotation, boolean notify) {
    if (annotation == null) {
        throw new IllegalArgumentException("Null 'annotation' argument.");
    }
    this.annotations.add(annotation);
    annotation.addChangeListener(this);
    if (notify) {
        fireChangeEvent();
    }
}
 
Example 2
Source File: CategoryPlot.java    From openstock with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Adds an annotation to the plot and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @since 1.0.10
 */
public void addAnnotation(CategoryAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotations.add(annotation);
    annotation.addChangeListener(this);
    if (notify) {
        fireChangeEvent();
    }
}
 
Example 3
Source File: CategoryPlot.java    From ccu-historian with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Adds an annotation to the plot and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @since 1.0.10
 */
public void addAnnotation(CategoryAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotations.add(annotation);
    annotation.addChangeListener(this);
    if (notify) {
        fireChangeEvent();
    }
}
 
Example 4
Source File: CategoryPlot.java    From SIMVA-SoS with Apache License 2.0 3 votes vote down vote up
/**
 * Adds an annotation to the plot and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @since 1.0.10
 */
public void addAnnotation(CategoryAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotations.add(annotation);
    annotation.addChangeListener(this);
    if (notify) {
        fireChangeEvent();
    }
}
 
Example 5
Source File: CategoryPlot.java    From ECG-Viewer with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Adds an annotation to the plot and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @since 1.0.10
 */
public void addAnnotation(CategoryAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotations.add(annotation);
    annotation.addChangeListener(this);
    if (notify) {
        fireChangeEvent();
    }
}
 
Example 6
Source File: CategoryPlot.java    From buffer_bci with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Adds an annotation to the plot and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @since 1.0.10
 */
public void addAnnotation(CategoryAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotations.add(annotation);
    annotation.addChangeListener(this);
    if (notify) {
        fireChangeEvent();
    }
}
 
Example 7
Source File: CategoryPlot.java    From buffer_bci with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Adds an annotation to the plot and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @since 1.0.10
 */
public void addAnnotation(CategoryAnnotation annotation, boolean notify) {
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotations.add(annotation);
    annotation.addChangeListener(this);
    if (notify) {
        fireChangeEvent();
    }
}