Logo Search packages:      
Sourcecode: libjfreechart-java version File versions  Download package

boolean org::jfree::chart::renderer::xy::AbstractXYItemRenderer::removeAnnotation ( XYAnnotation  annotation  )  [inline, inherited]

Removes the specified annotation and sends a RendererChangeEvent to all registered listeners.

Parameters:
annotation the annotation to remove (null not permitted).
Returns:
A boolean to indicate whether or not the annotation was successfully removed.

Implements org::jfree::chart::renderer::xy::XYItemRenderer.

Definition at line 590 of file AbstractXYItemRenderer.java.

References org::jfree::chart::renderer::xy::AbstractXYItemRenderer::backgroundAnnotations, org::jfree::chart::renderer::AbstractRenderer::fireChangeEvent(), and org::jfree::chart::renderer::xy::AbstractXYItemRenderer::foregroundAnnotations.

                                                             {
        boolean removed = this.foregroundAnnotations.remove(annotation);
        removed = removed & this.backgroundAnnotations.remove(annotation);
        fireChangeEvent();
        return removed;
    }


Generated by  Doxygen 1.6.0   Back to index