java.lang.Object | ||
↳ | org.jfree.data.general.AbstractDataset | |
↳ | org.jfree.data.category.SlidingCategoryDataset |
A CategoryDataset
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an independent copy of the dataset.
| |||||||||||
Tests this
SlidingCategoryDataset for equality with an
arbitrary object. | |||||||||||
Returns the number of columns in the table.
| |||||||||||
Returns the index for the specified column key.
| |||||||||||
Returns the column key for a given index.
| |||||||||||
Returns the column keys.
| |||||||||||
Returns the index of the first visible category.
| |||||||||||
Returns the maximum category count.
| |||||||||||
Returns the number of rows in the table.
| |||||||||||
Returns the row index for a given key.
| |||||||||||
Returns the row key for a given index.
| |||||||||||
Returns the row keys.
| |||||||||||
Returns the underlying dataset that was supplied to the constructor.
| |||||||||||
Returns the value for a pair of keys.
| |||||||||||
Returns a value from the table.
| |||||||||||
Sets the index of the first category that should be used from the
underlying dataset, and sends a
DatasetChangeEvent to all
registered listeners. | |||||||||||
Sets the maximum category count and sends a
DatasetChangeEvent
to all registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.jfree.data.general.AbstractDataset
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.ObjectInputValidation
| |||||||||||
From interface
org.jfree.data.KeyedValues2D
| |||||||||||
From interface
org.jfree.data.Values2D
| |||||||||||
From interface
org.jfree.data.general.Dataset
|
Creates a new instance.
underlying | the underlying dataset (null not
permitted). |
---|---|
firstColumn | the index of the first visible column from the underlying dataset. |
maxColumns | the maximumColumnCount. |
Returns an independent copy of the dataset. Note that:
CloneNotSupportedException | if the dataset cannot be cloned for any reason. |
---|
Tests this SlidingCategoryDataset
for equality with an
arbitrary object.
obj | the object (null permitted). |
---|
Returns the number of columns in the table.
Returns the index for the specified column key.
key | the key. |
---|
Returns the column key for a given index.
column | the column index (zero-based). |
---|
IndexOutOfBoundsException | if row is out of bounds.
|
---|
Returns the index of the first visible category.
Returns the maximum category count.
Returns the number of rows in the table.
Returns the row index for a given key.
key | the row key. |
---|
-1
if the key is unrecognised.
Returns the row key for a given index.
row | the row index (zero-based). |
---|
IndexOutOfBoundsException | if row is out of bounds.
|
---|
Returns the underlying dataset that was supplied to the constructor.
null
).
Returns the value for a pair of keys.
rowKey | the row key (null not permitted). |
---|---|
columnKey | the column key (null not permitted). |
null
).UnknownKeyException | if either key is not defined in the dataset. |
---|
Returns a value from the table.
row | the row index (zero-based). |
---|---|
column | the column index (zero-based). |
null
).
Sets the index of the first category that should be used from the
underlying dataset, and sends a DatasetChangeEvent
to all
registered listeners.
first | the index. |
---|
Sets the maximum category count and sends a DatasetChangeEvent
to all registered listeners.
max | the maximum. |
---|