|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.data.Series | +--org.jfree.data.TaskSeries
A series that contains zero, one or many Task
objects.
This class is used as a building block for the TaskSeriesCollection
class that
implements the MultiIntervalCategoryDataset
that, in turn, can be used to construct
basic Gantt charts.
Constructor Summary | |
TaskSeries(java.lang.String name)
Constructs a new series with the specified name. |
Method Summary | |
void |
add(Task task)
Adds a task to the series. |
Task |
get(int index)
Returns a task from the series. |
int |
getItemCount()
Returns the number of items in the series. |
java.util.List |
getTasks()
Returns the tasks. |
void |
remove(Task task)
Removes a task from the series. |
void |
removeAll()
|
Methods inherited from class org.jfree.data.Series |
addChangeListener, addPropertyChangeListener, clone, firePropertyChange, fireSeriesChanged, getDescription, getName, notifyListeners, removeChangeListener, removePropertyChangeListener, setDescription, setName |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TaskSeries(java.lang.String name)
name
- the series name.Method Detail |
public void add(Task task)
task
- the task.public void remove(Task task)
task
- the task.public void removeAll()
public java.util.List getTasks()
public Task get(int index)
index
- the task index (zero-based).
public int getItemCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |