KickJava   Java API By Example, From Geeks To Geeks.

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


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  * WindDataset.java
24  * ----------------
25  * (C) Copyright 2001-2003, by Achilleus Mantzios and Contributors.
26  *
27  * Original Author: Achilleus Mantzios;
28  * Contributor(s): David Gilbert (for Object Refinery Limited);
29  *
30  * $Id: WindDataset.java,v 1.2 2003/06/04 22:58:28 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 06-Feb-2002 : Version 1, based on code contributed by Achilleus Mantzios (DG);
35  *
36  */

37
38 package org.jfree.data;
39
40 /**
41  * Interface for a dataset that supplies wind intensity and direction values
42  * observed at various points in time.
43  *
44  * @author Achilleus Mantzios
45  */

46 public interface WindDataset extends XYDataset {
47
48     /**
49      * Returns the wind direction (should be in the range 0 to 12).
50      * @param series The series (zero-based index).
51      * @param item The item (zero-based index).
52      * @return The wind direction.
53      */

54     public Number JavaDoc getWindDirection(int series, int item);
55
56     /**
57      * Returns the wind force on the Beaufort scale (0 to 12).
58      * @param series The series (zero-based index).
59      * @param item The item (zero-based index).
60      * @return The wind force.
61      */

62     public Number JavaDoc getWindForce(int series, int item);
63
64 }
65
Popular Tags