KickJava   Java API By Example, From Geeks To Geeks.

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


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  * IntervalXYDataset.java
24  * ----------------------
25  * (C) Copyright 2001-2003, by Object Refinery Limited and Contributors.
26  *
27  * Original Author: Mark Watson (www.markwatson.com);
28  * Contributor(s): David Gilbert (for Object Refinery Limited);
29  *
30  * $Id: IntervalXYDataset.java,v 1.3 2003/07/10 07:16:45 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 18-Oct-2001 : Version 1, thanks to Mark Watson (DG);
35  * 22-Oct-2001 : Renamed DataSource.java --> Dataset.java etc (DG);
36  *
37  */

38
39 package org.jfree.data;
40
41 /**
42  * An extension of the {@link XYDataset} interface that allows a range of data to be
43  * defined for the X values, the Y values, or both the X and Y values.
44  * <P>
45  * This versatile interface will be used to support (among other things) bar
46  * plots against numerical axes.
47  *
48  * @author Mark Watson
49  */

50 public interface IntervalXYDataset extends XYDataset {
51
52     /**
53      * Returns the starting X value for the specified series and item.
54      *
55      * @param series the series (zero-based index).
56      * @param item the item within a series (zero-based index).
57      *
58      * @return the starting X value for the specified series and item.
59      */

60     public Number JavaDoc getStartXValue(int series, int item);
61
62     /**
63      * Returns the ending X value for the specified series and item.
64      *
65      * @param series the series (zero-based index).
66      * @param item the item within a series (zero-based index).
67      *
68      * @return the ending X value for the specified series and item.
69      */

70     public Number JavaDoc getEndXValue(int series, int item);
71
72     /**
73      * Returns the starting Y value for the specified series and item.
74      *
75      * @param series the series (zero-based index).
76      * @param item the item within a series (zero-based index).
77      *
78      * @return starting Y value for the specified series and item.
79      */

80     public Number JavaDoc getStartYValue(int series, int item);
81
82     /**
83      * Returns the ending Y value for the specified series and item.
84      *
85      * @param series the series (zero-based index).
86      * @param item the item within a series (zero-based index).
87      *
88      * @return the ending Y value for the specified series and item.
89      */

90     public Number JavaDoc getEndYValue(int series, int item);
91
92 }
93
Popular Tags