net.sf.magicproject.chart.datasets
Class PieDataset
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.DefaultPieDataset
net.sf.magicproject.chart.datasets.PieDataset
- All Implemented Interfaces:
- java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, org.jfree.data.general.Dataset, org.jfree.data.general.PieDataset, org.jfree.data.KeyedValues, org.jfree.data.Values, org.jfree.util.PublicCloneable
public class PieDataset
- extends org.jfree.data.general.DefaultPieDataset
- implements Dataset
- See Also:
- Serialized Form
Method Summary |
void |
addCard(CardModel cardModel,
int amount)
Add cards to all datasets. |
java.util.List<IChartKey> |
getKeys()
|
void |
removeAll()
Remove all data from this dataset. |
void |
removeCard(CardModel cardModel,
int amount)
Remove cards to all datasets. |
void |
setValue(IChartKey key,
java.lang.Integer value)
Sets the data value for a key and sends a
DatasetChangeEvent to all registered
listeners. |
Methods inherited from class org.jfree.data.general.DefaultPieDataset |
clear, clone, equals, getIndex, getItemCount, getKey, getValue, getValue, hashCode, remove, setValue, setValue |
Methods inherited from class org.jfree.data.general.AbstractDataset |
addChangeListener, getGroup, hasListener, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.general.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
PieDataset
public PieDataset(IDataProvider provider,
ChartFilter filter)
- Create a new instance of this class.
- Parameters:
provider
- the key provider.filter
- the filter attached to this dataset.
addCard
public void addCard(CardModel cardModel,
int amount)
- Add cards to all datasets.
- Parameters:
cardModel
- the card to add.amount
- the amount of card to add.
removeCard
public void removeCard(CardModel cardModel,
int amount)
- Remove cards to all datasets.
- Parameters:
cardModel
- the card to remove.amount
- the amount of card to remove.
removeAll
public void removeAll()
- Description copied from interface:
Dataset
- Remove all data from this dataset.
getKeys
public java.util.List<IChartKey> getKeys()
- Specified by:
getKeys
in interface org.jfree.data.KeyedValues
- Overrides:
getKeys
in class org.jfree.data.general.DefaultPieDataset
setValue
public void setValue(IChartKey key,
java.lang.Integer value)
- Description copied from interface:
Dataset
- Sets the data value for a key and sends a
DatasetChangeEvent
to all registered
listeners.
- Parameters:
key
- the key (null
not permitted).value
- the value.
Copyright © 2003-2007 Magic-Project. All Rights Reserved.