/**
  * Deletes data from start until end index (end inclusive) and sends a {@link SeriesChangeEvent}
  * to all registered listeners.
  *
  * @param start the index of the first period to delete.
  * @param end the index of the last period to delete.
  */
 public void delete(int start, int end) {
   for (int i = 0; i <= (end - start); i++) {
     this.data.remove(start);
   }
   recalculateBounds();
   fireSeriesChanged();
 }