I have created an application that demonstrates using the Graph2D class to represent a rainfall database in various ways. There are three combo boxes in which you can select the query parameters. One drop-down menu contains the cities from which you can select. (The cities are all in the state of Massachusetts.) Another drop-down menu allows you to select the start date of the query. And the third drop-down menu allows you to select the end date of the query. You can see the application in Figure 16.1 as it first appears.
Figure 16.1. You Can Select the City, the Start Year, and the End Year.
Table 16.1 shows the methods that instantiate and use the Graph2D class. They are all part of the DataToGraph application. This table will provide a handy reference as you use and study the code.