trunk/adhoc-internal/src/main/java/org/jfree/chart/plot/XYPlot.java
/**
     * 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
     */
Adds an annotation to the plot and, if requested, sends a
PlotChangeEvent to all registered listeners.

@param annotation  the annotation (null not permitted).


Adds an annotation to the plot and if requested sends a PlotChangeEvent to all registered listeners . @param annotation the annotation ( null not permitted ) .
public void addAnnotation(XYAnnotation annotation, boolean notify) {
        if (annotation == null) {
            throw new IllegalArgumentException("Null 'annotation' argument.");
        }
        this.annotations.add(annotation);
        if (notify) {
            fireChangeEvent();
        }
    }
public void addAnnotation ( XYAnnotation annotation , boolean notify ) { if ( annotation == null ) { throw new IllegalArgumentException ( "Null 'annotation' argument." ) ; } this . annotations . add ( annotation ) ; if ( notify ) { fireChangeEvent ( ) ; } }
Adds an annotation to the plot and, if requested, sends a
 {@link PlotChangeEvent} to all registered listeners.
Adds an annotation to the plot and if requested sends a { @link PlotChangeEvent } to all registered listeners .