亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? xydatasettablemodel.java

?? jfreechart1.0.1 jsp繪制圖表的開發(fā)包
?? JAVA
字號:
/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2005, 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
 * USA.  
 *
 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 
 * in the United States and other countries.]
 *
 * ------------------------
 * XYDatasetTableModel.java
 * ------------------------
 * (C)opyright 2003-2005, by Bryan Scott and Contributors.
 *
 * Original Author:  Bryan Scott ;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * Changes
 * -------
 * 01-Jul-2003 : Version 1 contributed by Bryan Scott (DG);
 * 27-Apr-2005 : Change XYDataset --> TableXYDataset because the table model
 *               assumes all series share the same x-values, and this is not
 *               enforced by XYDataset.  Also fixed bug 1191046, a problem
 *               in the getValueAt() method (DG);
 * 
 */

package org.jfree.data.xy;

import javax.swing.table.AbstractTableModel;
import javax.swing.table.TableModel;

import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.data.general.DatasetChangeListener;

/**
 * A READ-ONLY wrapper around a {@link TableXYDataset} to convert it to a
 * table model for use in a JTable.  The first column of the table shows the
 * x-values, the remaining columns show the y-values for each series (series 0
 * appears in column 1, series 1 appears in column 2, etc).
 * <P>
 * TO DO:
 * <ul>
 * <li>implement proper naming for x axis (getColumnName)</li>
 * <li>implement setValueAt to remove READ-ONLY constraint (not sure how)</li>
 * </ul>
 *
 * @author           Bryan Scott
 */
public class XYDatasetTableModel extends AbstractTableModel
                                 implements TableModel, DatasetChangeListener  {

    /** The dataset. */
    TableXYDataset model = null;

    /**
     * Default constructor.
     */
    public XYDatasetTableModel() {
        super();
    }

    /**
     * Creates a new table model based on the specified dataset.
     *
     * @param dataset  the dataset.
     */
    public XYDatasetTableModel(TableXYDataset dataset) {
        this();
        this.model = dataset;
        this.model.addChangeListener(this);
    }

    /**
     * Sets the model (dataset).
     *
     * @param dataset  the dataset.
     */
    public void setModel(TableXYDataset dataset) {
        this.model = dataset;
        this.model.addChangeListener(this);
        fireTableDataChanged();
    }

    /**
     * Returns the number of rows.
     *
     * @return The row count.
     */
    public int getRowCount() {
        if (this.model == null) {
            return 0;
        }
        return this.model.getItemCount();
    }

    /**
     * Gets the number of columns in the model.
     *
     * @return The number of columns in the model.
     */
    public int getColumnCount() {
        if (this.model == null) {
            return 0;
        }
        return this.model.getSeriesCount() + 1;
    }

    /**
     * Returns the column name.
     *
     * @param column  the column index.
     *
     * @return The column name.
     */
    public String getColumnName(int column) {
        if (this.model == null) {
            return super.getColumnName(column);
        }
        if (column < 1) {
            return "X Value";
        }
        else {
            return this.model.getSeriesKey(column - 1).toString();
        }
    }

    /**
     * Returns a value of the specified cell.
     * Column 0 is the X axis, Columns 1 and over are the Y axis
     *
     * @param row  the row number.
     * @param column  the column number.
     *
     * @return The value of the specified cell.
     */
    public Object getValueAt(int row, int column) {
        if (this.model == null) {
            return null;
        }
        if (column < 1) {
            return this.model.getX(0, row);
        }
        else {
            return this.model.getY(column - 1, row);
        }
    }

    /**
     * Receives notification that the underlying dataset has changed.
    *
     * @param event  the event
     *
     * @see DatasetChangeListener
     */
    public void datasetChanged(DatasetChangeEvent event) {
        fireTableDataChanged();
    }

    /**
     * Returns a flag indicating whether or not the specified cell is editable.
     *
     * @param row  the row number.
     * @param column  the column number.
     *
     * @return <code>true</code> if the specified cell is editable.
     */
    public boolean isCellEditable(int row, int column) {
        return false;
   }

    /**
     * Updates the {@link XYDataset} if allowed.
     *
     * @param value  the new value.
     * @param row  the row.
     * @param column  the column.
     */
    public void setValueAt(Object value, int row, int column) {
        if (isCellEditable(row, column)) {
            // XYDataset only provides methods for reading a dataset...
        }
    }

//    /**
//     * Run a demonstration of the table model interface.
//     *
//     * @param args  ignored.
//     *
//     * @throws Exception when an error occurs.
//     */
//    public static void main(String args[]) throws Exception {
//        JFrame frame = new JFrame();
//        JPanel panel = new JPanel();
//        panel.setLayout(new BorderLayout());
//
//        XYSeries s1 = new XYSeries("Series 1", true, false);
//        for (int i = 0; i < 10; i++) {
//            s1.add(i, Math.random());   
//        }
//        XYSeries s2 = new XYSeries("Series 2", true, false);
//        for (int i = 0; i < 15; i++) {
//            s2.add(i, Math.random());   
//        }
//        DefaultTableXYDataset dataset = new DefaultTableXYDataset();
//        dataset.addSeries(s1);
//        dataset.addSeries(s2);
//        XYDatasetTableModel tablemodel = new XYDatasetTableModel();
//
//        tablemodel.setModel(dataset);
//
//        JTable dataTable = new JTable(tablemodel);
//        JScrollPane scroll = new JScrollPane(dataTable);
//        scroll.setPreferredSize(new Dimension(600, 150));
//
//        JFreeChart chart = ChartFactory.createXYLineChart(
//            "XY Series Demo",
//            "X", "Y", dataset, PlotOrientation.VERTICAL,
//            true,
//            true,
//            false
//        );
//
//        ChartPanel chartPanel = new ChartPanel(chart);
//
//        panel.add(chartPanel, BorderLayout.CENTER);
//        panel.add(scroll, BorderLayout.SOUTH);
//
//        frame.setContentPane(panel);
//        frame.setSize(600, 500);
//        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//        frame.show();
//        RefineryUtilities.centerFrameOnScreen(frame);
//    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲欧美日韩日本| 在线观看亚洲成人| 在线观看一区二区视频| 精品成人a区在线观看| 一区二区三区.www| 成人综合婷婷国产精品久久免费| 欧美美女网站色| 亚洲男人的天堂av| 高清国产一区二区| 日韩你懂的在线播放| 亚洲va欧美va人人爽午夜| 99久久综合狠狠综合久久| 久久久综合激的五月天| 美女网站色91| 欧美一区午夜视频在线观看| 夜夜亚洲天天久久| 不卡的电视剧免费网站有什么| 久久综合久色欧美综合狠狠| 毛片基地黄久久久久久天堂| 欧美三级电影网| 亚洲综合在线免费观看| 91亚洲国产成人精品一区二区三| 中文一区二区完整视频在线观看| 国产露脸91国语对白| 精品福利在线导航| 国产乱码精品1区2区3区| 久久婷婷久久一区二区三区| 韩国视频一区二区| 欧美成人a视频| 精品在线观看免费| 久久网站最新地址| 成人黄色小视频| **欧美大码日韩| 欧美亚洲自拍偷拍| 日本中文字幕一区| 精品久久久三级丝袜| 国产曰批免费观看久久久| 亚洲一区二区三区不卡国产欧美| 在线亚洲欧美专区二区| 亚洲第一福利一区| 欧美一级艳片视频免费观看| 激情综合网激情| 国产亚洲美州欧州综合国| 国产成人免费9x9x人网站视频| 日本一区二区久久| 91丨porny丨国产入口| 亚洲小少妇裸体bbw| 在线不卡的av| 国产麻豆视频一区| 国产精品国产馆在线真实露脸| 色综合天天综合网天天看片| 亚洲免费观看高清完整版在线观看熊| 在线亚洲人成电影网站色www| 三级久久三级久久久| 亚洲精品在线免费观看视频| 成人福利在线看| 亚洲一区二区三区四区中文字幕| 日韩欧美中文一区二区| 成人综合在线网站| 天堂久久久久va久久久久| 久久久久免费观看| 91久久精品一区二区二区| 精品一区二区三区影院在线午夜| 国产精品久久久久久久午夜片 | 91精品国产综合久久国产大片| 毛片一区二区三区| 亚洲人成亚洲人成在线观看图片| 欧美精品第1页| 成人av午夜电影| 蜜桃久久久久久久| 亚洲欧美日韩国产中文在线| 91精品国产入口在线| 99国产精品国产精品毛片| 免费看日韩a级影片| 亚洲视频一二三| 亚洲精品在线观看视频| 欧美午夜电影在线播放| 国产+成+人+亚洲欧洲自线| 亚洲精品写真福利| 国产婷婷色一区二区三区四区 | 亚洲超碰精品一区二区| 久久久激情视频| 欧美日韩国产美| 91视频在线看| 国产成人免费视频一区| 天天综合色天天综合| 中文字幕一区二区视频| 久久夜色精品一区| 91精品国产aⅴ一区二区| 色综合天天综合狠狠| 国产精品123| 狠狠狠色丁香婷婷综合激情| 日本最新不卡在线| 亚洲影视在线播放| 亚洲美女少妇撒尿| 国产精品麻豆视频| 国产午夜亚洲精品午夜鲁丝片| 日韩三级中文字幕| 欧美猛男男办公室激情| 在线观看免费成人| 色综合色综合色综合色综合色综合| 丁香婷婷综合五月| 欧美日本在线视频| 91久久精品一区二区二区| eeuss鲁片一区二区三区在线观看| 国产乱码精品1区2区3区| 精品在线一区二区| 激情综合网av| 国精产品一区一区三区mba视频| 日韩黄色免费网站| 日本va欧美va欧美va精品| 日韩激情中文字幕| 美女脱光内衣内裤视频久久影院| 免费高清不卡av| 久国产精品韩国三级视频| 久久精品国产色蜜蜜麻豆| 美女网站一区二区| 国产伦精品一区二区三区视频青涩| 久久国产精品99久久人人澡| 久久99日本精品| 国产丶欧美丶日本不卡视频| 国产成a人无v码亚洲福利| www.亚洲激情.com| 欧美天堂一区二区三区| 欧美日韩成人综合天天影院| 欧美日韩一区三区四区| 91精品国产综合久久久久久漫画| 欧美va亚洲va| 国产精品乱码妇女bbbb| 亚洲欧美另类久久久精品2019| 亚洲午夜一区二区三区| 日本91福利区| 国产经典欧美精品| 99久久国产综合精品麻豆| 在线观看免费亚洲| 精品国产露脸精彩对白| 国产精品久久久久久久裸模 | 蜜桃精品在线观看| 国产成人午夜99999| 91年精品国产| 91精品啪在线观看国产60岁| 久久精品视频在线免费观看| 怡红院av一区二区三区| 日本中文一区二区三区| 国产91精品入口| 欧美撒尿777hd撒尿| 亚洲精品在线观看视频| 一区二区三区四区亚洲| 九色porny丨国产精品| 91在线观看免费视频| 日韩三级视频在线看| 亚洲日本丝袜连裤袜办公室| 日本欧美一区二区在线观看| k8久久久一区二区三区| 欧美一区二区三区影视| 国产精品精品国产色婷婷| 日本三级亚洲精品| 91丝袜高跟美女视频| 亚洲精品一区二区在线观看| 一区二区在线观看免费| 国产在线视视频有精品| 欧美三级电影在线观看| 国产精品国产三级国产有无不卡| 日本最新不卡在线| 欧洲精品中文字幕| 国产精品三级av| 久久精品国内一区二区三区| 91麻豆精品秘密| 国产亚洲欧美日韩日本| 美女视频网站久久| 欧美日韩国产一级片| 中文字幕一区av| 风间由美性色一区二区三区| 日韩欧美在线1卡| 婷婷一区二区三区| 色94色欧美sute亚洲线路二| 久久久777精品电影网影网| 日本网站在线观看一区二区三区 | 亚洲成人tv网| 日韩写真欧美这视频| 亚洲三级在线免费观看| 国产精品自拍一区| 精品精品国产高清a毛片牛牛| 五月天精品一区二区三区| 在线免费亚洲电影| 亚洲麻豆国产自偷在线| 菠萝蜜视频在线观看一区| 久久久久久久久久久黄色| 久久精品国产99国产| 日韩欧美在线影院| 精品一区二区三区久久久| 日韩视频不卡中文| 激情五月婷婷综合网| 欧美精品一区二区久久婷婷| 美女视频黄a大片欧美| 欧美一级日韩一级| 久久精品国产久精国产| 日韩欧美成人一区| 精品无人区卡一卡二卡三乱码免费卡| 日韩一级二级三级|