org.jfree.data.gantt

Interface GanttCategoryDataset

All Superinterfaces:
CategoryDataset, Dataset, IntervalCategoryDataset, KeyedValues2D, Values2D
Known Implementing Classes:
TaskSeriesCollection

public interface GanttCategoryDataset
extends IntervalCategoryDataset

An extension of the IntervalCategoryDataset interface that adds support for multiple sub-intervals.

Method Summary

Number
getEndValue(Comparable rowKey, Comparable columnKey, int subinterval)
Returns the end value of a sub-interval for a given item.
Number
getEndValue(int row, int column, int subinterval)
Returns the end value of a sub-interval for a given item.
Number
getPercentComplete(Comparable rowKey, Comparable columnKey)
Returns the percent complete for a given item.
Number
getPercentComplete(Comparable rowKey, Comparable columnKey, int subinterval)
Returns the percentage complete value of a sub-interval for a given item.
Number
getPercentComplete(int row, int column)
Returns the percent complete for a given item.
Number
getPercentComplete(int row, int column, int subinterval)
Returns the percentage complete value of a sub-interval for a given item.
Number
getStartValue(Comparable rowKey, Comparable columnKey, int subinterval)
Returns the start value of a sub-interval for a given item.
Number
getStartValue(int row, int column, int subinterval)
Returns the start value of a sub-interval for a given item.
int
getSubIntervalCount(Comparable rowKey, 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.

Methods inherited from interface org.jfree.data.general.Dataset

addChangeListener, getGroup, removeChangeListener, setGroup

Methods inherited from interface org.jfree.data.category.IntervalCategoryDataset

getEndValue, getEndValue, getStartValue, getStartValue

Methods inherited from interface org.jfree.data.KeyedValues2D

getColumnIndex, getColumnKey, getColumnKeys, getRowIndex, getRowKey, getRowKeys, getValue

Methods inherited from interface org.jfree.data.Values2D

getColumnCount, getRowCount, getValue

Method Details

getEndValue

public Number getEndValue(Comparable rowKey,
                          Comparable columnKey,
                          int subinterval)
Returns the end value of a sub-interval for a given item.
Parameters:
rowKey - the row key.
columnKey - the column key.
subinterval - the sub-interval.
Returns:
The end value (possibly null).

getEndValue

public Number getEndValue(int row,
                          int column,
                          int subinterval)
Returns the end value of a sub-interval for a given item.
Parameters:
row - the row index (zero-based).
column - the column index (zero-based).
subinterval - the sub-interval.
Returns:
The end value (possibly null).

getPercentComplete

public Number getPercentComplete(Comparable rowKey,
                                 Comparable columnKey)
Returns the percent complete for a given item.
Parameters:
rowKey - the row key.
columnKey - the column key.
Returns:
The percent complete.

getPercentComplete

public Number getPercentComplete(Comparable rowKey,
                                 Comparable columnKey,
                                 int subinterval)
Returns the percentage complete value of a sub-interval for a given item.
Parameters:
rowKey - the row key.
columnKey - the column key.
subinterval - the sub-interval.
Returns:
The precent complete value (possibly null).

getPercentComplete

public Number getPercentComplete(int row,
                                 int column)
Returns the percent complete for a given item.
Parameters:
row - the row index (zero-based).
column - the column index (zero-based).
Returns:
The percent complete.

getPercentComplete

public Number getPercentComplete(int row,
                                 int column,
                                 int subinterval)
Returns the percentage complete value of a sub-interval for a given item.
Parameters:
row - the row index (zero-based).
column - the column index (zero-based).
subinterval - the sub-interval.
Returns:
The percent complete value (possibly null).

getStartValue

public Number getStartValue(Comparable rowKey,
                            Comparable columnKey,
                            int subinterval)
Returns the start value of a sub-interval for a given item.
Parameters:
rowKey - the row key.
columnKey - the column key.
subinterval - the sub-interval.
Returns:
The start value (possibly null).

getStartValue

public Number getStartValue(int row,
                            int column,
                            int subinterval)
Returns the start value of a sub-interval for a given item.
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).

getSubIntervalCount

public int getSubIntervalCount(Comparable rowKey,
                               Comparable columnKey)
Returns the number of sub-intervals for a given item.
Parameters:
rowKey - the row key.
columnKey - the column key.
Returns:
The sub-interval count.

getSubIntervalCount

public int getSubIntervalCount(int row,
                               int column)
Returns the number of sub-intervals for a given item.
Parameters:
row - the row index (zero-based).
column - the column index (zero-based).
Returns:
The sub-interval count.