|
Header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.general.AbstractDataset
org.jfree.data.gantt.SlidingGanttCategoryDataset
public class SlidingGanttCategoryDataset
A GanttCategoryDataset implementation that presents a subset of the
categories in an underlying dataset. The index of the first "visible"
category can be modified, which provides a means of "sliding" through
the categories in the underlying dataset.
| Constructor Summary | |
|---|---|
SlidingGanttCategoryDataset(GanttCategoryDataset underlying,
int firstColumn,
int maxColumns)
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns an independent copy of the dataset. |
boolean |
equals(java.lang.Object obj)
Tests this SlidingCategoryDataset for equality with an
arbitrary object. |
int |
getColumnCount()
Returns the number of columns in the table. |
int |
getColumnIndex(java.lang.Comparable key)
Returns the index for the specified column key. |
java.lang.Comparable |
getColumnKey(int column)
Returns the column key for a given index. |
java.util.List |
getColumnKeys()
Returns the column keys. |
java.lang.Number |
getEndValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the end value for the interval for a given series and category. |
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 series,
int category)
Returns the end value for the interval for a given series and category. |
java.lang.Number |
getEndValue(int row,
int column,
int subinterval)
Returns the end value of a sub-interval for a given item. |
int |
getFirstCategoryIndex()
Returns the index of the first visible category. |
int |
getMaximumCategoryCount()
Returns the maximum category count. |
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 series,
int category)
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 in the table. |
int |
getRowIndex(java.lang.Comparable key)
Returns the row index for a given key. |
java.lang.Comparable |
getRowKey(int row)
Returns the row key for a given index. |
java.util.List |
getRowKeys()
Returns the row keys. |
java.lang.Number |
getStartValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the start value for the interval for a given series and category. |
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 the interval for a given series and category. |
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. |
GanttCategoryDataset |
getUnderlyingDataset()
Returns the underlying dataset that was supplied to the constructor. |
java.lang.Number |
getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the value for a pair of keys. |
java.lang.Number |
getValue(int row,
int column)
Returns a value from the table. |
void |
setFirstCategoryIndex(int first)
Sets the index of the first category that should be used from the underlying dataset, and sends a DatasetChangeEvent to all
registered listeners. |
void |
setMaximumCategoryCount(int max)
Sets the maximum category count and sends a DatasetChangeEvent
to all registered listeners. |
| Methods inherited from class org.jfree.data.general.AbstractDataset |
|---|
addChangeListener, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.data.general.Dataset |
|---|
addChangeListener, getGroup, removeChangeListener, setGroup |
| Constructor Detail |
|---|
public SlidingGanttCategoryDataset(GanttCategoryDataset underlying,
int firstColumn,
int maxColumns)
underlying - the underlying dataset (null not
permitted).firstColumn - the index of the first visible column from the
underlying dataset.maxColumns - the maximumColumnCount.| Method Detail |
|---|
public GanttCategoryDataset getUnderlyingDataset()
null).public int getFirstCategoryIndex()
setFirstCategoryIndex(int)public void setFirstCategoryIndex(int first)
DatasetChangeEvent to all
registered listeners.
first - the index.getFirstCategoryIndex()public int getMaximumCategoryCount()
setMaximumCategoryCount(int)public void setMaximumCategoryCount(int max)
DatasetChangeEvent
to all registered listeners.
max - the maximum.getMaximumCategoryCount()public int getColumnIndex(java.lang.Comparable key)
getColumnIndex in interface KeyedValues2Dkey - the key.
public java.lang.Comparable getColumnKey(int column)
getColumnKey in interface KeyedValues2Dcolumn - the column index (zero-based).
java.lang.IndexOutOfBoundsException - if row is out of bounds.public java.util.List getColumnKeys()
getColumnKeys in interface KeyedValues2DgetColumnKey(int)public int getRowIndex(java.lang.Comparable key)
getRowIndex in interface KeyedValues2Dkey - the row key.
-1 if the key is unrecognised.public java.lang.Comparable getRowKey(int row)
getRowKey in interface KeyedValues2Drow - the row index (zero-based).
java.lang.IndexOutOfBoundsException - if row is out of bounds.public java.util.List getRowKeys()
getRowKeys in interface KeyedValues2D
public java.lang.Number getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
getValue in interface KeyedValues2DrowKey - the row key (null not permitted).columnKey - the column key (null not permitted).
null).
UnknownKeyException - if either key is not defined in the dataset.public int getColumnCount()
getColumnCount in interface Values2Dpublic int getRowCount()
getRowCount in interface Values2D
public java.lang.Number getValue(int row,
int column)
getValue in interface Values2Drow - the row index (zero-based).column - the column index (zero-based).
null).
public java.lang.Number getPercentComplete(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
getPercentComplete in interface GanttCategoryDatasetrowKey - the row key.columnKey - the column key.
GanttCategoryDataset.getPercentComplete(int, int)
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).getPercentComplete(int, int, int)
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 sub-interval.
null).getStartValue(Comparable, Comparable, int)
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 sub-interval.
null).getStartValue(int, int, int)
public java.lang.Number getPercentComplete(int series,
int category)
getPercentComplete in interface GanttCategoryDatasetseries - the row index (zero-based).category - the column index (zero-based).
GanttCategoryDataset.getPercentComplete(Comparable, Comparable)
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).getPercentComplete(Comparable, Comparable, int)
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 sub-interval.
null).getEndValue(Comparable, Comparable, int)
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).getEndValue(int, int, int)
public int getSubIntervalCount(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
getSubIntervalCount in interface GanttCategoryDatasetrowKey - the row key.columnKey - the column key.
getSubIntervalCount(int, int)
public int getSubIntervalCount(int row,
int column)
getSubIntervalCount in interface GanttCategoryDatasetrow - the row index (zero-based).column - the column index (zero-based).
getSubIntervalCount(Comparable, Comparable)
public java.lang.Number getStartValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
getStartValue in interface IntervalCategoryDatasetrowKey - the series key.columnKey - the category key.
null).getEndValue(Comparable, Comparable)
public java.lang.Number getStartValue(int row,
int column)
getStartValue in interface IntervalCategoryDatasetrow - the series (zero-based index).column - the category (zero-based index).
null).getEndValue(int, int)
public java.lang.Number getEndValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
getEndValue in interface IntervalCategoryDatasetrowKey - the series key.columnKey - the category key.
null).getStartValue(Comparable, Comparable)
public java.lang.Number getEndValue(int series,
int category)
getEndValue in interface IntervalCategoryDatasetseries - the series (zero-based index).category - the category (zero-based index).
null).IntervalCategoryDataset.getStartValue(int, int)public boolean equals(java.lang.Object obj)
SlidingCategoryDataset for equality with an
arbitrary object.
equals in class java.lang.Objectobj - the object (null permitted).
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
PublicCloneable interface;
clone in class AbstractDatasetjava.lang.CloneNotSupportedException - if the dataset cannot be cloned for
any reason.
|
Footer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||