| java.lang.Object org.jfree.data.general.AbstractDataset org.jfree.data.category.CategoryToPieDataset
Method Summary | |
public void | datasetChanged(DatasetChangeEvent event) Sends a
DatasetChangeEvent to all registered listeners, with
this (not the underlying) dataset as the source. | public boolean | equals(Object obj) 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.
Parameters: obj - the object to test (null permitted). | public int | getExtractIndex() Returns the index of the row or column from which to extract the data. | public TableOrder | getExtractType() Returns the extract type, which determines whether data is read from
one row or one column of the underlying dataset. | public int | getIndex(Comparable key) Returns the index for a given key, or -1 if there is no
such key.
Parameters: key - the key. | public int | getItemCount() Returns the number of items (values) in the collection. | public Comparable | getKey(int index) Returns the key at the specified index.
Parameters: index - the item index (in the range 0 to getItemCount() - 1 ). | public List | getKeys() Returns the keys for the dataset. | public CategoryDataset | getUnderlyingDataset() Returns the underlying dataset. | public Number | getValue(int item) Returns a value from the dataset.
Parameters: item - the item index (zero-based). | public Number | getValue(Comparable key) Returns the value for a given key. |
serialVersionUID | final static long serialVersionUID(Code) | | |
CategoryToPieDataset | public CategoryToPieDataset(CategoryDataset source, TableOrder extract, int index)(Code) | | 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.
Parameters: source - the source dataset (null permitted). Parameters: extract - extract data from rows or columns? (null not permitted). Parameters: index - the row or column index. |
datasetChanged | public void datasetChanged(DatasetChangeEvent event)(Code) | | Sends a
DatasetChangeEvent to all registered listeners, with
this (not the underlying) dataset as the source.
Parameters: event - the event (ignored, a new event with this dataset as thesource is sent to the listeners). |
equals | public boolean equals(Object obj)(Code) | | 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.
Parameters: obj - the object to test (null permitted). A boolean. |
getExtractIndex | public int getExtractIndex()(Code) | | Returns the index of the row or column from which to extract the data.
The extract index. since: 1.0.2 |
getExtractType | public TableOrder getExtractType()(Code) | | Returns the extract type, which determines whether data is read from
one row or one column of the underlying dataset.
The extract type. since: 1.0.2 |
getIndex | public int getIndex(Comparable key)(Code) | | Returns the index for a given key, or -1 if there is no
such key.
Parameters: key - the key. The index for the key, or -1 . |
getItemCount | public int getItemCount()(Code) | | Returns the number of items (values) in the collection. If the
underlying dataset is null , this method returns zero.
The item count. |
getKey | public Comparable getKey(int index)(Code) | | Returns the key at the specified index.
Parameters: index - the item index (in the range 0 to getItemCount() - 1 ). The key. throws: IndexOutOfBoundsException - if index is not in the specified range. |
getKeys | public List getKeys()(Code) | | Returns the keys for the dataset.
If the underlying dataset is null , this method returns an
empty list.
The keys. |
getUnderlyingDataset | public CategoryDataset getUnderlyingDataset()(Code) | | Returns the underlying dataset.
The underlying dataset (possibly null ). since: 1.0.2 |
getValue | public Number getValue(int item)(Code) | | Returns a value from the dataset.
Parameters: item - the item index (zero-based). The value (possibly null ). throws: IndexOutOfBoundsException - if item is not in the range 0 to getItemCount() - 1 . |
getValue | public Number getValue(Comparable key)(Code) | | 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).
Parameters: key - the key. The value (possibly null ). |
|
|