|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.AbstractDataset
org.jfree.data.DefaultPieDataset
A default implementation of the PieDataset interface.
| Constructor Summary | |
DefaultPieDataset()
Constructs a new dataset, initially empty. |
|
DefaultPieDataset(KeyedValues data)
Creates a new dataset that uses the data from a KeyedValues instance. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone. |
boolean |
equals(java.lang.Object o)
Tests if this object is equal to another. |
int |
getIndex(java.lang.Comparable key)
Returns the index for a key. |
int |
getItemCount()
Returns the number of items in the dataset. |
java.lang.Comparable |
getKey(int item)
Returns the key for an item. |
java.util.List |
getKeys()
Returns the categories in the dataset. |
java.lang.Number |
getValue(java.lang.Comparable key)
Returns the data value associated with a key. |
java.lang.Number |
getValue(int item)
Returns a value. |
int |
hashCode()
Returns a hash code. |
void |
setValue(java.lang.Comparable key,
double value)
Sets the data value for a key. |
void |
setValue(java.lang.Comparable key,
java.lang.Number value)
Sets the data value for a key. |
| Methods inherited from class org.jfree.data.AbstractDataset |
addChangeListener, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup, validateObject |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.data.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
| Constructor Detail |
public DefaultPieDataset()
public DefaultPieDataset(KeyedValues data)
KeyedValues instance.
data - the data.| Method Detail |
public int getItemCount()
getItemCount in interface Valuespublic java.util.List getKeys()
getKeys in interface KeyedValuespublic java.lang.Comparable getKey(int item)
getKey in interface KeyedValuesitem - the item index (zero-based).
public int getIndex(java.lang.Comparable key)
getIndex in interface KeyedValueskey - the key.
public java.lang.Number getValue(int item)
getValue in interface Valuesitem - the value index.
null).public java.lang.Number getValue(java.lang.Comparable key)
getValue in interface KeyedValueskey - the key (null not permitted).
null).
public void setValue(java.lang.Comparable key,
java.lang.Number value)
key - the key.value - the value.
public void setValue(java.lang.Comparable key,
double value)
key - the key.value - the value.public boolean equals(java.lang.Object o)
o - the other object.
public int hashCode()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractDatasetjava.lang.CloneNotSupportedException - This class will not throw this exception, but subclasses
(if any) might.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||