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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? defaulttablexydataset.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ===========================================================
 * 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.]
 *
 * --------------------------
 * DefaultTableXYDataset.java
 * --------------------------
 * (C) Copyright 2003-2005, by Richard Atkinson and Contributors.
 *
 * Original Author:  Richard Atkinson;
 * Contributor(s):   Jody Brownell;
 *                   David Gilbert (for Object Refinery Limited);
 *                   Andreas Schroeder;
 *
 * $Id: DefaultTableXYDataset.java,v 1.12.2.2 2005/10/25 21:36:51 mungady Exp $
 *
 * Changes:
 * --------
 * 27-Jul-2003 : XYDataset that forces each series to have a value for every 
 *               X-point which is essential for stacked XY area charts (RA);
 * 18-Aug-2003 : Fixed event notification when removing and updating 
 *               series (RA);
 * 22-Sep-2003 : Functionality moved from TableXYDataset to 
 *               DefaultTableXYDataset (RA);
 * 23-Dec-2003 : Added patch for large datasets, submitted by Jody 
 *               Brownell (DG);
 * 16-Feb-2004 : Added pruning methods (DG);
 * 31-Mar-2004 : Provisional implementation of IntervalXYDataset (AS);
 * 01-Apr-2004 : Sound implementation of IntervalXYDataset (AS);
 * 05-May-2004 : Now extends AbstractIntervalXYDataset (DG);
 * 15-Jul-2004 : Switched getX() with getXValue() and getY() with 
 *               getYValue() (DG);
 * 18-Aug-2004 : Moved from org.jfree.data --> org.jfree.data.xy (DG);
 * 11-Jan-2005 : Removed deprecated code in preparation for the 1.0.0 
 *               release (DG);
 * 05-Oct-2005 : Made the interval delegate a dataset listener (DG);
 * 
 */

package org.jfree.data.xy;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;

import org.jfree.data.DomainInfo;
import org.jfree.data.Range;
import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.data.general.DatasetUtilities;
import org.jfree.data.general.SeriesChangeEvent;
import org.jfree.util.ObjectUtilities;

/**
 * An {@link XYDataset} where every series shares the same x-values (required 
 * for generating stacked area charts).
 * 
 * @author Richard Atkinson
 */
public class DefaultTableXYDataset extends AbstractIntervalXYDataset 
                                   implements TableXYDataset, 
                                              IntervalXYDataset, DomainInfo {
    
    /** 
     * Storage for the data - this list will contain zero, one or many 
     * XYSeries objects. 
     */
    private List data = null;
    
    /** Storage for the x values. */
    private HashSet xPoints = null;
    
    /** A flag that controls whether or not events are propogated. */
    private boolean propagateEvents = true;
    
    /** A flag that controls auto pruning. */
    private boolean autoPrune = false;

    /** The delegate used to control the interval width. */
    private IntervalXYDelegate intervalDelegate;

    /**
     * Creates a new empty dataset.
     */
    public DefaultTableXYDataset() {
        this(false);
    }
    
    /**
     * Creates a new empty dataset.
     * 
     * @param autoPrune  a flag that controls whether or not x-values are 
     *                   removed whenever the corresponding y-values are all 
     *                   <code>null</code>.
     */
    public DefaultTableXYDataset(boolean autoPrune) {
        this.autoPrune = autoPrune;
        this.data = new ArrayList();
        this.xPoints = new HashSet();
        this.intervalDelegate = new IntervalXYDelegate(this, false);
        addChangeListener(this.intervalDelegate);
    }

    /**
     * Returns the flag that controls whether or not x-values are removed from 
     * the dataset when the corresponding y-values are all <code>null</code>.
     * 
     * @return A boolean.
     */
    public boolean isAutoPrune() {
        return this.autoPrune;
    }

    /**
     * Adds a series to the collection and sends a {@link DatasetChangeEvent} 
     * to all registered listeners.  The series should be configured to NOT 
     * allow duplicate x-values.
     *
     * @param series  the series (<code>null</code> not permitted).
     */
    public void addSeries(XYSeries series) {
        if (series == null) {
            throw new IllegalArgumentException("Null 'series' argument.");
        }
        if (series.getAllowDuplicateXValues()) {
            throw new IllegalArgumentException(
                "Cannot accept XYSeries that allow duplicate values. "
                + "Use XYSeries(seriesName, <sort>, false) constructor."
            );
        }
        updateXPoints(series);
        this.data.add(series);
        series.addChangeListener(this);
        fireDatasetChanged();
    }

    /**
     * Adds any unique x-values from 'series' to the dataset, and also adds any
     * x-values that are in the dataset but not in 'series' to the series.
     *
     * @param series  the series (<code>null</code> not permitted).
     */
    private void updateXPoints(XYSeries series) {
        if (series == null) {
            throw new IllegalArgumentException("Null 'series' not permitted.");
        }
        HashSet seriesXPoints = new HashSet();
        boolean savedState = this.propagateEvents;
        this.propagateEvents = false;
        for (int itemNo = 0; itemNo < series.getItemCount(); itemNo++) {
            Number xValue = series.getX(itemNo);
            seriesXPoints.add(xValue);
            if (!this.xPoints.contains(xValue)) {
                this.xPoints.add(xValue);
                int seriesCount = this.data.size();
                for (int seriesNo = 0; seriesNo < seriesCount; seriesNo++) {
                    XYSeries dataSeries = (XYSeries) this.data.get(seriesNo);
                    if (!dataSeries.equals(series)) {
                        dataSeries.add(xValue, null);
                    } 
                }
            }
        }
        Iterator iterator = this.xPoints.iterator();
        while (iterator.hasNext()) {
            Number xPoint = (Number) iterator.next();
            if (!seriesXPoints.contains(xPoint)) {
                series.add(xPoint, null);
            }
        }
        this.propagateEvents = savedState;
    }

    /**
     * Updates the x-values for all the series in the dataset.
     */
    public void updateXPoints() {
        this.propagateEvents = false;
        for (int s = 0; s < this.data.size(); s++) {
            updateXPoints((XYSeries) this.data.get(s));
        }
        if (this.autoPrune) {
            prune();
        }
        this.propagateEvents = true;
    }

    /**
     * Returns the number of series in the collection.
     *
     * @return The series count.
     */
    public int getSeriesCount() {
        return this.data.size();
    }

    /**
     * Returns the number of x values in the dataset.
     *
     * @return The number of x values in the dataset.
     */
    public int getItemCount() {
        if (this.xPoints == null) {
            return 0;
        } 
        else {
            return this.xPoints.size();
        }
    }

    /**
     * Returns a series.
     *
     * @param series  the series (zero-based index).
     *
     * @return The series (never <code>null</code>).
     */
    public XYSeries getSeries(int series) {
        if ((series < 0) || (series > getSeriesCount())) {
            throw new IllegalArgumentException("Index outside valid range.");
        }

        return (XYSeries) this.data.get(series);
    }

    /**
     * Returns the key for a series.
     *
     * @param series  the series (zero-based index).
     *
     * @return The key for a series.
     */
    public Comparable getSeriesKey(int series) {
        // check arguments...delegated
        return getSeries(series).getKey();
    }

    /**
     * Returns the number of items in the specified series.
     *
     * @param series  the series (zero-based index).
     *
     * @return The number of items in the specified series.
     */
    public int getItemCount(int series) {
        // check arguments...delegated
        return getSeries(series).getItemCount();
    }

    /**
     * Returns the x-value for the specified series and item.
     *
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     *
     * @return The x-value for the specified series and item.
     */
    public Number getX(int series, int item) {
        XYSeries s = (XYSeries) this.data.get(series);
        XYDataItem dataItem = s.getDataItem(item);
        return dataItem.getX();
    }
    
    /**
     * Returns the starting X value for the specified series and item.
     *
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     *
     * @return The starting X value.
     */
    public Number getStartX(int series, int item) {
        return this.intervalDelegate.getStartX(series, item);
    }

    /**
     * Returns the ending X value for the specified series and item.
     *
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     *
     * @return The ending X value.
     */
    public Number getEndX(int series, int item) {
        return this.intervalDelegate.getEndX(series, item);
    }

    /**
     * Returns the y-value for the specified series and item.
     *
     * @param series  the series (zero-based index).
     * @param index  the index of the item of interest (zero-based).
     *
     * @return The y-value for the specified series and item (possibly 
     *         <code>null</code>). 
     */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩成人在线| 国产视频一区二区三区在线观看| 美女精品一区二区| 亚洲老妇xxxxxx| 国产女同性恋一区二区| 51精品久久久久久久蜜臀| av电影在线观看完整版一区二区| 日本亚洲一区二区| 亚洲午夜激情网页| 亚洲欧美精品午睡沙发| 欧美激情一区二区三区在线| 日韩女优av电影| 欧美裸体一区二区三区| 91丨九色丨国产丨porny| 国产精品一区二区不卡| 蜜桃av一区二区三区| 亚洲成a人v欧美综合天堂| 亚洲摸摸操操av| 国产精品理论片在线观看| 久久精品日产第一区二区三区高清版 | 99精品久久只有精品| 狠狠色狠狠色综合日日91app| 午夜婷婷国产麻豆精品| 亚洲精品视频一区二区| 18成人在线观看| 欧美激情综合五月色丁香小说| 日韩免费电影一区| 欧美一区二区福利在线| 5月丁香婷婷综合| 欧美体内she精视频| 91久久精品一区二区| 色综合天天综合在线视频| 99久久国产综合精品麻豆| 不卡电影一区二区三区| www.欧美.com| 色婷婷精品久久二区二区蜜臀av| av在线免费不卡| 91在线视频播放地址| 99久久精品情趣| 色综合天天综合狠狠| 色噜噜狠狠色综合欧洲selulu| 91首页免费视频| 在线一区二区视频| 欧美日韩国产天堂| 日韩午夜电影在线观看| 日韩欧美国产成人一区二区| 欧美成人激情免费网| 久久日一线二线三线suv| 国产午夜精品一区二区三区视频 | 欧美裸体bbwbbwbbw| 中文字幕在线观看一区二区| 久久久久久久久蜜桃| 国产精品嫩草影院av蜜臀| 亚洲色图一区二区| 亚洲成国产人片在线观看| 全国精品久久少妇| 国产在线精品国自产拍免费| 不卡的电影网站| 在线观看一区不卡| 日韩一区二区在线看| 国产欧美日韩激情| 一区二区三区四区亚洲| 偷窥少妇高潮呻吟av久久免费| 免费的成人av| 成人av网站免费观看| 91久久精品一区二区三区| 666欧美在线视频| 国产亚洲欧洲一区高清在线观看| 国产精品美女久久久久高潮| 亚洲小少妇裸体bbw| 久久国产精品99精品国产| 成人综合婷婷国产精品久久蜜臀 | 精品午夜久久福利影院| 成人免费观看视频| 欧美日韩精品免费观看视频| 欧美精品一区二区三区在线 | 最新热久久免费视频| 亚洲成av人片在www色猫咪| 国产美女娇喘av呻吟久久| 91丨九色丨蝌蚪丨老版| 日韩一区二区麻豆国产| 亚洲日本在线观看| 久久国产精品99久久人人澡| 99精品桃花视频在线观看| 91精品国产aⅴ一区二区| 中日韩av电影| 美女www一区二区| 在线观看一区二区视频| 久久精品视频在线看| 五月开心婷婷久久| 99精品欧美一区二区蜜桃免费| 日韩视频免费直播| 亚洲色图.com| 国产成人精品免费一区二区| 5566中文字幕一区二区电影| 国产精品每日更新| 国产在线精品国自产拍免费| 欧美精品亚洲二区| 综合欧美亚洲日本| 国产精品一二三| 日韩免费高清视频| 性欧美疯狂xxxxbbbb| 99久久99久久免费精品蜜臀| 国产亚洲综合在线| 麻豆国产欧美一区二区三区| 在线免费不卡视频| 1区2区3区欧美| 国产成人激情av| 亚洲精品在线观看视频| 奇米色777欧美一区二区| 欧美午夜精品一区| 亚洲女同一区二区| 成人免费视频一区二区| 久久久久亚洲综合| 乱一区二区av| 欧美一区二区不卡视频| 午夜视频久久久久久| 欧美影片第一页| 有码一区二区三区| 在线视频欧美精品| 亚洲精品少妇30p| 成人h动漫精品一区二区| 国产午夜精品美女毛片视频| 久久国产精品色婷婷| 日韩欧美中文一区| 久久精品国产免费| wwwwxxxxx欧美| 国产精品一区专区| 亚洲国产激情av| 成人免费视频app| 椎名由奈av一区二区三区| 99综合电影在线视频| 综合久久综合久久| 在线一区二区视频| 亚洲一区二区三区三| 在线国产电影不卡| 亚洲亚洲精品在线观看| 欧美美女直播网站| 肉丝袜脚交视频一区二区| 91精品国产综合久久国产大片| 亚洲成人免费影院| 制服丝袜亚洲网站| 看电影不卡的网站| 国产视频一区二区在线| 成人av在线影院| 亚洲精品免费电影| 欧美日韩高清一区| 狠狠色丁香婷婷综合久久片| 精品成人一区二区三区四区| 国产精一区二区三区| 国产精品美女一区二区在线观看| av亚洲精华国产精华| 一区二区高清在线| 欧美成人一区二区| 国产成人精品一区二区三区四区 | 国产精品视频看| 色94色欧美sute亚洲线路一ni| 亚洲国产精品天堂| 精品福利二区三区| 成人av集中营| 亚洲福利一二三区| 精品国产亚洲在线| 91亚洲男人天堂| 热久久一区二区| 国产精品毛片高清在线完整版| 一本色道久久综合亚洲aⅴ蜜桃 | 精品一区精品二区高清| 中文字幕五月欧美| 欧美美女bb生活片| 高清不卡一区二区| 亚洲123区在线观看| 2021中文字幕一区亚洲| 色婷婷精品久久二区二区蜜臂av | 亚洲国产va精品久久久不卡综合| 日韩欧美黄色影院| 91视频观看视频| 麻豆91小视频| 中文字幕亚洲视频| 欧美本精品男人aⅴ天堂| av电影在线不卡| 免费在线一区观看| 亚洲欧美日韩小说| 久久久久久免费| 欧美日韩中文字幕精品| 国产成人免费网站| 天天色天天操综合| 亚洲欧洲日韩在线| 精品久久久久久亚洲综合网 | 91九色最新地址| 国产精品一区在线| 日日夜夜免费精品视频| 国产精品美女久久久久久久| 日韩女优制服丝袜电影| 欧美午夜片在线看| 成人国产电影网| 国产综合久久久久久久久久久久| 亚洲一区二区在线视频| 国产精品伦理在线| 精品久久久久久最新网址| 欧美无乱码久久久免费午夜一区|