java.lang.Object | ||
↳ | org.jfree.data.general.AbstractDataset | |
↳ | org.jfree.data.category.CategoryToPieDataset |
A PieDataset
implementation that obtains its data from one row or
column of a CategoryDataset
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
An adaptor class that converts any
CategoryDataset into a
PieDataset , by taking the values from a single row or column. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sends a
DatasetChangeEvent to all registered listeners, with
this (not the underlying) dataset as the source. | |||||||||||
Tests this dataset for equality with an arbitrary object, returning
true if obj is a dataset containing the same
keys and values in the same order as this dataset. | |||||||||||
Returns the index of the row or column from which to extract the data.
| |||||||||||
Returns the extract type, which determines whether data is read from
one row or one column of the underlying dataset.
| |||||||||||
Returns the index for a given key, or
-1 if there is no
such key. | |||||||||||
Returns the number of items (values) in the collection.
| |||||||||||
Returns the key at the specified index.
| |||||||||||
Returns the keys for the dataset.
| |||||||||||
Returns the underlying dataset.
| |||||||||||
Returns the value for a given key.
| |||||||||||
Returns a value from the dataset.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
An adaptor class that converts any CategoryDataset
into a
PieDataset
, by taking the values from a single row or column.
If source
is null
, the created dataset will
be empty.
source | the source dataset (null permitted). |
---|---|
extract | extract data from rows or columns? (null
not permitted). |
index | the row or column index. |
Sends a DatasetChangeEvent
to all registered listeners, with
this (not the underlying) dataset as the source.
event | the event (ignored, a new event with this dataset as the source is sent to the listeners). |
---|
Tests this dataset for equality with an arbitrary object, returning
true
if obj
is a dataset containing the same
keys and values in the same order as this dataset.
obj | the object to test (null permitted). |
---|
Returns the index of the row or column from which to extract the data.
Returns the extract type, which determines whether data is read from one row or one column of the underlying dataset.
Returns the index for a given key, or -1
if there is no
such key.
key | the key. |
---|
-1
.
Returns the number of items (values) in the collection. If the
underlying dataset is null
, this method returns zero.
Returns the key at the specified index.
index | the item index (in the range 0 to
getItemCount() - 1 ). |
---|
IndexOutOfBoundsException | if index is not in the
specified range.
|
---|
Returns the keys for the dataset.
If the underlying dataset is null
, this method returns an
empty list.
Returns the underlying dataset.
null
).Returns the value for a given key. If the key is not recognised, the
method should return null
(but note that null
can be associated with a valid key also).
key | the key. |
---|
null
).
Returns a value from the dataset.
item | the item index (zero-based). |
---|
null
).IndexOutOfBoundsException | if item is not in the
range 0 to getItemCount() - 1 .
|
---|