|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.data.AbstractDataset | +--org.jfree.data.AbstractSeriesDataset | +--org.jfree.data.TaskSeriesCollection
A collection of TaskSeries
objects.
This class provides one implementation of the MultiIntervalCategoryDataset
interface.
Constructor Summary | |
TaskSeriesCollection()
Default constructor. |
Method Summary | |
void |
add(TaskSeries series)
Adds a series to the dataset. |
int |
getColumnCount()
Returns the number of column in the dataset. |
int |
getColumnIndex(java.lang.Comparable columnKey)
Returns the column index for a column key. |
java.lang.Comparable |
getColumnKey(int item)
Returns a column key. |
java.util.List |
getColumnKeys()
Returns a list of the column keys in the dataset. |
java.lang.Number |
getEndValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the end value for a task. |
java.lang.Number |
getEndValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey,
int subinterval)
Returns the end value of a sub-interval for a given item. |
java.lang.Number |
getEndValue(int row,
int column)
Returns the end value for a task. |
java.lang.Number |
getEndValue(int row,
int column,
int subinterval)
Returns the end value of a sub-interval for a given item. |
int |
getRowCount()
Returns the number of rows (series) in the collection. |
int |
getRowIndex(java.lang.Comparable rowKey)
Returns the row index for the given row key. |
java.lang.Comparable |
getRowKey(int index)
Returns the key for a row. |
java.util.List |
getRowKeys()
Returns the row keys. |
int |
getSeriesCount()
Returns the number of series in the collection. |
java.lang.String |
getSeriesName(int series)
Returns the name of a series. |
java.lang.Number |
getStartValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the start value for a task. |
java.lang.Number |
getStartValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey,
int subinterval)
Returns the start value of a sub-interval for a given item. |
java.lang.Number |
getStartValue(int row,
int column)
Returns the start value for a task. |
java.lang.Number |
getStartValue(int row,
int column,
int subinterval)
Returns the start value of a sub-interval for a given item. |
int |
getSubIntervalCount(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the number of sub-intervals for a given item. |
int |
getSubIntervalCount(int row,
int column)
Returns the number of sub-intervals for a given item. |
java.lang.Number |
getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the value for an item. |
java.lang.Number |
getValue(int row,
int column)
/** Returns the value for a task. |
void |
remove(int series)
Removes a series from the collection. |
void |
remove(TaskSeries series)
Removes a series from the collection. |
void |
removeAll()
Removes all the series from the collection. |
void |
seriesChanged(SeriesChangeEvent event)
Called when a series belonging to the dataset changes. |
Methods inherited from class org.jfree.data.AbstractDataset |
addChangeListener, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
Constructor Detail |
public TaskSeriesCollection()
Method Detail |
public java.lang.String getSeriesName(int series)
getSeriesName
in interface SeriesDataset
getSeriesName
in class AbstractSeriesDataset
series
- the series index (zero-based).
public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public int getRowCount()
getRowCount
in interface Values2D
public int getColumnCount()
getColumnCount
in interface Values2D
public java.util.List getRowKeys()
getRowKeys
in interface KeyedValues2D
public java.util.List getColumnKeys()
getColumnKeys
in interface KeyedValues2D
public java.lang.Comparable getColumnKey(int item)
getColumnKey
in interface KeyedValues2D
item
- the index.
public int getColumnIndex(java.lang.Comparable columnKey)
getColumnIndex
in interface KeyedValues2D
columnKey
- the columnKey.
public int getRowIndex(java.lang.Comparable rowKey)
getRowIndex
in interface KeyedValues2D
rowKey
- the row key.
public java.lang.Comparable getRowKey(int index)
getRowKey
in interface KeyedValues2D
index
- the row index (zero-based).
public void add(TaskSeries series)
series
- the series.public void remove(int series)
Notifies all registered listeners that the dataset has changed.
series
- the series (zero based index).public void remove(TaskSeries series)
Notifies all registered listeners that the dataset has changed.
series
- the series.public void removeAll()
Notifies all registered listeners that the dataset has changed.
public java.lang.Number getValue(java.lang.Comparable rowKey, java.lang.Comparable columnKey)
getValue
in interface KeyedValues2D
rowKey
- the row key.columnKey
- the column key.
public java.lang.Number getValue(int row, int column)
getValue
in interface Values2D
row
- the row index (zero-based).column
- the column index (zero-based).
public java.lang.Number getStartValue(java.lang.Comparable rowKey, java.lang.Comparable columnKey)
getStartValue
in interface IntervalCategoryDataset
rowKey
- the series.columnKey
- the category.
public java.lang.Number getStartValue(int row, int column)
getStartValue
in interface IntervalCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).
public java.lang.Number getEndValue(java.lang.Comparable rowKey, java.lang.Comparable columnKey)
getEndValue
in interface IntervalCategoryDataset
rowKey
- the series.columnKey
- the category.
public java.lang.Number getEndValue(int row, int column)
getEndValue
in interface IntervalCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).
public int getSubIntervalCount(int row, int column)
getSubIntervalCount
in interface MultiIntervalCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).
public int getSubIntervalCount(java.lang.Comparable rowKey, java.lang.Comparable columnKey)
getSubIntervalCount
in interface MultiIntervalCategoryDataset
rowKey
- the row key.columnKey
- the column key.
public java.lang.Number getStartValue(int row, int column, int subinterval)
getStartValue
in interface MultiIntervalCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).subinterval
- the sub-interval index (zero-based).
null
).public java.lang.Number getStartValue(java.lang.Comparable rowKey, java.lang.Comparable columnKey, int subinterval)
getStartValue
in interface MultiIntervalCategoryDataset
rowKey
- the row key.columnKey
- the column key.subinterval
- the subinterval.
null
).public java.lang.Number getEndValue(int row, int column, int subinterval)
getEndValue
in interface MultiIntervalCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).subinterval
- the subinterval.
null
).public java.lang.Number getEndValue(java.lang.Comparable rowKey, java.lang.Comparable columnKey, int subinterval)
getEndValue
in interface MultiIntervalCategoryDataset
rowKey
- the row key.columnKey
- the column key.subinterval
- the subinterval.
null
).public void seriesChanged(SeriesChangeEvent event)
seriesChanged
in interface SeriesChangeListener
seriesChanged
in class AbstractSeriesDataset
event
- information about the change.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |