亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美一二区视频| 亚洲gay无套男同| 亚洲资源中文字幕| 精彩视频一区二区三区| 色伊人久久综合中文字幕| 2021中文字幕一区亚洲| 亚洲不卡一区二区三区| 成人性生交大片免费看在线播放 | 一区二区高清视频在线观看| 蜜臀av一区二区在线观看| 91麻豆国产自产在线观看| 国产亚洲欧美色| 美女视频黄 久久| 欧美日韩午夜精品| 亚洲三级免费电影| 成人综合婷婷国产精品久久| 精品国产露脸精彩对白| 奇米亚洲午夜久久精品| 欧美久久免费观看| 成人免费小视频| 99久久国产免费看| 国产精品―色哟哟| 国产综合久久久久久鬼色| 日韩一区二区三区高清免费看看| 亚洲精品国产精华液| 97久久久精品综合88久久| 中文字幕+乱码+中文字幕一区| 蜜桃视频一区二区三区在线观看| 欧美日韩国产不卡| 午夜国产不卡在线观看视频| 欧美日韩国产a| 日韩精品亚洲专区| 91.com视频| 青娱乐精品视频| 精品人伦一区二区色婷婷| 玖玖九九国产精品| 久久影音资源网| 国产精品一级二级三级| 日本一区二区三区在线观看| 粉嫩av一区二区三区| 中文字幕一区二区三区色视频| 不卡av在线网| 亚洲综合一区二区| 欧美日韩国产小视频| 日韩精品午夜视频| 欧美精品一区二区久久久| 国产在线日韩欧美| 国产精品传媒视频| 欧美日韩在线播放| 美女网站在线免费欧美精品| 久久精品网站免费观看| 99久久伊人久久99| 亚洲一二三区不卡| 精品美女一区二区| 99热在这里有精品免费| 夜夜亚洲天天久久| 日韩欧美www| 成人av资源在线| 亚洲国产成人91porn| 精品剧情v国产在线观看在线| 国产伦精品一区二区三区免费迷 | 香蕉加勒比综合久久| 欧美一级日韩免费不卡| 国产酒店精品激情| 亚洲精品成人少妇| 日韩欧美一级二级| 99国产精品国产精品久久| 亚洲国产日韩在线一区模特 | 99视频一区二区三区| 亚洲国产一区视频| 久久久精品免费网站| 91高清视频在线| 国产美女娇喘av呻吟久久| 亚洲精品欧美在线| 久久亚洲综合av| 欧美日韩精品三区| 成人免费高清在线| 裸体健美xxxx欧美裸体表演| 国产精品久久久久久久第一福利| 欧美在线观看视频一区二区 | 91日韩精品一区| 日韩中文字幕亚洲一区二区va在线| 国产天堂亚洲国产碰碰| 91精品福利在线一区二区三区| 国产精华液一区二区三区| 亚洲成av人在线观看| 欧美激情在线一区二区| 欧美一卡二卡在线| 欧美色成人综合| 成人app下载| 国产精品一区二区免费不卡| 婷婷丁香久久五月婷婷| 亚洲三级免费电影| 国产精品久久久久久久久果冻传媒 | 91精品婷婷国产综合久久 | 亚洲色图丝袜美腿| 久久青草国产手机看片福利盒子 | 天天影视色香欲综合网老头| 国产精品网站一区| 欧美不卡123| 欧美一区二区三区免费| 777奇米四色成人影色区| 色老头久久综合| 91丨porny丨国产入口| 国产精品综合久久| 精品一区二区精品| 免费人成网站在线观看欧美高清| 亚洲国产成人tv| 一区二区三区在线观看视频| 国产精品国产三级国产普通话三级| 久久网站最新地址| 精品第一国产综合精品aⅴ| 日韩欧美国产高清| 欧美一区二区三区免费| 日韩一区二区三区精品视频| 91精品国产综合久久国产大片| 欧美日韩一区二区三区视频| 在线观看日韩一区| 欧美性色黄大片| 制服丝袜中文字幕亚洲| 欧美精品日韩一本| 欧美一区二区视频在线观看 | 亚洲欧美在线观看| 亚洲欧洲av一区二区三区久久| 国产精品传媒在线| 亚洲精品国产品国语在线app| 亚洲一卡二卡三卡四卡无卡久久| 亚洲一级二级在线| 麻豆精品国产传媒mv男同| 秋霞成人午夜伦在线观看| 激情综合网最新| 成人午夜碰碰视频| 在线观看视频91| 日韩女优电影在线观看| 久久精品男人天堂av| 国产精品免费久久| ...xxx性欧美| 亚洲成人综合在线| 久久超级碰视频| 国产成人午夜精品影院观看视频| 国产成人精品亚洲777人妖| 不卡av电影在线播放| 欧洲一区二区三区免费视频| 777精品伊人久久久久大香线蕉| 欧美va亚洲va| 自拍视频在线观看一区二区| 亚洲一区成人在线| 国产一区二区三区高清播放| 色综合天天视频在线观看| 日韩一区国产二区欧美三区| 欧美经典一区二区三区| 亚洲综合清纯丝袜自拍| 国产一区二区在线免费观看| 97精品久久久午夜一区二区三区 | 日本丶国产丶欧美色综合| 在线视频国内一区二区| 日韩视频免费观看高清完整版在线观看 | 久久精品国内一区二区三区| 国产黄色91视频| 欧美精品视频www在线观看| 国产日韩欧美制服另类| 亚洲国产欧美日韩另类综合| 国产精品自拍网站| 欧美嫩在线观看| 国产精品久久久久久久久久免费看| 日日夜夜一区二区| 91日韩精品一区| 国产视频视频一区| 免费在线观看一区| 91麻豆swag| 日本一区二区久久| 国产制服丝袜一区| 欧美精品久久久久久久多人混战| 国产精品久久久久久福利一牛影视| 日韩avvvv在线播放| 一本到一区二区三区| 国产欧美日韩一区二区三区在线观看| 午夜欧美视频在线观看| 92国产精品观看| 亚洲国产精品黑人久久久| 免费人成精品欧美精品| 色一区在线观看| 椎名由奈av一区二区三区| 国产美女一区二区| 久久综合狠狠综合久久综合88| 日韩精品免费专区| 欧美日韩亚洲综合| 亚洲国产精品一区二区尤物区| av日韩在线网站| 中文字幕欧美国产| 风间由美性色一区二区三区| 精品国产在天天线2019| 另类的小说在线视频另类成人小视频在线 | 日韩欧美色综合网站| 日本女优在线视频一区二区| 欧美在线观看18| 亚洲影院在线观看| 91福利精品视频| 亚洲国产乱码最新视频| 欧美性感一区二区三区|