KickJava   Java API By Example, From Geeks To Geeks.

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


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  * MultiIntervalTableDataset.java
24  * ------------------------------
25  * (C) Copyright 2002, 2003 by Object Refinery Limited.
26  *
27  * Original Author: David Gilbert (for Object Refinery Limited);
28  * Contributor(s): -;
29  *
30  * $Id: MultiIntervalCategoryDataset.java,v 1.3 2003/09/17 11:37:09 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 10-Jan-2003 : Version 1 (DG);
35  * 16-Sep-2003 : Deprecated in favour of org.jfree.data.gantt.GanttCategoryDataset (DG);
36  *
37  */

38
39  package org.jfree.data;
40
41 /**
42  * An extension of the {@link IntervalCategoryDataset} interface that adds support for multiple
43  * sub-intervals.
44  *
45  * @author David Gilbert
46  *
47  * @deprecated Use org.jfree.data.gantt.GanttCategoryDataset instead.
48  *
49  */

50 public interface MultiIntervalCategoryDataset extends IntervalCategoryDataset {
51
52     /**
53      * Returns the number of sub-intervals for a given item.
54      *
55      * @param row the row index (zero-based).
56      * @param column the column index (zero-based).
57      *
58      * @return the sub-interval count.
59      */

60     public int getSubIntervalCount(int row, int column);
61
62     /**
63      * Returns the number of sub-intervals for a given item.
64      *
65      * @param rowKey the row key.
66      * @param columnKey the column key.
67      *
68      * @return the sub-interval count.
69      */

70     public int getSubIntervalCount(Comparable JavaDoc rowKey, Comparable JavaDoc columnKey);
71
72     /**
73      * Returns the start value of a sub-interval for a given item.
74      *
75      * @param row the row index (zero-based).
76      * @param column the column index (zero-based).
77      * @param subinterval the sub-interval index (zero-based).
78      *
79      * @return the start value (possibly <code>null</code>).
80      */

81     public Number JavaDoc getStartValue(int row, int column, int subinterval);
82
83     /**
84      * Returns the start value of a sub-interval for a given item.
85      *
86      * @param rowKey the row key.
87      * @param columnKey the column key.
88      * @param subinterval the sub-interval.
89      *
90      * @return the start value (possibly <code>null</code>).
91      */

92     public Number JavaDoc getStartValue(Comparable JavaDoc rowKey, Comparable JavaDoc columnKey, int subinterval);
93
94     /**
95      * Returns the end value of a sub-interval for a given item.
96      *
97      * @param row the row index (zero-based).
98      * @param column the column index (zero-based).
99      * @param subinterval the sub-interval.
100      *
101      * @return the end value (possibly <code>null</code>).
102      */

103     public Number JavaDoc getEndValue(int row, int column, int subinterval);
104
105     /**
106      * Returns the end value of a sub-interval for a given item.
107      *
108      * @param rowKey the row key.
109      * @param columnKey the column key.
110      * @param subinterval the sub-interval.
111      *
112      * @return the end value (possibly <code>null</code>).
113      */

114     public Number JavaDoc getEndValue(Comparable JavaDoc rowKey, Comparable JavaDoc columnKey, int subinterval);
115
116 }
117
Popular Tags