public class

TaskSeries

extends Series
java.lang.Object
   ↳ org.jfree.data.general.Series
     ↳ org.jfree.data.gantt.TaskSeries

Class Overview

A series that contains zero, one or many Task objects.

This class is used as a building block for the TaskSeriesCollection class that can be used to construct basic Gantt charts.

Summary

Public Constructors
TaskSeries(String name)
Constructs a new series with the specified name.
Public Methods
void add(Task task)
Adds a task to the series and sends a SeriesChangeEvent to all registered listeners.
Object clone()
Returns an independent copy of this series.
boolean equals(Object obj)
Tests this object for equality with an arbitrary object.
Task get(int index)
Returns a task from the series.
Task get(String description)
Returns the task in the series that has the specified description.
int getItemCount()
Returns the number of items in the series.
List getTasks()
Returns an unmodifialble list of the tasks in the series.
void remove(Task task)
Removes a task from the series and sends a SeriesChangeEvent to all registered listeners.
void removeAll()
Removes all tasks from the series and sends a SeriesChangeEvent to all registered listeners.
[Expand]
Inherited Methods
From class org.jfree.data.general.Series
From class java.lang.Object

Public Constructors

public TaskSeries (String name)

Constructs a new series with the specified name.

Parameters
name the series name (null not permitted).

Public Methods

public void add (Task task)

Adds a task to the series and sends a SeriesChangeEvent to all registered listeners.

Parameters
task the task (null not permitted).

public Object clone ()

Returns an independent copy of this series.

Returns
  • A clone of the series.
Throws
CloneNotSupportedException if there is some problem cloning the dataset.

public boolean equals (Object obj)

Tests this object for equality with an arbitrary object.

Parameters
obj the object to test against (null permitted).
Returns
  • A boolean.

public Task get (int index)

Returns a task from the series.

Parameters
index the task index (zero-based).
Returns
  • The task.

public Task get (String description)

Returns the task in the series that has the specified description.

Parameters
description the name (null not permitted).
Returns
  • The task (possibly null).

public int getItemCount ()

Returns the number of items in the series.

Returns
  • The item count.

public List getTasks ()

Returns an unmodifialble list of the tasks in the series.

Returns
  • The tasks.

public void remove (Task task)

Removes a task from the series and sends a SeriesChangeEvent to all registered listeners.

Parameters
task the task.

public void removeAll ()

Removes all tasks from the series and sends a SeriesChangeEvent to all registered listeners.