Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.gantt.TaskSeriesCollection
public class TaskSeriesCollection
extends AbstractSeriesDataset
implements GanttCategoryDataset, Cloneable, PublicCloneable, Serializable
TaskSeries
objects. This class provides one
implementation of the GanttCategoryDataset
interface.
Constructor Summary | |
|
Method Summary | |
void |
|
boolean |
|
int |
|
int |
|
Comparable |
|
List |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
int |
|
int |
|
Comparable |
|
List |
|
TaskSeries |
|
TaskSeries |
|
int |
|
Comparable |
|
Number |
|
Number |
|
Number |
|
Number |
|
int |
|
int |
|
Number |
|
Number |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset | |
getSeriesCount , getSeriesKey , indexOf , seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset | |
addChangeListener , clone , fireDatasetChanged , getGroup , hasListener , notifyListeners , removeChangeListener , setGroup , validateObject |
public void add(TaskSeries series)
Adds a series to the dataset and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
series
- the series (null
not permitted).
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
- Parameters:
obj
- the object (null
permitted).
- Returns:
- A boolean.
public int getColumnCount()
Returns the number of column in the dataset.
- Specified by:
- getColumnCount in interface Values2D
- Returns:
- The column count.
public int getColumnIndex(Comparable columnKey)
Returns the column index for a column key.
- Specified by:
- getColumnIndex in interface KeyedValues2D
- Parameters:
columnKey
- the columnKey.
- Returns:
- The column index.
public Comparable getColumnKey(int index)
Returns a column key.
- Specified by:
- getColumnKey in interface KeyedValues2D
- Parameters:
index
- the column index.
- Returns:
- The column key.
public List getColumnKeys()
Returns a list of the column keys in the dataset.
- Specified by:
- getColumnKeys in interface KeyedValues2D
- Returns:
- The category list.
public Number getEndValue(Comparable rowKey, Comparable columnKey)
Returns the end value for a task. This is a date/time value, measured in milliseconds since 1-Jan-1970.
- Specified by:
- getEndValue in interface IntervalCategoryDataset
- Parameters:
rowKey
- the series.columnKey
- the category.
- Returns:
- The end value (possibly
null
).
public Number getEndValue(Comparable rowKey, Comparable columnKey, int subinterval)
Returns the end value of a sub-interval for a given item.
- Specified by:
- getEndValue in interface GanttCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.subinterval
- the subinterval.
- Returns:
- The end value (possibly
null
).
public Number getEndValue(int row, int column)
Returns the end value for a task.
- Specified by:
- getEndValue in interface IntervalCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The end value.
public Number getEndValue(int row, int column, int subinterval)
Returns the end value of a sub-interval for a given item.
- Specified by:
- getEndValue in interface GanttCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).subinterval
- the subinterval.
- Returns:
- The end value (possibly
null
).
public Number getPercentComplete(Comparable rowKey, Comparable columnKey)
Returns the percent complete for a given item.
- Specified by:
- getPercentComplete in interface GanttCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- The percent complete.
public Number getPercentComplete(Comparable rowKey, Comparable columnKey, int subinterval)
Returns the percentage complete value of a sub-interval for a given item.
- Specified by:
- getPercentComplete in interface GanttCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.subinterval
- the sub-interval.
- Returns:
- The precent complete value (possibly
null
).
public Number getPercentComplete(int row, int column)
Returns the percent complete for a given item.
- Specified by:
- getPercentComplete in interface GanttCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The percent complete (possibly
null
).
public Number getPercentComplete(int row, int column, int subinterval)
Returns the percentage complete value of a sub-interval for a given item.
- Specified by:
- getPercentComplete in interface GanttCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).subinterval
- the sub-interval.
- Returns:
- The percent complete value (possibly
null
).
public int getRowCount()
Returns the number of rows (series) in the collection.
- Specified by:
- getRowCount in interface Values2D
- Returns:
- The series count.
public int getRowIndex(Comparable rowKey)
Returns the row index for the given row key.
- Specified by:
- getRowIndex in interface KeyedValues2D
- Parameters:
rowKey
- the row key.
- Returns:
- The index.
public Comparable getRowKey(int index)
Returns the key for a row.
- Specified by:
- getRowKey in interface KeyedValues2D
- Parameters:
index
- the row index (zero-based).
- Returns:
- The key.
public List getRowKeys()
Returns the row keys. In this case, each series is a key.
- Specified by:
- getRowKeys in interface KeyedValues2D
- Returns:
- The row keys.
public TaskSeries getSeries(Comparable key)
Returns a series from the collection.
- Parameters:
key
- the series key (null
not permitted).
- Returns:
- The series.
- Since:
- 1.0.1
public TaskSeries getSeries(int series)
Returns a series from the collection.
- Parameters:
series
- the series index (zero-based).
- Returns:
- The series.
- Since:
- 1.0.1
public int getSeriesCount()
Returns the number of series in the collection.
- Specified by:
- getSeriesCount in interface SeriesDataset
- Overrides:
- getSeriesCount in interface AbstractSeriesDataset
- Returns:
- The series count.
public Comparable getSeriesKey(int series)
Returns the name of a series.
- Specified by:
- getSeriesKey in interface SeriesDataset
- Overrides:
- getSeriesKey in interface AbstractSeriesDataset
- Parameters:
series
- the series index (zero-based).
- Returns:
- The name of a series.
public Number getStartValue(Comparable rowKey, Comparable columnKey)
Returns the start value for a task. This is a date/time value, measured in milliseconds since 1-Jan-1970.
- Specified by:
- getStartValue in interface IntervalCategoryDataset
- Parameters:
rowKey
- the series.columnKey
- the category.
- Returns:
- The start value (possibly
null
).
public Number getStartValue(Comparable rowKey, Comparable columnKey, int subinterval)
Returns the start value of a sub-interval for a given item.
- Specified by:
- getStartValue in interface GanttCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.subinterval
- the subinterval.
- Returns:
- The start value (possibly
null
).
public Number getStartValue(int row, int column)
Returns the start value for a task.
- Specified by:
- getStartValue in interface IntervalCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The start value.
public Number getStartValue(int row, int column, int subinterval)
Returns the start value of a sub-interval for a given item.
- Specified by:
- getStartValue in interface GanttCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).subinterval
- the sub-interval index (zero-based).
- Returns:
- The start value (possibly
null
).
public int getSubIntervalCount(Comparable rowKey, Comparable columnKey)
Returns the number of sub-intervals for a given item.
- Specified by:
- getSubIntervalCount in interface GanttCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- The sub-interval count.
public int getSubIntervalCount(int row, int column)
Returns the number of sub-intervals for a given item.
- Specified by:
- getSubIntervalCount in interface GanttCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The sub-interval count.
public Number getValue(Comparable rowKey, Comparable columnKey)
Returns the value for an item.
- Specified by:
- getValue in interface KeyedValues2D
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- The item value.
public Number getValue(int row, int column)
Returns the value for a task.
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The start value.
public void remove(int series)
Removes a series from the collection and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
series
- the series (zero based index).
public void remove(TaskSeries series)
Removes a series from the collection and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
series
- the series.
public void removeAll()
Removes all the series from the collection and sends aDatasetChangeEvent
to all registered listeners.
public void seriesChanged(SeriesChangeEvent event)
Called when a series belonging to the dataset changes.
- Specified by:
- seriesChanged in interface SeriesChangeListener
- Overrides:
- seriesChanged in interface AbstractSeriesDataset
- Parameters:
event
- information about the change.