KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > chart > demo > resources > DemoResources


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 program is free software; you can redistribute it and/or modify it under the terms
11  * of the GNU General Public License as published by the Free Software Foundation;
12  * either version 2 of the License, or (at your option) any later version.
13  *
14  * This program 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 General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along with this program;
19  * if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20  * MA 02111-1307, USA.
21  *
22  * ------------------
23  * DemoResources.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: DemoResources.java,v 1.3 2003/06/27 09:32:26 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 15-Mar-2002 : Version 1 (DG);
35  * 26-Mar-2002 : Changed name from JFreeChartDemoResources.java --> DemoResources.java (DG);
36  * 02-Jul-2002 : Added the tabs.X to define tabs in the demo. (BRS)
37  * 02-Jul-2002 : Added the chartX.tab to define which tab an example should be
38  * displayed on. (BRS)
39  * 02-Jul-2002 : Added the chartX.usage to define where an example should is
40  * applicable (All, Servlet, Swing). (BRS)
41  * 02-Jul-2002 : Added Gantt chart resources.
42  * 24-Oct-2002 : Fixed errors reported by Checkstyle (DG);
43  *
44  */

45
46 package org.jfree.chart.demo.resources;
47
48 import java.util.ListResourceBundle JavaDoc;
49
50 /**
51  * A resource bundle that stores all the user interface items that might need localisation.
52  *
53  * @author David Gilbert
54  */

55 public class DemoResources extends ListResourceBundle JavaDoc {
56
57     /**
58      * Returns the array of strings in the resource bundle.
59      *
60      * @return the resources.
61      */

62     public Object JavaDoc[][] getContents() {
63         return CONTENTS;
64     }
65
66     /** The resources to be localised. */
67     private static final Object JavaDoc[][] CONTENTS = {
68
69         // about frame...
70
{"about.title", "About..."},
71         {"about.version.label", "Version"},
72
73         // menu labels...
74
{"menu.file", "File"},
75         {"menu.file.mnemonic", new Character JavaDoc('F') },
76
77         {"menu.file.exit", "Exit"},
78         {"menu.file.exit.mnemonic", new Character JavaDoc('x') },
79
80         {"menu.help", "Help"},
81         {"menu.help.mnemonic", new Character JavaDoc('H')},
82
83         {"menu.help.about", "About..."},
84         {"menu.help.about.mnemonic", new Character JavaDoc('A')},
85
86         // dialog messages...
87
{"dialog.exit.title", "Confirm exit..."},
88         {"dialog.exit.message", "Are you sure you want to exit?"},
89
90         // labels for the tabs in the main window...
91
// Maximum of Twenty (20) charts per page.
92
{"tabs.1", "Bar Charts"},
93         {"tabs.2", "Pie Charts"},
94         {"tabs.3", "XY Charts"},
95         {"tabs.4", "Time Series Charts"},
96         {"tabs.5", "Meter Charts"},
97         {"tabs.6", "Other Charts"},
98         {"tabs.7", "Test Charts"},
99         {"tabs.8", "Combined Charts"},
100
101         //{"usage.0","All Applications"},
102
//{"usage.1","Swing Only"},
103
//{"usage.2","Servlet Only"},
104

105         // sample chart descriptions...
106
{"chart1.title", "Horizontal Bar Chart: "},
107         {"chart1.tab", "1"},
108         {"chart1.usage", "All"},
109         {"chart1.description", "Displays horizontal bars, representing data from a "
110                                + "CategoryDataset. Notice that the numerical axis is inverted."},
111         {"chart1.zoom", "false"},
112
113         {"chart2.title", "Horizontal Stacked Bar Chart: "},
114         {"chart2.tab", "1"},
115         {"chart2.usage", "All"},
116         {"chart2.description", "Displays horizontal stacked bars, representing data from a "
117                                + "CategoryDataset."},
118         {"chart2.zoom", "false"},
119
120         {"chart3.title", "Vertical Bar Chart: "},
121         {"chart3.tab", "1"},
122         {"chart3.usage", "All"},
123         {"chart3.description", "Displays vertical bars, representing data from a CategoryDataset."},
124         {"chart3.zoom", "false"},
125
126         {"chart4.title", "Vertical 3D Bar Chart: "},
127         {"chart4.tab", "1"},
128         {"chart4.usage", "All"},
129         {"chart4.description", "Displays vertical bars with a 3D effect, representing data from a "
130                                + "CategoryDataset."},
131         {"chart4.zoom", "false"},
132
133         {"chart5.title", "Vertical Stacked Bar Chart: "},
134         {"chart5.tab", "1"},
135         {"chart5.usage", "All"},
136         {"chart5.description", "Displays vertical stacked bars, representing data from a "
137                                + "CategoryDataset."},
138         {"chart5.zoom", "false"},
139
140         {"chart6.title", "Vertical Stacked 3D Bar Chart: "},
141         {"chart6.tab", "1"},
142         {"chart6.usage", "All"},
143         {"chart6.description", "Displays vertical stacked bars with a 3D effect, representing "
144                                + "data from a CategoryDataset."},
145         {"chart6.zoom", "false"},
146
147         {"chart7.title", "Pie Chart 1: "},
148         {"chart7.tab", "2"},
149         {"chart7.usage", "All"},
150         {"chart7.description", "A pie chart showing one section exploded."},
151         {"chart7.zoom", "false"},
152
153         {"chart8.title", "Pie Chart 2: "},
154         {"chart8.tab", "2"},
155         {"chart8.usage", "All"},
156         {"chart8.description", "A pie chart showing percentages on the category labels. Also, "
157                                + "this plot has a background image."},
158         {"chart8.zoom", "false"},
159
160         {"chart9.title", "XY Plot: "},
161         {"chart9.tab", "3"},
162         {"chart9.usage", "All"},
163         {"chart9.zoom", "true"},
164         {"chart9.description", "A line chart using data from an XYDataset. Both axes are "
165                                + "numerical."},
166         {"chart9.zoom", "false"},
167
168         {"chart10.title", "Time Series 1: "},
169         {"chart10.tab", "4"},
170         {"chart10.usage", "All"},
171         {"chart10.description", "A time series chart, representing data from an XYDataset. This "
172                                 + "chart also demonstrates the use of multiple chart titles."},
173         {"chart10.zoom", "false"},
174
175         {"chart11.title", "Time Series 2: "},
176         {"chart11.tab", "4"},
177         {"chart11.usage", "All"},
178         {"chart11.description", "A time series chart, representing data from an XYDataset. The "
179                                 + "vertical axis has a logarithmic scale."},
180         {"chart11.zoom", "false"},
181
182         {"chart12.title", "Time Series 3: "},
183         {"chart12.tab", "4"},
184         {"chart12.usage", "All"},
185         {"chart12.description", "A time series chart with a moving average."},
186         {"chart12.zoom", "false"},
187
188         {"chart13.title", "High/Low/Open/Close Chart: "},
189         {"chart13.tab", "6"},
190         {"chart13.usage", "All"},
191         {"chart13.description", "A high/low/open/close chart based on data in a HighLowDataset."},
192         {"chart13.zoom", "false"},
193
194         {"chart14.title", "Candlestick Chart: "},
195         {"chart14.tab", "6"},
196         {"chart14.usage", "All"},
197         {"chart14.description", "A candlestick chart based on data in a HighLowDataset."},
198         {"chart14.zoom", "false"},
199
200         {"chart15.title", "Signal Chart: "},
201         {"chart15.tab", "6"},
202         {"chart15.usage", "All"},
203         {"chart15.description", "A signal chart based on data in a SignalDataset."},
204         {"chart15.zoom", "false"},
205
206         {"chart16.title", "Wind Plot: "},
207         {"chart16.tab", "6"},
208         {"chart16.usage", "All"},
209         {"chart16.description", "A wind plot, represents wind direction and intensity (supplied "
210                                 + "via a WindDataset)."},
211         {"chart16.zoom", "false"},
212
213         {"chart17.title", "Scatter Plot: "},
214         {"chart17.tab", "3"},
215         {"chart17.usage", "All"},
216         {"chart17.description", "A scatter plot, representing data in an XYDataset."},
217         {"chart17.zoom", "false"},
218
219         {"chart18.title", "Line Chart: "},
220         {"chart18.tab", "6"},
221         {"chart18.usage", "All"},
222         {"chart18.description", "A chart displaying lines and or shapes, representing data in a "
223                                 + "CategoryDataset. This plot also illustrates the use of a "
224                                 + "background image on the chart, and alpha-transparency on the "
225                                 + "plot."},
226         {"chart18.zoom", "false"},
227
228         {"chart19.title", "Vertical XY Bar Chart: "},
229         {"chart19.tab", "3"},
230         {"chart19.usage", "All"},
231         {"chart19.description", "A chart showing vertical bars, based on data in an "
232                                 + "IntervalXYDataset."},
233         {"chart19.zoom", "false"},
234
235         {"chart20.title", "Null Data: "},
236         {"chart20.tab", "7"},
237         {"chart20.usage", "All"},
238         {"chart20.description", "A chart with a null dataset."},
239         {"chart20.zoom", "false"},
240
241         {"chart21.title", "Zero Data: "},
242         {"chart21.tab", "7"},
243         {"chart21.usage", "All"},
244         {"chart21.description", "A chart with a dataset containing zero series."},
245         {"chart21.zoom", "false"},
246
247         {"chart22.title", "Chart in JScrollPane: "},
248         {"chart22.tab", "7"},
249         {"chart22.usage", "All"},
250         {"chart22.description", "A chart embedded in a JScrollPane."},
251         {"chart22.zoom", "false"},
252
253         {"chart23.title", "Single Series Bar Chart: "},
254         {"chart23.tab", "7"},
255         {"chart23.usage", "All"},
256         {"chart23.description", "A single series bar chart. This chart also illustrates the use "
257                                 + "of a border around a ChartPanel."},
258         {"chart23.zoom", "false"},
259
260         {"chart24.title", "Dynamic Chart: "},
261         {"chart24.tab", "7"},
262         {"chart24.usage", "Swing"},
263         {"chart24.description", "A dynamic chart, to test the event notification mechanism."},
264         {"chart24.zoom", "false"},
265
266         {"chart25.title", "Overlaid Chart: "},
267         {"chart25.tab", "8"},
268         {"chart25.usage", "All"},
269         {"chart25.description", "Displays an overlaid chart with high/low/open/close and moving "
270                                 + "average plots."},
271         {"chart25.zoom", "false"},
272
273         {"chart26.title", "Horizontally Combined Chart: "},
274         {"chart26.tab", "8"},
275         {"chart26.usage", "All"},
276         {"chart26.description", "Displays a horizontally combined chart of time series and XY bar "
277                                 + "plots."},
278         {"chart26.zoom", "false"},
279
280         {"chart27.title", "Vertically Combined Chart: "},
281         {"chart27.tab", "8"},
282         {"chart27.usage", "All"},
283         {"chart27.description", "Displays a vertically combined chart of XY, TimeSeries and "
284                                 + "VerticalXYBar plots."},
285         {"chart27.zoom", "false"},
286
287         {"chart28.title", "Combined and Overlaid Chart: "},
288         {"chart28.tab", "8"},
289         {"chart28.usage", "All"},
290         {"chart28.description", "A combined chart of a XY, overlaid TimeSeries and an overlaid "
291                                 + "HighLow & TimeSeries plots."},
292         {"chart28.zoom", "false"},
293
294         {"chart29.title", "Combined and Overlaid Dynamic Chart: "},
295         {"chart29.tab", "8"},
296         {"chart29.usage", "Swing"},
297         {"chart29.description", "Displays a dynamic combined and overlaid chart, to test the "
298                                 + "event notification mechanism."},
299         {"chart29.zoom", "false"},
300
301         {"chart30.title", "Thermometer Chart: "},
302         {"chart30.tab", "5"},
303         {"chart30.usage", "All"},
304         {"chart30.description", "Displays a thermometer chart."},
305         {"chart30.zoom", "false"},
306
307         {"chart31.title", "Meter Dial Chart: "},
308         {"chart31.tab", "5"},
309         {"chart31.usage", "All"},
310         {"chart31.description", "Displays a speedo chart, with a full circle."},
311         {"chart31.zoom", "false"},
312
313         {"chart32.title", "Gantt Chart: "},
314         {"chart32.tab", "6"},
315         {"chart32.usage", "All"},
316         {"chart32.description", "Displays a gantt chart."},
317
318         {"chart33.title", "Meter Dial Chart: "},
319         {"chart33.tab", "5"},
320         {"chart33.usage", "All"},
321         {"chart33.description", "Displays a speedo chart, with a pie ending."},
322
323         {"chart34.title", "Meter Dial Chart: "},
324         {"chart34.tab", "5"},
325         {"chart34.usage", "All"},
326         {"chart34.description", "Displays a speedo chart, with a chord ending."},
327
328         {"chart35.title", "Compass Chart: "},
329         {"chart35.tab", "5"},
330         {"chart35.usage", "All"},
331         {"chart35.description", "Displays a compass chart."},
332
333         {"charts.display", "Display"},
334
335         // chart titles and labels...
336
{"bar.horizontal.title", "Horizontal Bar Chart"},
337         {"bar.horizontal.domain", "Categories"},
338         {"bar.horizontal.range", "Value"},
339
340         {"bar.horizontal-stacked.title", "Horizontal Stacked Bar Chart"},
341         {"bar.horizontal-stacked.domain", "Categories"},
342         {"bar.horizontal-stacked.range", "Value"},
343
344         {"bar.vertical.title", "Vertical Bar Chart"},
345         {"bar.vertical.domain", "Categories"},
346         {"bar.vertical.range", "Value"},
347
348         {"bar.vertical3D.title", "Vertical 3D Bar Chart"},
349         {"bar.vertical3D.domain", "Categories"},
350         {"bar.vertical3D.range", "Value"},
351
352         {"bar.vertical-stacked.title", "Vertical Stacked Bar Chart"},
353         {"bar.vertical-stacked.domain", "Categories"},
354         {"bar.vertical-stacked.range", "Value"},
355
356         {"bar.vertical-stacked3D.title", "Vertical Stacked 3D Bar Chart"},
357         {"bar.vertical-stacked3D.domain", "Categories"},
358         {"bar.vertical-stacked3D.range", "Value"},
359
360         {"pie.pie1.title", "Pie Chart 1"},
361
362         {"pie.pie2.title", "Pie Chart 2"},
363
364         {"xyplot.sample1.title", "XY Plot"},
365         {"xyplot.sample1.domain", "X Values"},
366         {"xyplot.sample1.range", "Y Values"},
367
368         {"timeseries.sample1.title", "Time Series Chart 1"},
369         {"timeseries.sample1.subtitle", "Value of GBP in JPY"},
370         {"timeseries.sample1.domain", "Date"},
371         {"timeseries.sample1.range", "CCY per GBP"},
372         {"timeseries.sample1.copyright", "(C)opyright 2002, by Object Refinery Limited"},
373
374         {"timeseries.sample2.title", "Time Series Chart 2"},
375         {"timeseries.sample2.domain", "Millisecond"},
376         {"timeseries.sample2.range", "Log Axis"},
377         {"timeseries.sample2.subtitle", "Milliseconds"},
378
379         {"timeseries.sample3.title", "Time Series Chart with Moving Average"},
380         {"timeseries.sample3.domain", "Date"},
381         {"timeseries.sample3.range", "CCY per GBP"},
382         {"timeseries.sample3.subtitle", "30 day moving average of GBP"},
383
384         {"timeseries.highlow.title", "High/Low/Open/Close Chart"},
385         {"timeseries.highlow.domain", "Date"},
386         {"timeseries.highlow.range", "Price ($ per share)"},
387         {"timeseries.highlow.subtitle", "IBM Stock Price"},
388
389         {"timeseries.candlestick.title", "CandleStick Chart"},
390         {"timeseries.candlestick.domain", "Date"},
391         {"timeseries.candlestick.range", "Price ($ per share)"},
392         {"timeseries.candlestick.subtitle", "IBM Stock Price"},
393
394         {"timeseries.signal.title", "Signal Chart"},
395         {"timeseries.signal.domain", "Date"},
396         {"timeseries.signal.range", "Price ($ per share)"},
397         {"timeseries.signal.subtitle", "IBM Stock Price"},
398
399         {"meter.meter.title", "Speed"},
400         {"meter.meter.subtitle", "Km"},
401         {"meter.meter.units", "Km"},
402
403         {"meter.thermo.title", "Hobart - Tasmania"},
404         {"meter.thermo.subtitle", "Temperature"},
405         {"meter.thermo.units", "°C"},
406
407         {"other.wind.title", "Wind Plot"},
408         {"other.wind.domain", "X-Axis"},
409         {"other.wind.range", "Y-Axis"},
410
411         {"other.scatter.title", "Scatter Plot"},
412         {"other.scatter.domain", "X-Axis"},
413         {"other.scatter.range", "Y-Axis"},
414
415         {"other.line.title", "Line Plot"},
416         {"other.line.domain", "Category"},
417         {"other.line.range", "Value"},
418
419         {"other.xybar.title", "Time Series Bar Chart"},
420         {"other.xybar.domain", "Date"},
421         {"other.xybar.range", "Value"},
422
423         {"test.null.title", "XY Plot (null data)"},
424         {"test.null.domain", "X"},
425         {"test.null.range", "Y"},
426
427         {"test.zero.title", "XY Plot (zero data)"},
428         {"test.zero.domain", "X axis"},
429         {"test.zero.range", "Y axis"},
430
431         {"test.scroll.title", "Time Series"},
432         {"test.scroll.subtitle", "Value of GBP"},
433         {"test.scroll.domain", "Date"},
434         {"test.scroll.range", "Value"},
435
436         {"test.single.title", "Single Series Bar Chart"},
437         {"test.single.subtitle1", "Subtitle 1"},
438         {"test.single.subtitle2", "Subtitle 2"},
439         {"test.single.domain", "Date"},
440         {"test.single.range", "Value"},
441
442         {"test.dynamic.title", "Dynamic Chart"},
443         {"test.dynamic.domain", "Domain"},
444         {"test.dynamic.range", "Range"},
445
446         {"combined.overlaid.title", "Overlaid Chart"},
447         {"combined.overlaid.subtitle", "High/Low/Open/Close plus Moving Average"},
448         {"combined.overlaid.domain", "Date" },
449         {"combined.overlaid.range", "IBM"},
450
451         {"combined.horizontal.title", "Horizontal Combined Chart"},
452         {"combined.horizontal.subtitle", "Time Series and XY Bar Charts"},
453         {"combined.horizontal.domains", new String JavaDoc[] {"Date 1", "Date 2", "Date 3"}},
454         {"combined.horizontal.range", "CCY per GBP"},
455
456         {"combined.vertical.title", "Vertical Combined Chart"},
457         {"combined.vertical.subtitle", "Four charts in one"},
458         {"combined.vertical.domain", "Date"},
459         {"combined.vertical.ranges", new String JavaDoc[] {"CCY per GBP", "Pounds", "IBM", "Bars"}},
460
461         {"combined.combined-overlaid.title", "Combined and Overlaid Chart"},
462         {"combined.combined-overlaid.subtitle", "XY, Overlaid (two TimeSeries) and Overlaid "
463                                                 + "(HighLow and TimeSeries)"},
464         {"combined.combined-overlaid.domain", "Date"},
465         {"combined.combined-overlaid.ranges", new String JavaDoc[] {"CCY per GBP", "Pounds", "IBM"}},
466
467         {"combined.dynamic.title", "Dynamic Combined Chart"},
468         {"combined.dynamic.subtitle", "XY (series 0), XY (series 1), Overlaid (both series) "
469                                       + "and XY (both series)"},
470         {"combined.dynamic.domain", "X" },
471         {"combined.dynamic.ranges", new String JavaDoc[] {"Y1", "Y2", "Y3", "Y4"} },
472
473         {"meter.compass.title", "Compass Plot"},
474         {"meter.compass.subtitle", "subtitle"},
475
476         {"gantt.task.title", "Gantt Chart"},
477         {"gantt.task.domain", "Task"},
478         {"gantt.task.range", "Time"},
479     };
480
481 }
482
Popular Tags