KickJava   Java API By Example, From Geeks To Geeks.

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


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  * ContourDataset.java
24  * -------------------
25  * (C) Copyright 2002, 2003, by David M. O'Donnell.
26  *
27  * Original Author: David Gilbert (for Object Refinery Limited);
28  * Contributor(s): -;
29  *
30  * $Id: ContourDataset.java,v 1.3 2003/06/13 15:46:39 mungady Exp $
31  *
32  * Changes (from 23-Jan-2003)
33  * --------------------------
34  * 23-Jan-2003 : Added standard header (DG);
35  *
36  */

37
38 package org.jfree.data;
39 /**
40  * The interface through which JFreeChart obtains data in the form of (x, y, z) items - used for
41  * XY and XYZ plots.
42  *
43  * @author David M. O'Donnell
44  */

45 public interface ContourDataset extends XYZDataset {
46
47     /**
48      * Returns the smallest Z data value.
49      *
50      * @return The minimum Z value.
51      */

52     public double getMinZValue();
53
54     /**
55      * Returns the largest Z data value.
56      *
57      * @return The maximum Z value.
58      */

59     public double getMaxZValue();
60
61     /**
62      * Returns the array of Numbers representing the x data values.
63      *
64      * @return The array of x values.
65      */

66     public Number JavaDoc[] getXValues();
67
68     /**
69      * Returns the array of Numbers representing the y data values.
70      *
71      * @return The array of y values.
72      */

73     public Number JavaDoc[] getYValues();
74
75     /**
76      * Returns the array of Numbers representing the z data values.
77      *
78      * @return The array of z values.
79      */

80     public Number JavaDoc[] getZValues();
81
82     /**
83      * Returns the maximum z-value within visible region of plot.
84      *
85      * @param x the x-value.
86      * @param y the y-value.
87      *
88      * @return The maximum z-value.
89      */

90     public Range getZValueRange(Range x, Range y);
91
92     /**
93      * Returns true if axis are dates.
94      *
95      * @param axisNumber the axis where 0-x, 1-y, and 2-z.
96      *
97      * @return <code>true</code> or <code>false</code>.
98      */

99     public boolean isDateAxis(int axisNumber);
100
101 }
102
Popular Tags