net.sf.magicproject.chart.datasets
Class BarDataset

java.lang.Object
  extended by org.jfree.data.general.AbstractDataset
      extended by org.jfree.data.category.DefaultCategoryDataset
          extended by net.sf.magicproject.chart.datasets.BarDataset
All Implemented Interfaces:
java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, org.jfree.data.category.CategoryDataset, org.jfree.data.general.Dataset, org.jfree.data.KeyedValues2D, org.jfree.data.Values2D

public class BarDataset
extends org.jfree.data.category.DefaultCategoryDataset
implements Dataset

See Also:
Serialized Form

Constructor Summary
BarDataset(IDataProvider provider, ChartFilter filter)
          Create a new instance of this class.
 
Method Summary
 void addCard(CardModel cardModel, int amount)
          Add cards to all datasets.
 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.category.DefaultCategoryDataset
addValue, addValue, clear, equals, getColumnCount, getColumnIndex, getColumnKey, getColumnKeys, getRowCount, getRowIndex, getRowKey, getRowKeys, getValue, getValue, hashCode, incrementValue, removeColumn, removeColumn, removeRow, removeRow, removeValue, setValue, setValue
 
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, 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
 

Constructor Detail

BarDataset

public BarDataset(IDataProvider provider,
                  ChartFilter filter)
Create a new instance of this class.

Parameters:
provider - the key provider.
filter - the filter attached to this dataset.
Method Detail

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.


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.