|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.AbstractDataset
org.jfree.data.AbstractSeriesDataset
org.jfree.data.gantt.TaskSeriesCollection
A collection of TaskSeries objects.
This class provides one implementation of the GanttCategoryDataset 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. |
java.lang.Number |
getPercentComplete(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the percent complete for a given item. |
java.lang.Number |
getPercentComplete(java.lang.Comparable rowKey,
java.lang.Comparable columnKey,
int subinterval)
Returns the percentage complete value of a sub-interval for a given item. |
java.lang.Number |
getPercentComplete(int row,
int column)
Returns the percent complete for a given item. |
java.lang.Number |
getPercentComplete(int row,
int column,
int subinterval)
Returns the percentage complete 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, clone, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup, validateObject |
| Methods inherited from class java.lang.Object |
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 SeriesDatasetgetSeriesName in class AbstractSeriesDatasetseries - the series index (zero-based).
public int getSeriesCount()
getSeriesCount in interface SeriesDatasetgetSeriesCount in class AbstractSeriesDatasetpublic int getRowCount()
getRowCount in interface Values2Dpublic int getColumnCount()
getColumnCount in interface Values2Dpublic java.util.List getRowKeys()
getRowKeys in interface KeyedValues2Dpublic java.util.List getColumnKeys()
getColumnKeys in interface KeyedValues2Dpublic java.lang.Comparable getColumnKey(int item)
getColumnKey in interface KeyedValues2Ditem - the index.
public int getColumnIndex(java.lang.Comparable columnKey)
getColumnIndex in interface KeyedValues2DcolumnKey - the columnKey.
public int getRowIndex(java.lang.Comparable rowKey)
getRowIndex in interface KeyedValues2DrowKey - the row key.
public java.lang.Comparable getRowKey(int index)
getRowKey in interface KeyedValues2Dindex - 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 KeyedValues2DrowKey - the row key.columnKey - the column key.
public java.lang.Number getValue(int row,
int column)
getValue in interface Values2Drow - 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 IntervalCategoryDatasetrowKey - the series.columnKey - the category.
public java.lang.Number getStartValue(int row,
int column)
getStartValue in interface IntervalCategoryDatasetrow - 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 IntervalCategoryDatasetrowKey - the series.columnKey - the category.
public java.lang.Number getEndValue(int row,
int column)
getEndValue in interface IntervalCategoryDatasetrow - the row index (zero-based).column - the column index (zero-based).
public java.lang.Number getPercentComplete(int row,
int column)
getPercentComplete in interface GanttCategoryDatasetrow - the row index (zero-based).column - the column index (zero-based).
public java.lang.Number getPercentComplete(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
getPercentComplete in interface GanttCategoryDatasetrowKey - the row key.columnKey - the column key.
public int getSubIntervalCount(int row,
int column)
getSubIntervalCount in interface GanttCategoryDatasetrow - 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 GanttCategoryDatasetrowKey - the row key.columnKey - the column key.
public java.lang.Number getStartValue(int row,
int column,
int subinterval)
getStartValue in interface GanttCategoryDatasetrow - 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 GanttCategoryDatasetrowKey - 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 GanttCategoryDatasetrow - 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 GanttCategoryDatasetrowKey - the row key.columnKey - the column key.subinterval - the subinterval.
null).
public java.lang.Number getPercentComplete(int row,
int column,
int subinterval)
getPercentComplete in interface GanttCategoryDatasetrow - the row index (zero-based).column - the column index (zero-based).subinterval - the sub-interval.
null).
public java.lang.Number getPercentComplete(java.lang.Comparable rowKey,
java.lang.Comparable columnKey,
int subinterval)
getPercentComplete in interface GanttCategoryDatasetrowKey - the row key.columnKey - the column key.subinterval - the sub-interval.
null).public void seriesChanged(SeriesChangeEvent event)
seriesChanged in interface SeriesChangeListenerseriesChanged in class AbstractSeriesDatasetevent - information about the change.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||