1 package net.sf.magicproject.chart.datasets;
2
3 import net.sf.magicproject.chart.IChartKey;
4 import net.sf.magicproject.clickable.targetable.card.CardModel;
5
6 /***
7 *
8 */
9 public interface Dataset {
10
11 /***
12 * Add cards to all datasets.
13 *
14 * @param cardModel
15 * the card to add.
16 * @param amount
17 * the amount of card to add.
18 */
19 void addCard(final CardModel cardModel, final int amount);
20
21 /***
22 * Remove cards to all datasets.
23 *
24 * @param cardModel
25 * the card to remove.
26 * @param amount
27 * the amount of card to remove.
28 */
29 void removeCard(final CardModel cardModel, final int amount);
30
31 /***
32 * Sets the data value for a key and sends a
33 * {@link org.jfree.data.general.DatasetChangeEvent} to all registered
34 * listeners.
35 *
36 * @param key
37 * the key (<code>null</code> not permitted).
38 * @param value
39 * the value.
40 */
41 void setValue(IChartKey key, Integer value);
42
43 /***
44 * Remove all data from this dataset.
45 */
46 void removeAll();
47
48 }