KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > data > CombinationDataset


1 /* ======================================
2  * JFreeChart : a free Java chart library
3  * ======================================
4  *
5  * Project Info: http://www.jfree.org/jfreechart/index.html
6  * Project Lead: David Gilbert (david.gilbert@object-refinery.com);
7  *
8  * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
9  *
10  * This library is free software; you can redistribute it and/or modify it under the terms
11  * of the GNU Lesser General Public License as published by the Free Software Foundation;
12  * either version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License along with this
19  * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20  * Boston, MA 02111-1307, USA.
21  *
22  * -----------------------
23  * CombinationDataset.java
24  * -----------------------
25  * (C) Copyright 2001-2003, by Bill Kelemen.
26  *
27  * Original Author: Bill Kelemen;
28  * Contributor(s): -;
29  *
30  * $Id: CombinationDataset.java,v 1.3 2003/06/13 15:46:39 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 06-Dec-2001 : Version 1 (BK);
35  *
36  */

37
38 package org.jfree.data;
39
40 /**
41  * Interface that describes the new methods that any combined dataset needs to
42  * implement. A combined dataset object will combine one or more datasets and
43  * expose a sub-set or union of the combined datasets.
44  *
45  * @author Bill Kelemenm (bill@kelemen-usa.com)
46  */

47 public interface CombinationDataset {
48
49     ///////////////////////////////////////////////////////////////////////////
50
// New methods from CombinationDataset
51
///////////////////////////////////////////////////////////////////////////
52

53     /**
54      * Returns the parent Dataset of this combination. If there is more than
55      * one parent, or a child is found that is not a combination, then returns
56      * <code>null</code>.
57      *
58      * @return the parent Dataset of this combination.
59      */

60     public SeriesDataset getParent();
61
62     /**
63      * Returns a map or indirect indexing form our series into parent's series.
64      *
65      * @return a map or indirect indexing form our series into parent's series.
66      */

67     public int[] getMap();
68
69 }
70
Popular Tags