KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > awt > Graph3DModel


1 package JSci.awt;
2
3 /**
4 * This is a generic interface for sending data to 3D graphs.
5 * @version 1.0
6 * @author Mark Hale
7 */

8 public interface Graph3DModel {
9         /**
10         * Add a listener.
11         */

12         void addGraphDataListener(GraphDataListener l);
13         /**
14         * Remove a listener.
15         */

16         void removeGraphDataListener(GraphDataListener l);
17         /**
18         * Returns the x coordinate for the ith point.
19         */

20         float getXCoord(int i);
21         /**
22         * Returns the y coordinate for the ith point.
23         */

24         float getYCoord(int i);
25         /**
26         * Returns the z coordinate for the ith point.
27         */

28         float getZCoord(int i);
29         /**
30         * Returns the number of data points in the current series.
31         */

32         int seriesLength();
33         /**
34         * Selects the first data series.
35         */

36         void firstSeries();
37         /**
38         * Selects the next data series.
39         * Returns false if there is no next series.
40         */

41         boolean nextSeries();
42 }
43
44
Popular Tags