java.lang.Object | ||
↳ | org.jfree.data.general.AbstractDataset | |
↳ | org.jfree.data.category.DefaultCategoryDataset |
![]() |
A default implementation of the CategoryDataset
interface.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new (empty) dataset.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a value to the table.
| |||||||||||
Adds a value to the table.
| |||||||||||
Clears all data from the dataset and sends a
DatasetChangeEvent
to all registered listeners. | |||||||||||
Returns a clone of the dataset.
| |||||||||||
Tests this dataset for equality with an arbitrary object.
| |||||||||||
Returns the number of columns in the table.
| |||||||||||
Returns the column index for a given key.
| |||||||||||
Returns a column key.
| |||||||||||
Returns the column keys.
| |||||||||||
Returns the number of rows in the table.
| |||||||||||
Returns the row index for a given key.
| |||||||||||
Returns the key for the specified row.
| |||||||||||
Returns the row keys.
| |||||||||||
Returns the value for a pair of keys.
| |||||||||||
Returns a value from the table.
| |||||||||||
Returns a hash code for the dataset.
| |||||||||||
Adds the specified value to an existing value in the dataset (if the
existing value is
null , it is treated as if it were 0.0). | |||||||||||
Removes a column from the dataset and sends a
DatasetChangeEvent
to all registered listeners. | |||||||||||
Removes a column from the dataset and sends a
DatasetChangeEvent
to all registered listeners. | |||||||||||
Removes a row from the dataset and sends a
DatasetChangeEvent
to all registered listeners. | |||||||||||
Removes a row from the dataset and sends a
DatasetChangeEvent
to all registered listeners. | |||||||||||
Removes a value from the dataset and sends a
DatasetChangeEvent
to all registered listeners. | |||||||||||
Adds or updates a value in the table and sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
Adds or updates a value in the table and sends a
DatasetChangeEvent to all registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new (empty) dataset.
Adds a value to the table.
value | the value. |
---|---|
rowKey | the row key. |
columnKey | the column key. |
Adds a value to the table. Performs the same function as setValue().
value | the value. |
---|---|
rowKey | the row key. |
columnKey | the column key. |
Clears all data from the dataset and sends a DatasetChangeEvent
to all registered listeners.
Returns a clone of the dataset.
CloneNotSupportedException | if there is a problem cloning the dataset. |
---|
Tests this dataset for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the column index for a given key.
key | the column key (null not permitted). |
---|
Returns a column key.
column | the column index (zero-based). |
---|
Returns the row index for a given key.
key | the row key (null not permitted). |
---|
Returns the key for the specified row.
row | the row index (zero-based). |
---|
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
).Returns a hash code for the dataset.
Adds the specified value to an existing value in the dataset (if the
existing value is null
, it is treated as if it were 0.0).
value | the value. |
---|---|
rowKey | the row key (null not permitted). |
columnKey | the column key (null not permitted). |
UnknownKeyException | if either key is not defined in the dataset. |
---|
Removes a column from the dataset and sends a DatasetChangeEvent
to all registered listeners.
columnKey | the column key (null not permitted). |
---|
UnknownKeyException | if columnKey is not defined
in the dataset.
|
---|
Removes a column from the dataset and sends a DatasetChangeEvent
to all registered listeners.
columnIndex | the column index. |
---|
Removes a row from the dataset and sends a DatasetChangeEvent
to all registered listeners.
rowIndex | the row index. |
---|
Removes a row from the dataset and sends a DatasetChangeEvent
to all registered listeners.
rowKey | the row key. |
---|
Removes a value from the dataset and sends a DatasetChangeEvent
to all registered listeners.
rowKey | the row key. |
---|---|
columnKey | the column key. |
Adds or updates a value in the table and sends a
DatasetChangeEvent
to all registered listeners.
value | the value (null permitted). |
---|---|
rowKey | the row key (null not permitted). |
columnKey | the column key (null not permitted). |
Adds or updates a value in the table and sends a
DatasetChangeEvent
to all registered listeners.
value | the value. |
---|---|
rowKey | the row key (null not permitted). |
columnKey | the column key (null not permitted). |