Save This Page
Home » jcommon-1.0.13 » org.jfree » data » general » [javadoc | source]
org.jfree.data.general
public class: DefaultPieDataset [javadoc | source]
java.lang.Object
   org.jfree.data.general.AbstractDataset
      org.jfree.data.general.DefaultPieDataset

All Implemented Interfaces:
    PublicCloneable, Cloneable, PieDataset, Serializable, Dataset, ObjectInputValidation

Direct Known Subclasses:
    DefaultKeyedValuesDataset, JDBCPieDataset

A default implementation of the PieDataset interface.
Constructor:
 public DefaultPieDataset() 
 public DefaultPieDataset(KeyedValues data) 
    Creates a new dataset by copying data from a KeyedValues instance.
    Parameters:
    data - the data (null not permitted).
Method from org.jfree.data.general.DefaultPieDataset Summary:
clear,   clone,   equals,   getIndex,   getItemCount,   getKey,   getKeys,   getValue,   getValue,   hashCode,   insertValue,   insertValue,   remove,   setValue,   setValue,   sortByKeys,   sortByValues
Methods from org.jfree.data.general.AbstractDataset:
addChangeListener,   clone,   fireDatasetChanged,   getGroup,   hasListener,   notifyListeners,   removeChangeListener,   setGroup,   validateObject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.data.general.DefaultPieDataset Detail:
 public  void clear() 
    Clears all data from this dataset and sends a DatasetChangeEvent to all registered listeners (unless the dataset was already empty).
 public Object clone() throws CloneNotSupportedException 
    Returns a clone of the dataset.
 public boolean equals(Object obj) 
    Tests if this object is equal to another.
 public int getIndex(Comparable key) 
    Returns the index for a key, or -1 if the key is not recognised.
 public int getItemCount() 
    Returns the number of items in the dataset.
 public Comparable getKey(int item) 
    Returns the key for the specified item, or null.
 public List getKeys() 
    Returns the categories in the dataset. The returned list is unmodifiable.
 public Number getValue(int item) 
    Returns a value.
 public Number getValue(Comparable key) 
    Returns the data value associated with a key.
 public int hashCode() 
    Returns a hash code.
 public  void insertValue(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. After the change is made, this methods sends a DatasetChangeEvent to all registered listeners.
 public  void insertValue(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. After the change is made, this methods sends a DatasetChangeEvent to all registered listeners.
 public  void remove(Comparable key) 
    Removes an item from the dataset and sends a DatasetChangeEvent to all registered listeners.
 public  void setValue(Comparable key,
    Number value) 
 public  void setValue(Comparable key,
    double value) 
 public  void sortByKeys(SortOrder order) 
    Sorts the dataset's items by key and sends a DatasetChangeEvent to all registered listeners.
 public  void sortByValues(SortOrder order) 
    Sorts the dataset's items by value and sends a DatasetChangeEvent to all registered listeners.