亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产精品一区久久久久| 国产超碰在线一区| 国产成人午夜99999| 欧美体内she精视频| 久久久一区二区三区捆绑**| 亚洲一区二区视频| 国产成人免费视| 欧美一级一区二区| 亚洲伦在线观看| 国产精品自产自拍| 欧美一级电影网站| 一区二区三区波多野结衣在线观看| 精品无人区卡一卡二卡三乱码免费卡| 色婷婷综合久色| 欧美激情自拍偷拍| 国产精品一级黄| 精品国产免费一区二区三区香蕉| 亚洲一区二区三区三| 91视频在线看| 亚洲私人影院在线观看| av中文字幕在线不卡| 久久久久国产精品厨房| 国产在线精品一区二区三区不卡| 欧美军同video69gay| 亚洲一线二线三线视频| 91在线观看高清| 亚洲人123区| 91九色最新地址| 亚洲精品国产一区二区三区四区在线| 成人蜜臀av电影| 中文字幕综合网| 99riav久久精品riav| 中文字幕在线观看不卡| 粉嫩av一区二区三区粉嫩| 中文在线免费一区三区高中清不卡| 国产精品影音先锋| 国产欧美久久久精品影院| 国产精品综合视频| 国产精品国产成人国产三级 | 在线观看日韩av先锋影音电影院| 国产精品美女久久久久av爽李琼| 成人深夜福利app| 国产精品欧美经典| 92精品国产成人观看免费 | 欧美成人一区二区三区片免费 | 国产99久久久国产精品潘金网站| 欧美不卡一区二区| 国产久卡久卡久卡久卡视频精品| 久久久久国产精品免费免费搜索| 成人福利视频在线| 一个色妞综合视频在线观看| 欧美午夜免费电影| 久久99精品国产91久久来源| 国产欧美一区在线| 欧美羞羞免费网站| 欧美aⅴ一区二区三区视频| 精品国产在天天线2019| 成人激情午夜影院| 亚洲一区二区综合| 精品国产一区二区三区忘忧草 | 国产精品久久久久一区| 在线观看国产日韩| 老司机精品视频导航| 亚洲欧美在线高清| 91精品啪在线观看国产60岁| 丁香婷婷综合五月| 亚洲第一福利一区| 久久久激情视频| 欧美日韩另类一区| 高清日韩电视剧大全免费| 亚洲精品视频在线观看网站| 日韩午夜激情免费电影| eeuss鲁一区二区三区| 日日噜噜夜夜狠狠视频欧美人| 欧美精品一区男女天堂| 91久久香蕉国产日韩欧美9色| 美腿丝袜亚洲一区| 亚洲精品国产a久久久久久| 精品精品国产高清a毛片牛牛| 91丨九色丨国产丨porny| 久久成人综合网| 一区二区三区不卡视频在线观看| 久久一留热品黄| 欧美精品高清视频| 99v久久综合狠狠综合久久| 久久不见久久见免费视频1| 亚洲国产色一区| 中文字幕在线不卡一区二区三区| 日韩美女一区二区三区四区| 在线观看91视频| bt欧美亚洲午夜电影天堂| 国产资源在线一区| 亚洲一区二区在线视频| 中文字幕日韩精品一区| 久久久精品影视| 日韩免费性生活视频播放| 91日韩精品一区| 成人做爰69片免费看网站| 韩国成人精品a∨在线观看| 日韩成人一级片| 天堂蜜桃一区二区三区 | 韩国午夜理伦三级不卡影院| 欧美性极品少妇| 国产一区中文字幕| 精品va天堂亚洲国产| 丁香婷婷综合网| 欧美一区二区性放荡片| 另类小说视频一区二区| 亚洲第一成年网| 一区二区三区欧美亚洲| 国产精品国产三级国产专播品爱网 | 丁香婷婷深情五月亚洲| 精彩视频一区二区| 另类欧美日韩国产在线| 狠狠色狠狠色综合日日91app| 男人的天堂亚洲一区| 免费成人深夜小野草| 日韩av二区在线播放| 青青国产91久久久久久| 日韩中文字幕av电影| 日本中文字幕不卡| 久久国产生活片100| 国产一区二区三区最好精华液 | 蜜臀av性久久久久蜜臀aⅴ| 国产精品国产自产拍高清av王其| 国产精品萝li| 亚洲丝袜精品丝袜在线| 亚洲人成亚洲人成在线观看图片 | 久久99九九99精品| 国产一区二区三区不卡在线观看 | 国产99一区视频免费 | 国产精品一区一区三区| 国产999精品久久久久久绿帽| 成人黄色软件下载| 色综合久久久久| 欧美精品日日鲁夜夜添| 日韩久久精品一区| 国产精品久久久久久久浪潮网站| 亚洲视频一区二区在线观看| 亚洲综合免费观看高清完整版| 亚洲国产三级在线| 国产一区中文字幕| 日本韩国精品在线| 日韩欧美一二区| 国产精品免费视频网站| 亚洲一区欧美一区| 国产麻豆视频精品| 欧美日韩中文精品| 久久久国产综合精品女国产盗摄| 国产精品久久久久aaaa| 天天综合天天综合色| 国产成人免费视频| 欧美亚洲国产一区在线观看网站| 精品黑人一区二区三区久久| 亚洲色图19p| 免费观看在线综合色| 97se亚洲国产综合自在线| 正在播放亚洲一区| 欧美国产成人在线| 美女网站在线免费欧美精品| 99精品国产99久久久久久白柏 | 综合精品久久久| 日韩成人免费电影| 一本大道久久a久久综合婷婷| 日韩视频在线一区二区| 亚洲人一二三区| 国产尤物一区二区在线| 3d动漫精品啪啪1区2区免费 | 中文字幕不卡的av| 美脚の诱脚舐め脚责91| 欧美亚洲一区二区在线观看| 中国av一区二区三区| 另类调教123区| 在线播放日韩导航| 亚洲激情五月婷婷| 成人午夜av电影| 精品日韩在线观看| 性久久久久久久久久久久| 99精品视频在线免费观看| 精品国产一区二区精华| 日本视频免费一区| 91麻豆免费观看| 国产欧美精品在线观看| 国产永久精品大片wwwapp| 91精品国模一区二区三区| 亚洲一二三专区| 色婷婷综合久久久久中文| 国产精品美女久久久久久2018| 国产综合一区二区| 精品av综合导航| 久久99久久99| 欧美精品一区二| 精品亚洲国产成人av制服丝袜| 日韩精品一区二区三区四区视频| 亚洲6080在线| 91精品国产福利| 日韩黄色免费网站| 欧美一卡二卡在线观看| 免费观看成人鲁鲁鲁鲁鲁视频| 91麻豆精品国产91久久久|