/** * Removes a task from the series and sends * a {@link org.jfree.data.general.SeriesChangeEvent} * to all registered listeners. * * @param task the task. */ public void remove(Task task) { this.tasks.remove(task); fireSeriesChanged(); }
/** * Removes all tasks from the series and sends * a {@link org.jfree.data.general.SeriesChangeEvent} * to all registered listeners. */ public void removeAll() { this.tasks.clear(); fireSeriesChanged(); }
/** * Removes a task from the series and sends * a {@link org.jfree.data.general.SeriesChangeEvent} * to all registered listeners. * * @param task the task. */ public void remove(Task task) { this.tasks.remove(task); fireSeriesChanged(); }
/** * Removes all tasks from the series and sends * a {@link org.jfree.data.general.SeriesChangeEvent} * to all registered listeners. */ public void removeAll() { this.tasks.clear(); fireSeriesChanged(); }
/** * Adds a task to the series and sends a * {@link org.jfree.data.general.SeriesChangeEvent} to all registered * listeners. * * @param task the task (<code>null</code> not permitted). */ public void add(Task task) { if (task == null) { throw new IllegalArgumentException("Null 'task' argument."); } this.tasks.add(task); fireSeriesChanged(); }
/** * Adds a task to the series and sends a * {@link org.jfree.data.general.SeriesChangeEvent} to all registered * listeners. * * @param task the task ({@code null} not permitted). */ public void add(Task task) { Args.nullNotPermitted(task, "task"); this.tasks.add(task); fireSeriesChanged(); }