⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demoresources.java

📁 JfreeChart 常用图表例子
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* =========================================================== * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * * (C) Copyright 2000-2004, by Object Refinery Limited and Contributors. * * Project Info:  http://www.jfree.org/jfreechart/index.html * * This library is free software; you can redistribute it and/or modify it under the terms * of the GNU Lesser General Public License as published by the Free Software Foundation; * either version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License along with this * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc.  * in the United States and other countries.] * * ------------------ * DemoResources.java * ------------------ * (C) Copyright 2002-2004, by Object Refinery Limited. * * Original Author:  David Gilbert (for Object Refinery Limited); * Contributor(s):   -; * * $Id: DemoResources.java,v 1.7 2004/04/27 15:21:31 mungady Exp $ * * Changes * ------- * 15-Mar-2002 : Version 1 (DG); * 26-Mar-2002 : Changed name from JFreeChartDemoResources.java --> DemoResources.java (DG); * 02-Jul-2002 : Added the tabs.X to define tabs in the demo. (BRS) * 02-Jul-2002 : Added the chartX.tab to define which tab an example should be *               displayed on. (BRS) * 02-Jul-2002 : Added the chartX.usage to define where an example should is *               applicable (All, Servlet, Swing). (BRS) * 02-Jul-2002 : Added Gantt chart resources. * 24-Oct-2002 : Fixed errors reported by Checkstyle (DG); * 19-Jan-2004 : Added wafermap chart (36,37,38) and tab (9) resources (RR); * */package org.jfree.chart.demo.resources;import java.util.ListResourceBundle;/** * A resource bundle that stores all the user interface items that might need localisation. * */public class DemoResources extends ListResourceBundle {    /**     * Returns the array of strings in the resource bundle.     *     * @return the resources.     */    public Object[][] getContents() {        return CONTENTS;    }    /** The resources to be localised. */    private static final Object[][] CONTENTS = {        // about frame...        {"about.title", "About..."},        {"about.version.label", "Version"},        // menu labels...        {"menu.file", "File"},        {"menu.file.mnemonic", new Character('F') },        {"menu.file.exit", "Exit"},        {"menu.file.exit.mnemonic", new Character('x') },        {"menu.help", "Help"},        {"menu.help.mnemonic", new Character('H')},        {"menu.help.about", "About..."},        {"menu.help.about.mnemonic", new Character('A')},        // dialog messages...        {"dialog.exit.title", "Confirm exit..."},        {"dialog.exit.message", "Are you sure you want to exit?"},        // labels for the tabs in the main window...        // Maximum of Twenty (20) charts per page.        {"tabs.1", "Bar Charts"},        {"tabs.2", "Pie Charts"},        {"tabs.3", "XY Charts"},        {"tabs.4", "Time Series Charts"},        {"tabs.5", "Meter Charts"},        {"tabs.6", "Other Charts"},        {"tabs.7", "Test Charts"},        {"tabs.8", "Combined Charts"},        {"tabs.9", "Wafermap Charts"},        //{"usage.0","All Applications"},        //{"usage.1","Swing Only"},        //{"usage.2","Servlet Only"},        // sample chart descriptions...        {"chart1.title",       "Horizontal Bar Chart: "},        {"chart1.tab",         "1"},        {"chart1.usage",       "All"},        {"chart1.description", "Displays horizontal bars, representing data from a "                               + "CategoryDataset.  Notice that the numerical axis is inverted."},        {"chart1.zoom",        "false"},        {"chart2.title",       "Horizontal Stacked Bar Chart: "},        {"chart2.tab",         "1"},        {"chart2.usage",       "All"},        {"chart2.description", "Displays horizontal stacked bars, representing data from a "                               + "CategoryDataset."},        {"chart2.zoom",        "false"},        {"chart3.title",       "Vertical Bar Chart: "},        {"chart3.tab",         "1"},        {"chart3.usage",       "All"},        {"chart3.description", "Displays vertical bars, representing data from a CategoryDataset."},        {"chart3.zoom",        "false"},        {"chart4.title",       "Vertical 3D Bar Chart: "},        {"chart4.tab",         "1"},        {"chart4.usage",       "All"},        {"chart4.description", "Displays vertical bars with a 3D effect, representing data from a "                               + "CategoryDataset."},        {"chart4.zoom",        "false"},        {"chart5.title",       "Vertical Stacked Bar Chart: "},        {"chart5.tab",         "1"},        {"chart5.usage",       "All"},        {"chart5.description", "Displays vertical stacked bars, representing data from a "                               + "CategoryDataset."},        {"chart5.zoom",        "false"},        {"chart6.title",       "Vertical Stacked 3D Bar Chart: "},        {"chart6.tab",         "1"},        {"chart6.usage",       "All"},        {"chart6.description", "Displays vertical stacked bars with a 3D effect, representing "                               + "data from a CategoryDataset."},        {"chart6.zoom",        "false"},        {"chart7.title",       "Pie Chart 1: "},        {"chart7.tab",         "2"},        {"chart7.usage",       "All"},        {"chart7.description", "A pie chart showing one section exploded."},        {"chart7.zoom",        "false"},        {"chart8.title",       "Pie Chart 2: "},        {"chart8.tab",         "2"},        {"chart8.usage",       "All"},        {"chart8.description", "A pie chart showing percentages on the category labels.  Also, "                               + "this plot has a background image."},        {"chart8.zoom",        "false"},        {"chart9.title",       "XY Plot: "},        {"chart9.tab",         "3"},        {"chart9.usage",       "All"},        {"chart9.zoom",        "true"},        {"chart9.description", "A line chart using data from an XYDataset.  Both axes are "                               + "numerical."},        {"chart9.zoom",        "false"},        {"chart10.title",       "Time Series 1: "},        {"chart10.tab",         "4"},        {"chart10.usage",       "All"},        {"chart10.description", "A time series chart, representing data from an XYDataset.  This "                                + "chart also demonstrates the use of multiple chart titles."},        {"chart10.zoom",        "false"},        {"chart11.title",       "Time Series 2: "},        {"chart11.tab",         "4"},        {"chart11.usage",       "All"},        {"chart11.description", "A time series chart, representing data from an XYDataset.  The "                                + "vertical axis has a logarithmic scale."},        {"chart11.zoom",        "false"},        {"chart12.title",       "Time Series 3: "},        {"chart12.tab",         "4"},        {"chart12.usage",       "All"},        {"chart12.description", "A time series chart with a moving average."},        {"chart12.zoom",        "false"},        {"chart13.title",       "High/Low/Open/Close Chart: "},        {"chart13.tab",         "6"},        {"chart13.usage",       "All"},        {"chart13.description", "A high/low/open/close chart based on data in a HighLowDataset."},        {"chart13.zoom",        "false"},        {"chart14.title",       "Candlestick Chart: "},        {"chart14.tab",         "6"},        {"chart14.usage",       "All"},        {"chart14.description", "A candlestick chart based on data in a HighLowDataset."},        {"chart14.zoom",        "false"},        {"chart15.title",       "Signal Chart: "},        {"chart15.tab",         "6"},        {"chart15.usage",       "All"},        {"chart15.description", "A signal chart based on data in a SignalDataset."},        {"chart15.zoom",        "false"},        {"chart16.title",       "Wind Plot: "},        {"chart16.tab",         "6"},        {"chart16.usage",       "All"},        {"chart16.description", "A wind plot, represents wind direction and intensity (supplied "                                + "via a WindDataset)."},        {"chart16.zoom",        "false"},        {"chart17.title",       "Scatter Plot: "},        {"chart17.tab",         "3"},        {"chart17.usage",       "All"},        {"chart17.description", "A scatter plot, representing data in an XYDataset."},        {"chart17.zoom",        "false"},        {"chart18.title",       "Line Chart: "},        {"chart18.tab",         "6"},        {"chart18.usage",       "All"},        {"chart18.description", "A chart displaying lines and or shapes, representing data in a "                                + "CategoryDataset.  This plot also illustrates the use of a "                                + "background image on the chart, and alpha-transparency on the "                                + "plot."},        {"chart18.zoom",        "false"},        {"chart19.title",       "Vertical XY Bar Chart: "},        {"chart19.tab",         "3"},        {"chart19.usage",       "All"},        {"chart19.description", "A chart showing vertical bars, based on data in an "                                + "IntervalXYDataset."},        {"chart19.zoom",        "false"},        {"chart20.title",       "Null Data: "},        {"chart20.tab",         "7"},        {"chart20.usage",       "All"},        {"chart20.description", "A chart with a null dataset."},        {"chart20.zoom",        "false"},        {"chart21.title",       "Zero Data: "},        {"chart21.tab",         "7"},        {"chart21.usage",       "All"},        {"chart21.description", "A chart with a dataset containing zero series."},        {"chart21.zoom",        "false"},        {"chart22.title",       "Chart in JScrollPane: "},        {"chart22.tab",         "7"},        {"chart22.usage",       "All"},        {"chart22.description", "A chart embedded in a JScrollPane."},        {"chart22.zoom",        "false"},        {"chart23.title",       "Single Series Bar Chart: "},

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -