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

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

?? timeseriescollection.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.]
 *
 * -------------------------
 * TimeSeriesCollection.java
 * -------------------------
 * (C) Copyright 2001-2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: TimeSeriesCollection.java,v 1.10.2.2 2005/12/13 17:55:06 mungady Exp $
 *
 * Changes
 * -------
 * 11-Oct-2001 : Version 1 (DG);
 * 18-Oct-2001 : Added implementation of IntervalXYDataSource so that bar plots
 *               (using numerical axes) can be plotted from time series 
 *               data (DG);
 * 22-Oct-2001 : Renamed DataSource.java --> Dataset.java etc. (DG);
 * 15-Nov-2001 : Added getSeries() method.  Changed name from TimeSeriesDataset
 *               to TimeSeriesCollection (DG);
 * 07-Dec-2001 : TimeSeries --> BasicTimeSeries (DG);
 * 01-Mar-2002 : Added a time zone offset attribute, to enable fast calculation
 *               of the time period start and end values (DG);
 * 29-Mar-2002 : The collection now registers itself with all the time series 
 *               objects as a SeriesChangeListener.  Removed redundant 
 *               calculateZoneOffset method (DG);
 * 06-Jun-2002 : Added a setting to control whether the x-value supplied in the
 *               getXValue() method comes from the START, MIDDLE, or END of the
 *               time period.  This is a workaround for JFreeChart, where the 
 *               current date axis always labels the start of a time 
 *               period (DG);
 * 24-Jun-2002 : Removed unnecessary import (DG);
 * 24-Aug-2002 : Implemented DomainInfo interface, and added the 
 *               DomainIsPointsInTime flag (DG);
 * 07-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 * 16-Oct-2002 : Added remove methods (DG);
 * 10-Jan-2003 : Changed method names in RegularTimePeriod class (DG);
 * 13-Mar-2003 : Moved to com.jrefinery.data.time package and implemented 
 *               Serializable (DG);
 * 04-Sep-2003 : Added getSeries(String) method (DG);
 * 15-Sep-2003 : Added a removeAllSeries() method to match 
 *               XYSeriesCollection (DG);
 * 05-May-2004 : Now extends AbstractIntervalXYDataset (DG);
 * 15-Jul-2004 : Switched getX() with getXValue() and getY() with 
 *               getYValue() (DG);
 * 06-Oct-2004 : Updated for changed in DomainInfo interface (DG);
 * 11-Jan-2005 : Removed deprecated code in preparation for the 1.0.0 
 *               release (DG);
 * 28-Mar-2005 : Fixed bug in getSeries(int) method (1170825) (DG);
 * ------------- JFREECHART 1.0.0 ---------------------------------------------
 * 13-Dec-2005 : Deprecated the 'domainIsPointsInTime' flag as it is 
 *               redundant.  Fixes bug 1243050 (DG);
 */

package org.jfree.data.time;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.TimeZone;

import org.jfree.data.DomainInfo;
import org.jfree.data.Range;
import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.data.xy.AbstractIntervalXYDataset;
import org.jfree.data.xy.IntervalXYDataset;
import org.jfree.data.xy.XYDataset;
import org.jfree.util.ObjectUtilities;

/**
 * A collection of time series objects.  This class implements the 
 * {@link org.jfree.data.xy.XYDataset} interface, as well as the extended 
 * {@link IntervalXYDataset} interface.  This makes it a convenient dataset for
 * use with the {@link org.jfree.chart.plot.XYPlot} class.
 */
public class TimeSeriesCollection extends AbstractIntervalXYDataset
                                  implements XYDataset,
                                             IntervalXYDataset,
                                             DomainInfo,
                                             Serializable {

    /** For serialization. */
    private static final long serialVersionUID = 834149929022371137L;
    
    /** Storage for the time series. */
    private List data;

    /** A working calendar (to recycle) */
    private Calendar workingCalendar;
    
    /** 
     * The point within each time period that is used for the X value when this
     * collection is used as an {@link org.jfree.data.xy.XYDataset}.  This can 
     * be the start, middle or end of the time period.   
     */
    private TimePeriodAnchor xPosition;

    /**
     * A flag that indicates that the domain is 'points in time'.  If this
     * flag is true, only the x-value is used to determine the range of values
     * in the domain, the start and end x-values are ignored.
     * 
     * @deprecated No longer used (as of 1.0.1).
     */
    private boolean domainIsPointsInTime;

    /**
     * Constructs an empty dataset, tied to the default timezone.
     */
    public TimeSeriesCollection() {
        this(null, TimeZone.getDefault());
    }

    /**
     * Constructs an empty dataset, tied to a specific timezone.
     *
     * @param zone  the timezone (<code>null</code> permitted, will use 
     *              <code>TimeZone.getDefault()</code> in that case).
     */
    public TimeSeriesCollection(TimeZone zone) {
        this(null, zone);
    }

    /**
     * Constructs a dataset containing a single series (more can be added),
     * tied to the default timezone.
     *
     * @param series the series (<code>null</code> permitted).
     */
    public TimeSeriesCollection(TimeSeries series) {
        this(series, TimeZone.getDefault());
    }

    /**
     * Constructs a dataset containing a single series (more can be added),
     * tied to a specific timezone.
     *
     * @param series  a series to add to the collection (<code>null</code> 
     *                permitted).
     * @param zone  the timezone (<code>null</code> permitted, will use 
     *              <code>TimeZone.getDefault()</code> in that case).
     */
    public TimeSeriesCollection(TimeSeries series, TimeZone zone) {

        if (zone == null) {
            zone = TimeZone.getDefault();
        }
        this.workingCalendar = Calendar.getInstance(zone);
        this.data = new ArrayList();
        if (series != null) {
            this.data.add(series);
            series.addChangeListener(this);
        }
        this.xPosition = TimePeriodAnchor.START;
        this.domainIsPointsInTime = true;

    }
    
    /**
     * Returns a flag that controls whether the domain is treated as 'points in
     * time'.  This flag is used when determining the max and min values for 
     * the domain.  If <code>true</code>, then only the x-values are considered
     * for the max and min values.  If <code>false</code>, then the start and
     * end x-values will also be taken into consideration.
     *
     * @return The flag.
     * 
     * @deprecated This flag is no longer used (as of 1.0.1).
     */
    public boolean getDomainIsPointsInTime() {
        return this.domainIsPointsInTime;
    }

    /**
     * Sets a flag that controls whether the domain is treated as 'points in 
     * time', or time periods.
     *
     * @param flag  the flag.
     * 
     * @deprecated This flag is no longer used, as of 1.0.1.  The 
     *             <code>includeInterval</code> flag in methods such as 
     *             {@link #getDomainBounds(boolean)} makes this unnecessary.
     */
    public void setDomainIsPointsInTime(boolean flag) {
        this.domainIsPointsInTime = flag;
        notifyListeners(new DatasetChangeEvent(this, this));    
    }
    
    /**
     * Returns the position within each time period that is used for the X 
     * value when the collection is used as an 
     * {@link org.jfree.data.xy.XYDataset}.
     * 
     * @return The anchor position (never <code>null</code>).
     */
    public TimePeriodAnchor getXPosition() {
        return this.xPosition;
    }

    /**
     * Sets the position within each time period that is used for the X values 
     * when the collection is used as an {@link XYDataset}, then sends a 
     * {@link DatasetChangeEvent} is sent to all registered listeners.
     * 
     * @param anchor  the anchor position (<code>null</code> not permitted).
     */
    public void setXPosition(TimePeriodAnchor anchor) {
        if (anchor == null) {
            throw new IllegalArgumentException("Null 'anchor' argument.");
        }
        this.xPosition = anchor;
        notifyListeners(new DatasetChangeEvent(this, this));    
    }
    
    /**
     * Returns a list of all the series in the collection.  
     * 
     * @return The list (which is unmodifiable).
     */
    public List getSeries() {
        return Collections.unmodifiableList(this.data);
    }

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

    /**
     * Returns a series.
     *
     * @param series  the index of the series (zero-based).
     *
     * @return The series.
     */
    public TimeSeries getSeries(int series) {
        if ((series < 0) || (series >= getSeriesCount())) {
            throw new IllegalArgumentException(
                "The 'series' argument is out of bounds (" + series + ").");
        }
        return (TimeSeries) this.data.get(series);
    }
    
    /**
     * Returns the series with the specified key, or <code>null</code> if 
     * there is no such series.
     * 
     * @param key  the series key (<code>null</code> permitted).
     * 
     * @return The series with the given key.
     */
    public TimeSeries getSeries(String key) {
        TimeSeries result = null;
        Iterator iterator = this.data.iterator();
        while (iterator.hasNext()) {
            TimeSeries series = (TimeSeries) iterator.next();
            Comparable k = series.getKey();
            if (k != null && k.equals(key)) {
                result = series;
            }
        }
        return result;   
    }

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

    /**
     * Adds a series to the collection and sends a {@link DatasetChangeEvent} to
     * all registered listeners.
     *
     * @param series  the series (<code>null</code> not permitted).
     */
    public void addSeries(TimeSeries series) {
        if (series == null) {
            throw new IllegalArgumentException("Null 'series' argument.");
        }
        this.data.add(series);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲精品福利| 在线观看亚洲精品| 麻豆精品在线播放| 免费一级欧美片在线观看| 美洲天堂一区二卡三卡四卡视频| 亚洲国产成人va在线观看天堂| 一区二区三区欧美视频| 亚洲另类春色国产| 蜜桃视频免费观看一区| 国产一区二区三区不卡在线观看| 国产乱子伦视频一区二区三区| 成人午夜看片网址| 欧美日韩在线三区| 精品国产乱码久久久久久免费| 国产三级精品视频| 亚洲成av人片| 不卡的电视剧免费网站有什么| 日韩欧美在线一区二区三区| 亚洲欧美日韩电影| 色婷婷综合久色| 精品久久免费看| 中文字幕在线观看一区| 美女视频黄 久久| 欧美中文字幕一区| 亚洲品质自拍视频| 成人影视亚洲图片在线| 欧美成人一区二区三区在线观看| 亚洲欧美另类在线| 91日韩精品一区| 国产精品久久久爽爽爽麻豆色哟哟| 日韩黄色片在线观看| 欧美高清视频一二三区| 精品夜夜嗨av一区二区三区| 国产一区在线看| 91精品国产欧美一区二区18| 国产精品嫩草99a| 寂寞少妇一区二区三区| 久久综合资源网| 琪琪久久久久日韩精品| 欧美无砖专区一中文字| 亚洲一区二区三区四区五区中文| 欧美在线一区二区三区| 日本女人一区二区三区| 337p日本欧洲亚洲大胆色噜噜| 狠狠色综合日日| 亚洲男同性恋视频| 欧美一区二区观看视频| 国精产品一区一区三区mba桃花| 国产欧美一区二区精品婷婷| 粉嫩aⅴ一区二区三区四区五区| 国产精品久久久久久久久久久免费看| 国产丶欧美丶日本不卡视频| 日韩毛片在线免费观看| 欧美精选在线播放| 懂色av中文字幕一区二区三区| 亚洲综合视频在线观看| 精品少妇一区二区三区日产乱码| 国产麻豆精品theporn| 丝袜诱惑制服诱惑色一区在线观看 | 日韩精品福利网| 久久免费的精品国产v∧| 欧美在线你懂得| av一区二区三区在线| 精品一区二区三区免费视频| 欧美精品一区男女天堂| 成人午夜视频在线观看| 毛片不卡一区二区| 亚洲精品水蜜桃| 亚洲欧美一区二区视频| 精品久久久网站| 欧美精品一二三| 色婷婷综合五月| 99在线视频精品| 成人av电影免费观看| 国产一区二区三区在线看麻豆| 亚洲午夜免费视频| 一区二区不卡在线播放| 亚洲色图一区二区| 综合激情成人伊人| 一区二区三区在线看| 中文字幕亚洲欧美在线不卡| 久久精品水蜜桃av综合天堂| 欧美一个色资源| 精品国产一区二区国模嫣然| 日韩美女主播在线视频一区二区三区| 欧美人牲a欧美精品| 91精品国产综合久久精品图片 | 国产精品系列在线| 国产精品卡一卡二| 亚洲黄色免费网站| 日韩成人一级大片| 国产91富婆露脸刺激对白| www.性欧美| 91精品国产91综合久久蜜臀| 欧美日韩精品专区| 国产精品私房写真福利视频| 亚洲色欲色欲www| 免费成人在线观看视频| 成人h动漫精品一区二| 欧美三区免费完整视频在线观看| 日韩欧美黄色影院| 亚洲天天做日日做天天谢日日欢| ...xxx性欧美| 国产精品亚洲视频| 欧美日韩一区成人| 中文字幕不卡的av| 蜜桃av噜噜一区| 精品视频免费在线| 国产精品久久久久久久久图文区| 亚洲成人免费电影| 99国产一区二区三精品乱码| 欧美成人bangbros| 日本不卡免费在线视频| 色一情一乱一乱一91av| 欧美国产在线观看| 国内一区二区视频| 26uuu国产电影一区二区| 五月激情六月综合| 欧美日韩精品一区二区在线播放| 国产精品乱码一区二区三区软件| 麻豆精品视频在线观看| 欧美一级精品在线| 三级在线观看一区二区| 欧美日韩一区视频| 日韩影院免费视频| 91精品国产综合久久精品| 日日骚欧美日韩| 亚洲精品一区二区三区香蕉| 久久99精品国产| 国产人成亚洲第一网站在线播放 | 色网综合在线观看| 一区二区三区欧美视频| 欧美日韩一区二区三区视频| 亚洲v中文字幕| 91精品国产综合久久婷婷香蕉 | 日韩一区二区三区在线观看| 精品在线一区二区三区| 国产精品欧美久久久久无广告| 成人激情动漫在线观看| 一区二区三区在线播放| 在线观看国产91| 久久国产三级精品| 中文字幕欧美一| 51精品国自产在线| 色婷婷综合久久久中文一区二区| 亚洲精品欧美激情| 精品国产一区二区三区久久影院 | 欧美变态凌虐bdsm| 91视视频在线观看入口直接观看www| 亚洲一区二区黄色| 久久精品人人爽人人爽| 欧美色区777第一页| 99r精品视频| 国产福利一区二区| 久久精品av麻豆的观看方式| 中文字幕字幕中文在线中不卡视频| 日韩一区二区在线看| 色哦色哦哦色天天综合| 国产福利电影一区二区三区| 午夜电影久久久| 一区二区免费视频| 亚洲乱码国产乱码精品精的特点 | 国产剧情一区二区| 九色综合国产一区二区三区| 亚洲线精品一区二区三区八戒| 国产精品久久久久aaaa樱花 | 偷窥国产亚洲免费视频| 亚洲一区二区三区影院| 曰韩精品一区二区| 亚洲综合免费观看高清在线观看 | 国产成人av影院| 成人不卡免费av| 国产精品一区一区三区| 国产真实精品久久二三区| 麻豆91小视频| 国产经典欧美精品| 不卡大黄网站免费看| 色综合中文字幕国产 | 亚洲精品欧美综合四区| 丝袜美腿成人在线| 韩国女主播成人在线观看| 国产一区欧美一区| 成人免费不卡视频| 欧美午夜精品免费| 精品88久久久久88久久久| 久久精子c满五个校花| 国产精品久久久久久久久免费樱桃 | 精品国产网站在线观看| 亚洲色图色小说| 蜜臀a∨国产成人精品| 成人一级黄色片| 欧美一区午夜精品| 亚洲视频一区二区在线观看| 性久久久久久久久| 成人va在线观看| 久久久久久黄色| 亚洲第一成人在线| 波多野结衣一区二区三区 | 亚洲成a天堂v人片| eeuss国产一区二区三区|