Java org.jfree.data.general DefaultPieDataset fields, constructors, methods, implement or subclass

Example usage for Java org.jfree.data.general DefaultPieDataset fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jfree.data.general DefaultPieDataset.

The text is from its open source code.

Subclass

org.jfree.data.general.DefaultPieDataset has subclasses.
Click this link to see all its subclasses.

Constructor

DefaultPieDataset()
Constructs a new dataset, initially empty.
DefaultPieDataset(KeyedValues data)
Creates a new dataset by copying data from a KeyedValues instance.

Method

voidaddChangeListener(DatasetChangeListener listener)
Registers an object to receive notification of changes to the dataset.
voidclear()
Clears all data from this dataset and sends a DatasetChangeEvent to all registered listeners (unless the dataset was already empty).
Objectclone()
Returns a clone of the dataset.
booleanequals(Object obj)
Tests if this object is equal to another.
ClassgetClass()
Returns the runtime class of this Object .
intgetIndex(Comparable key)
Returns the index for a key, or -1 if the key is not recognised.
intgetItemCount()
Returns the number of items in the dataset.
ComparablegetKey(int item)
Returns the key for the specified item, or null.
ListgetKeys()
Returns the categories in the dataset.
NumbergetValue(int item)
Returns a value.
NumbergetValue(Comparable key)
Returns the data value associated with a key.
voidinsertValue(int position, Comparable key, double value)
Inserts a new value at the specified position in the dataset or, if there is an existing item with the specified key, updates the value for that item and moves it to the specified position.
voidinsertValue(int position, Comparable key, Number value)
Inserts a new value at the specified position in the dataset or, if there is an existing item with the specified key, updates the value for that item and moves it to the specified position.
voidremove(Comparable key)
Removes an item from the dataset and sends a DatasetChangeEvent to all registered listeners.
voidsetValue(Comparable key, Number value)
Sets the data value for a key and sends a DatasetChangeEvent to all registered listeners.
voidsetValue(Comparable key, double value)
Sets the data value for a key and sends a DatasetChangeEvent to all registered listeners.
voidsortByKeys(SortOrder order)
Sorts the dataset's items by key and sends a DatasetChangeEvent to all registered listeners.
voidsortByValues(SortOrder order)
Sorts the dataset's items by value and sends a DatasetChangeEvent to all registered listeners.