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

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

?? xyseries.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2006, 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.]
 *
 * -------------
 * XYSeries.java
 * -------------
 * (C) Copyright 2001-2006, Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Aaron Metzger;
 *                   Jonathan Gabbai;
 *                   Richard Atkinson;
 *                   Michel Santos;
 *
 * $Id: XYSeries.java,v 1.13.2.2 2006/01/11 15:01:55 mungady Exp $
 *
 * Changes
 * -------
 * 15-Nov-2001 : Version 1 (DG);
 * 03-Apr-2002 : Added an add(double, double) method (DG);
 * 29-Apr-2002 : Added a clear() method (ARM);
 * 06-Jun-2002 : Updated Javadoc comments (DG);
 * 29-Aug-2002 : Modified to give user control over whether or not duplicate 
 *               x-values are allowed (DG);
 * 07-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 * 11-Nov-2002 : Added maximum item count, code contributed by Jonathan 
 *               Gabbai (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 04-Aug-2003 : Added getItems() method (DG);
 * 15-Aug-2003 : Changed 'data' from private to protected, added new add() 
 *               methods with a 'notify' argument (DG);
 * 22-Sep-2003 : Added getAllowDuplicateXValues() method (RA);
 * 29-Jan-2004 : Added autoSort attribute, based on a contribution by 
 *               Michel Santos - see patch 886740 (DG);
 * 03-Feb-2004 : Added indexOf() method (DG);
 * 16-Feb-2004 : Added remove() method (DG);
 * 18-Aug-2004 : Moved from org.jfree.data --> org.jfree.data.xy (DG);
 * 21-Feb-2005 : Added update(Number, Number) and addOrUpdate(Number, Number) 
 *               methods (DG);
 * 03-May-2005 : Added a new constructor, fixed the setMaximumItemCount() 
 *               method to remove items (and notify listeners) if necessary, 
 *               fixed the add() and addOrUpdate() methods to handle unsorted 
 *               series (DG);
 * ------------- JFreeChart 1.0.0 ---------------------------------------------
 * 11-Jan-2005 : Renamed update(int, Number) --> updateByIndex() (DG);
 * 
 */

package org.jfree.data.xy;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

import org.jfree.data.general.Series;
import org.jfree.data.general.SeriesChangeEvent;
import org.jfree.data.general.SeriesException;
import org.jfree.util.ObjectUtilities;

/**
 * Represents a sequence of zero or more data items in the form (x, y).  By 
 * default, items in the series will be sorted into ascending order by x-value,
 * and duplicate x-values are permitted.  Both the sorting and duplicate 
 * defaults can be changed in the constructor.  Y-values can be 
 * <code>null</code> to represent missing values.
 */
public class XYSeries extends Series implements Cloneable, Serializable {

    /** For serialization. */
    static final long serialVersionUID = -5908509288197150436L;
    
    // In version 0.9.12, in response to several developer requests, I changed 
    // the 'data' attribute from 'private' to 'protected', so that others can 
    // make subclasses that work directly with the underlying data structure.

    /** Storage for the data items in the series. */
    protected List data;

    /** The maximum number of items for the series. */
    private int maximumItemCount = Integer.MAX_VALUE;

    /** A flag that controls whether the items are automatically sorted. */
    private boolean autoSort;
    
    /** A flag that controls whether or not duplicate x-values are allowed. */
    private boolean allowDuplicateXValues;

    /**
     * Creates a new empty series.  By default, items added to the series will 
     * be sorted into ascending order by x-value, and duplicate x-values will 
     * be allowed (these defaults can be modified with another constructor.
     *
     * @param key  the series key (<code>null</code> not permitted).
     */
    public XYSeries(Comparable key) {
        this(key, true, true);
    }

    /**
     * Constructs a new empty series, with the auto-sort flag set as requested,
     * and duplicate values allowed.  
     * 
     * @param key  the series key (<code>null</code> not permitted).
     * @param autoSort  a flag that controls whether or not the items in the 
     *                  series are sorted.
     */
    public XYSeries(Comparable key, boolean autoSort) {
        this(key, autoSort, true);
    }

    /**
     * Constructs a new xy-series that contains no data.  You can specify 
     * whether or not duplicate x-values are allowed for the series.
     *
     * @param key  the series key (<code>null</code> not permitted).
     * @param autoSort  a flag that controls whether or not the items in the 
     *                  series are sorted.
     * @param allowDuplicateXValues  a flag that controls whether duplicate 
     *                               x-values are allowed.
     */
    public XYSeries(Comparable key, 
                    boolean autoSort, 
                    boolean allowDuplicateXValues) {
        super(key);
        this.data = new java.util.ArrayList();
        this.autoSort = autoSort;
        this.allowDuplicateXValues = allowDuplicateXValues;
    }

    /**
     * Returns the flag that controls whether the items in the series are 
     * automatically sorted.  There is no setter for this flag, it must be 
     * defined in the series constructor.
     * 
     * @return A boolean.
     */
    public boolean getAutoSort() {
        return this.autoSort;
    }
    
    /**
     * Returns a flag that controls whether duplicate x-values are allowed.  
     * This flag can only be set in the constructor.
     *
     * @return A boolean.
     */
    public boolean getAllowDuplicateXValues() {
        return this.allowDuplicateXValues;
    }

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

    /**
     * Returns the list of data items for the series (the list contains 
     * {@link XYDataItem} objects and is unmodifiable).
     * 
     * @return The list of data items.
     */
    public List getItems() {
        return Collections.unmodifiableList(this.data);    
    }
    
    /**
     * Returns the maximum number of items that will be retained in the series.
     * The default value is <code>Integer.MAX_VALUE</code>.
     *
     * @return The maximum item count.
     * @see #setMaximumItemCount(int)
     */
    public int getMaximumItemCount() {
        return this.maximumItemCount;
    }

    /**
     * Sets the maximum number of items that will be retained in the series.  
     * If you add a new item to the series such that the number of items will 
     * exceed the maximum item count, then the first element in the series is 
     * automatically removed, ensuring that the maximum item count is not 
     * exceeded.
     * <p>
     * Typically this value is set before the series is populated with data,
     * but if it is applied later, it may cause some items to be removed from
     * the series (in which case a {@link SeriesChangeEvent} will be sent to
     * all registered listeners.
     *
     * @param maximum  the maximum number of items for the series.
     */
    public void setMaximumItemCount(int maximum) {
        this.maximumItemCount = maximum;
        boolean dataRemoved = false;
        while (this.data.size() > maximum) {
            this.data.remove(0);   
            dataRemoved = true;
        }
        if (dataRemoved) {
            fireSeriesChanged();
        }
    }

    /**
     * Adds a data item to the series and sends a {@link SeriesChangeEvent} to 
     * all registered listeners.
     *
     * @param item  the (x, y) item (<code>null</code> not permitted).
     */
    public void add(XYDataItem item) {
        // argument checking delegated...
        add(item, true);
    }
    
    /**
     * Adds a data item to the series and sends a {@link SeriesChangeEvent} to 
     * all registered listeners.
     *
     * @param x  the x value.
     * @param y  the y value.
     */
    public void add(double x, double y) {
        add(new Double(x), new Double(y), true);
    }

    /**
     * Adds a data item to the series and, if requested, sends a 
     * {@link SeriesChangeEvent} to all registered listeners.
     *
     * @param x  the x value.
     * @param y  the y value.
     * @param notify  a flag that controls whether or not a 
     *                {@link SeriesChangeEvent} is sent to all registered 
     *                listeners.
     */
    public void add(double x, double y, boolean notify) {
        add(new Double(x), new Double(y), notify);
    }

    /**
     * Adds a data item to the series and sends a {@link SeriesChangeEvent} to 
     * all registered listeners.  The unusual pairing of parameter types is to 
     * make it easier to add <code>null</code> y-values.
     *
     * @param x  the x value.
     * @param y  the y value (<code>null</code> permitted).
     */
    public void add(double x, Number y) {
        add(new Double(x), y);
    }

    /**
     * Adds a data item to the series and, if requested, sends a 
     * {@link SeriesChangeEvent} to all registered listeners.  The unusual 
     * pairing of parameter types is to make it easier to add null y-values.
     *
     * @param x  the x value.
     * @param y  the y value (<code>null</code> permitted).
     * @param notify  a flag that controls whether or not a 
     *                {@link SeriesChangeEvent} is sent to all registered 
     *                listeners.
     */
    public void add(double x, Number y, boolean notify) {
        add(new Double(x), y, notify);
    }

    /**
     * Adds new data to the series and sends a {@link SeriesChangeEvent} to 
     * all registered listeners.
     * <P>
     * Throws an exception if the x-value is a duplicate AND the 
     * allowDuplicateXValues flag is false.
     *
     * @param x  the x-value (<code>null</code> not permitted).
     * @param y  the y-value (<code>null</code> permitted).
     */
    public void add(Number x, Number y) {
        // argument checking delegated...
        add(x, y, true);
    }
    
    /**
     * Adds new data to the series and, if requested, sends a 
     * {@link SeriesChangeEvent} to all registered listeners.
     * <P>
     * Throws an exception if the x-value is a duplicate AND the 
     * allowDuplicateXValues flag is false.
     *
     * @param x  the x-value (<code>null</code> not permitted).
     * @param y  the y-value (<code>null</code> permitted).
     * @param notify  a flag the controls whether or not a 
     *                {@link SeriesChangeEvent} is sent to all registered 
     *                listeners.
     */
    public void add(Number x, Number y, boolean notify) {
        if (x == null) {
            throw new IllegalArgumentException("Null 'x' argument.");
        }
        XYDataItem item = new XYDataItem(x, y);
        add(item, notify);
    }

    /**
     * Adds a data item to the series and, if requested, sends a 
     * {@link SeriesChangeEvent} to all registered listeners.
     *
     * @param item  the (x, y) item (<code>null</code> not permitted).
     * @param notify  a flag that controls whether or not a 
     *                {@link SeriesChangeEvent} is sent to all registered 
     *                listeners.
     */
    public void add(XYDataItem item, boolean notify) {

        if (item == null) {
            throw new IllegalArgumentException("Null 'item' argument.");
        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
偷拍一区二区三区| 精品成人私密视频| 亚洲精品在线观看网站| 久久久www成人免费毛片麻豆| 国产精品久久久久一区二区三区共| 夜夜爽夜夜爽精品视频| 男女性色大片免费观看一区二区 | 欧美私模裸体表演在线观看| 欧美一区二区精品在线| 中文字幕高清一区| 亚洲成人免费av| 国产精一区二区三区| 色成年激情久久综合| 精品国产区一区| 一区二区在线观看不卡| 精品一区二区三区在线观看国产| 99r国产精品| 欧美mv和日韩mv的网站| 伊人婷婷欧美激情| 国产毛片精品一区| 欧美日韩一区二区三区四区| 欧美激情一区二区三区四区| 日韩精品免费专区| 91尤物视频在线观看| 2023国产一二三区日本精品2022| 亚洲在线观看免费| 国产福利91精品| 欧美一二区视频| 一区二区在线观看免费| 国产精品18久久久久久久网站| 欧美日韩国产在线观看| 中文字幕在线观看不卡| 美女视频黄 久久| 欧美视频一区在线观看| 中文字幕欧美日本乱码一线二线| 免费国产亚洲视频| 欧美主播一区二区三区| 国产精品久久久久精k8| 国产乱码精品一区二区三| 制服丝袜亚洲色图| 亚洲自拍偷拍麻豆| caoporn国产一区二区| 久久这里都是精品| 奇米777欧美一区二区| 欧美亚日韩国产aⅴ精品中极品| 国产精品久久一卡二卡| 久久国内精品自在自线400部| 欧美亚男人的天堂| 一区二区三区毛片| 一本一道久久a久久精品综合蜜臀| 国产欧美中文在线| 国产一区二区在线免费观看| 欧美mv日韩mv国产| 日韩av一区二区在线影视| 91成人在线精品| 亚洲精品久久久蜜桃| 99精品桃花视频在线观看| 国产精品三级在线观看| 国产成人综合在线| 久久影院视频免费| 精品一区二区三区久久| 日韩欧美激情四射| 久久国产精品色婷婷| 日韩视频在线永久播放| 麻豆精品在线播放| 日韩美一区二区三区| 奇米四色…亚洲| 欧美电影免费观看高清完整版在线观看 | 麻豆国产精品777777在线| 欧美美女网站色| 日韩电影在线观看网站| 欧美美女网站色| 日韩av中文在线观看| 欧美喷水一区二区| 日韩国产精品久久久| 日韩一区二区三区电影在线观看| 日本怡春院一区二区| 日韩欧美成人午夜| 久久99精品久久久久久久久久久久| 日韩欧美亚洲国产另类 | 久久精品视频在线看| 国产激情一区二区三区| 国产精品美女一区二区三区 | 亚洲另类春色国产| 欧洲视频一区二区| 日韩国产欧美在线播放| 日韩一区二区在线看| 韩国视频一区二区| 国产精品网站在线观看| 色噜噜狠狠色综合中国| 午夜不卡av免费| 日韩美女在线视频| 成人在线综合网站| 亚洲欧美日韩一区| 7878成人国产在线观看| 极品美女销魂一区二区三区免费| 久久久久高清精品| 91污片在线观看| 五月综合激情婷婷六月色窝| 日韩欧美国产一区二区三区| 国产成人午夜精品5599| 亚洲人成在线观看一区二区| 欧美浪妇xxxx高跟鞋交| 国产一区二区伦理| 亚洲免费视频成人| 欧美一级爆毛片| 成人高清av在线| 亚洲一卡二卡三卡四卡无卡久久 | 国产精品综合久久| 国产精品国产三级国产aⅴ入口 | 另类欧美日韩国产在线| 久久精品人人做人人爽97 | 日韩精品一二三区| 国产女同性恋一区二区| 欧美探花视频资源| 国产精品一区二区久久精品爱涩| 亚洲精品中文字幕在线观看| 日韩女同互慰一区二区| 成人avav在线| 蜜桃视频第一区免费观看| 国产精品免费aⅴ片在线观看| 欧美精品一二三四| 国产·精品毛片| 视频一区在线视频| 亚洲欧美一区二区视频| 精品欧美一区二区在线观看| 91天堂素人约啪| 韩国av一区二区三区四区| 一区二区三区欧美日| 久久久久久夜精品精品免费| 欧美日韩午夜影院| av一本久道久久综合久久鬼色| 免费三级欧美电影| 一区二区在线观看视频在线观看| 亚洲精品一区二区三区影院| 欧美亚洲高清一区二区三区不卡| 国产精品99久| 免费观看在线综合| 亚洲一区在线播放| 欧美国产日韩精品免费观看| 日韩欧美国产一区在线观看| 欧美在线不卡视频| 成人av第一页| 国产福利91精品一区二区三区| 日韩黄色片在线观看| 亚洲精品网站在线观看| 国产亚洲欧洲997久久综合| 91精品国产欧美一区二区18| 色素色在线综合| 成人sese在线| 国产乱子轮精品视频| 免费成人av在线播放| 亚洲妇女屁股眼交7| 一区免费观看视频| 国产亚洲精品久| 欧美成人精品福利| 欧美一区二区三区免费在线看| 一本大道av一区二区在线播放| 成人午夜看片网址| 国产精品一色哟哟哟| 黑人巨大精品欧美一区| 蜜桃久久久久久| 免费日韩伦理电影| 琪琪久久久久日韩精品| 天天色综合天天| 亚洲国产另类精品专区| 亚洲综合自拍偷拍| 亚洲精品美腿丝袜| 亚洲视频在线一区| 亚洲人成网站在线| 亚洲天堂精品视频| 国产精品福利影院| 国产精品乱子久久久久| 国产欧美精品在线观看| 久久久www成人免费毛片麻豆| 2021国产精品久久精品| 久久影视一区二区| 精品国产一区二区三区久久久蜜月| 91精品国产欧美一区二区18| 91精品国产一区二区三区| 51精品国自产在线| 日韩一区二区三区电影在线观看 | 免费精品99久久国产综合精品| 日韩精品一卡二卡三卡四卡无卡| 五月天激情综合| 日韩高清不卡在线| 五月天精品一区二区三区| 天天操天天干天天综合网| 日韩精品视频网| 狠狠色丁香婷综合久久| 国产精品一区二区91| 成人a区在线观看| 91热门视频在线观看| 91福利在线看| 91精品国产高清一区二区三区 | 国产精品99久久久久久宅男| 成人中文字幕在线| 91麻豆免费视频| 欧美亚洲一区二区在线| 91精品国产入口|