* Removes all annotations and sends a {@link RendererChangeEvent}
* to all registered listeners.
*/
public void removeAnnotations() {
for(int i = 0; i < this.foregroundAnnotations.size(); i++){
XYAnnotation annotation
= (XYAnnotation) this.foregroundAnnotations.get(i);
annotation.removeChangeListener(this);
}
for(int i = 0; i < this.backgroundAnnotations.size(); i++){
XYAnnotation annotation
= (XYAnnotation) this.backgroundAnnotations.get(i);
annotation.removeChangeListener(this);
}
this.foregroundAnnotations.clear();
this.backgroundAnnotations.clear();
fireChangeEvent();
}