|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.general.Series
org.jfree.data.gantt.TaskSeries
public class TaskSeries
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.
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 and sends a SeriesChangeEvent to all registered
listeners. |
java.lang.Object |
clone()
Returns an independent copy of this series. |
boolean |
equals(java.lang.Object obj)
Tests this object for equality with an arbitrary object. |
Task |
get(int index)
Returns a task from the series. |
Task |
get(java.lang.String description)
Returns the task in the series that has the specified description. |
int |
getItemCount()
Returns the number of items in the series. |
java.util.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. |
Methods inherited from class org.jfree.data.general.Series |
---|
addChangeListener, addPropertyChangeListener, firePropertyChange, fireSeriesChanged, getDescription, getKey, getNotify, hashCode, isEmpty, notifyListeners, removeChangeListener, removePropertyChangeListener, setDescription, setKey, setNotify |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskSeries(java.lang.String name)
name
- the series name (null
not permitted).Method Detail |
---|
public void add(Task task)
SeriesChangeEvent
to all registered
listeners.
task
- the task (null
not permitted).public void remove(Task task)
SeriesChangeEvent
to all registered listeners.
task
- the task.public void removeAll()
SeriesChangeEvent
to all registered listeners.
public int getItemCount()
getItemCount
in class Series
public Task get(int index)
index
- the task index (zero-based).
public Task get(java.lang.String description)
description
- the name (null
not permitted).
null
).public java.util.List getTasks()
public boolean equals(java.lang.Object obj)
equals
in class Series
obj
- the object to test against (null
permitted).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class Series
java.lang.CloneNotSupportedException
- if there is some problem cloning
the dataset.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |