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

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

?? timeseries.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
     *
     * @return The data item matching the specified period (or 
     *         <code>null</code> if there is no match).
     *
     */
    public TimeSeriesDataItem getDataItem(RegularTimePeriod period) {

        // check arguments...
        if (period == null) {
            throw new IllegalArgumentException("Null 'period' argument");
        }

        // fetch the value...
        TimeSeriesDataItem dummy = new TimeSeriesDataItem(
            period, Integer.MIN_VALUE
        );
        int index = Collections.binarySearch(this.data, dummy);
        if (index >= 0) {
            return (TimeSeriesDataItem) this.data.get(index);
        }
        else {
            return null;
        }

    }

    /**
     * Returns the time period at the specified index.
     *
     * @param index  the index of the data item.
     *
     * @return The time period.
     */
    public RegularTimePeriod getTimePeriod(int index) {
        return getDataItem(index).getPeriod();
    }

    /**
     * Returns a time period that would be the next in sequence on the end of
     * the time series.
     *
     * @return The next time period.
     */
    public RegularTimePeriod getNextTimePeriod() {
        RegularTimePeriod last = getTimePeriod(getItemCount() - 1);
        return last.next();
    }

    /**
     * Returns a collection of all the time periods in the time series.
     *
     * @return A collection of all the time periods.
     */
    public Collection getTimePeriods() {
        Collection result = new java.util.ArrayList();
        for (int i = 0; i < getItemCount(); i++) {
            result.add(getTimePeriod(i));
        }
        return result;
    }

    /**
     * Returns a collection of time periods in the specified series, but not in
     * this series, and therefore unique to the specified series.
     *
     * @param series  the series to check against this one.
     *
     * @return The unique time periods.
     */
    public Collection getTimePeriodsUniqueToOtherSeries(TimeSeries series) {

        Collection result = new java.util.ArrayList();

        for (int i = 0; i < series.getItemCount(); i++) {
            RegularTimePeriod period = series.getTimePeriod(i);
            int index = getIndex(period);
            if (index < 0) {
                result.add(period);
            }

        }

        return result;

    }

    /**
     * Returns the index for the item (if any) that corresponds to a time 
     * period.
     *
     * @param period  the time period (<code>null</code> not permitted).
     *
     * @return The index.
     */
    public int getIndex(RegularTimePeriod period) {

        // check argument...
        if (period == null) {
            throw new IllegalArgumentException("Null 'period' argument.");
        }
        
        // fetch the value...
        TimeSeriesDataItem dummy = new TimeSeriesDataItem(
            period, Integer.MIN_VALUE
        );
        int index = Collections.binarySearch(this.data, dummy);
        return index;

    }

    /**
     * Returns the value at the specified index.
     *
     * @param index  index of a value.
     *
     * @return The value (possibly <code>null</code>).
     */
    public Number getValue(int index) {
        return getDataItem(index).getValue();
    }

    /**
     * Returns the value for a time period.  If there is no data item with the 
     * specified period, this method will return <code>null</code>.
     *
     * @param period  time period (<code>null</code> not permitted).
     *
     * @return The value (possibly <code>null</code>).
     */
    public Number getValue(RegularTimePeriod period) {

        int index = getIndex(period);
        if (index >= 0) {
            return getValue(index);
        }
        else {
            return null;
        }

    }

    /**
     * Adds a data item to the series and sends a 
     * {@link org.jfree.data.general.SeriesChangeEvent} to all registered 
     * listeners.
     *
     * @param item  the (timeperiod, value) pair (<code>null</code> not 
     *              permitted).
     */
    public void add(TimeSeriesDataItem item) {
        add(item, true);
    }
        
    /**
     * Adds a data item to the series and sends a 
     * {@link org.jfree.data.general.SeriesChangeEvent} to all registered 
     * listeners.
     *
     * @param item  the (timeperiod, value) pair (<code>null</code> not 
     *              permitted).
     * @param notify  notify listeners?
     */
    public void add(TimeSeriesDataItem item, boolean notify) {
        if (item == null) {
            throw new IllegalArgumentException("Null 'item' argument.");
        }
        if (!item.getPeriod().getClass().equals(this.timePeriodClass)) {
            StringBuffer b = new StringBuffer();
            b.append("You are trying to add data where the time period class ");
            b.append("is ");
            b.append(item.getPeriod().getClass().getName());
            b.append(", but the TimeSeries is expecting an instance of ");
            b.append(this.timePeriodClass.getName());
            b.append(".");
            throw new SeriesException(b.toString());
        }

        // make the change (if it's not a duplicate time period)...
        boolean added = false;
        int count = getItemCount();
        if (count == 0) {
            this.data.add(item);
            added = true;
        }
        else {
            RegularTimePeriod last = getTimePeriod(getItemCount() - 1);
            if (item.getPeriod().compareTo(last) > 0) {
                this.data.add(item);
                added = true;
            }
            else {
                int index = Collections.binarySearch(this.data, item);
                if (index < 0) {
                    this.data.add(-index - 1, item);
                    added = true;
                }
                else {
                    StringBuffer b = new StringBuffer();
                    b.append("You are attempting to add an observation for ");
                    b.append("the time period ");
                    b.append(item.getPeriod().toString());
                    b.append(" but the series already contains an observation");
                    b.append(" for that time period. Duplicates are not ");
                    b.append("permitted.  Try using the addOrUpdate() method.");
                    throw new SeriesException(b.toString());
                }
            }
        }
        if (added) {
            // check if this addition will exceed the maximum item count...
            if (getItemCount() > this.maximumItemCount) {
                this.data.remove(0);
            }

            removeAgedItems(false);  // remove old items if necessary, but
                                     // don't notify anyone, because that
                                     // happens next anyway...
            if (notify) {
                fireSeriesChanged();
            }
        }

    }

    /**
     * Adds a new data item to the series and sends 
     * a {@link org.jfree.data.general.SeriesChangeEvent} to all registered 
     * listeners.
     *
     * @param period  the time period (<code>null</code> not permitted).
     * @param value  the value.
     */
    public void add(RegularTimePeriod period, double value) {
        // defer argument checking...
        add(period, value, true);
    }

    /**
     * Adds a new data item to the series and sends 
     * a {@link org.jfree.data.general.SeriesChangeEvent} to all registered 
     * listeners.
     *
     * @param period  the time period (<code>null</code> not permitted).
     * @param value  the value.
     * @param notify  notify listeners?
     */
    public void add(RegularTimePeriod period, double value, boolean notify) {
        // defer argument checking...
        TimeSeriesDataItem item = new TimeSeriesDataItem(period, value);
        add(item, notify);
    }

    /**
     * Adds a new data item to the series and sends 
     * a {@link org.jfree.data.general.SeriesChangeEvent} to all registered 
     * listeners.
     *
     * @param period  the time period (<code>null</code> not permitted).
     * @param value  the value (<code>null</code> permitted).
     */
    public void add(RegularTimePeriod period, Number value) {
        // defer argument checking...
        add(period, value, true);
    }

    /**
     * Adds a new data item to the series and sends 
     * a {@link org.jfree.data.general.SeriesChangeEvent} to all registered 
     * listeners.
     *
     * @param period  the time period (<code>null</code> not permitted).
     * @param value  the value (<code>null</code> permitted).
     * @param notify  notify listeners?
     */
    public void add(RegularTimePeriod period, Number value, boolean notify) {
        // defer argument checking...
        TimeSeriesDataItem item = new TimeSeriesDataItem(period, value);
        add(item, notify);
    }

    /**
     * Updates (changes) the value for a time period.  Throws a 
     * {@link SeriesException} if the period does not exist.
     *
     * @param period  the period (<code>null</code> not permitted).
     * @param value  the value (<code>null</code> permitted).
     */
    public void update(RegularTimePeriod period, Number value) {
        TimeSeriesDataItem temp = new TimeSeriesDataItem(period, value);
        int index = Collections.binarySearch(this.data, temp);
        if (index >= 0) {
            TimeSeriesDataItem pair = (TimeSeriesDataItem) this.data.get(index);
            pair.setValue(value);
            fireSeriesChanged();
        }
        else {
            throw new SeriesException(
                "TimeSeries.update(TimePeriod, Number):  period does not exist."
            );
        }

    }

    /**
     * Updates (changes) the value of a data item.
     *
     * @param index  the index of the data item.
     * @param value  the new value (<code>null</code> permitted).
     */
    public void update(int index, Number value) {
        TimeSeriesDataItem item = getDataItem(index);
        item.setValue(value);
        fireSeriesChanged();
    }

    /**
     * Adds or updates data from one series to another.  Returns another series
     * containing the values that were overwritten.
     *
     * @param series  the series to merge with this.
     *
     * @return A series containing the values that were overwritten.
     */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品欧美一区二区三区综合在 | 精品捆绑美女sm三区| 日韩亚洲欧美在线观看| 久久99久久精品| 久久一区二区三区四区| 粉嫩在线一区二区三区视频| 国产亲近乱来精品视频| 99精品1区2区| 日日夜夜一区二区| xnxx国产精品| www.久久久久久久久| 亚洲小说春色综合另类电影| 4438x亚洲最大成人网| 国精产品一区一区三区mba视频| 日本一区二区视频在线| 欧美性大战久久| 久久99日本精品| 亚洲欧洲性图库| 欧美一卡2卡三卡4卡5免费| 国产成人av电影| 亚洲国产综合视频在线观看| 日韩欧美国产小视频| 成人免费毛片app| 日韩高清国产一区在线| 国产欧美精品一区二区色综合| 在线看一区二区| 黄页视频在线91| 亚洲一卡二卡三卡四卡五卡| 亚洲精品在线观看网站| 欧洲日韩一区二区三区| 国产精品一区二区三区99 | 亚洲国产毛片aaaaa无费看 | 捆绑紧缚一区二区三区视频| 中文字幕中文乱码欧美一区二区| 91精品在线观看入口| 成年人国产精品| 美脚の诱脚舐め脚责91| 中文字幕色av一区二区三区| 日韩欧美国产精品| 欧美日韩日日骚| 成人福利视频网站| 激情成人午夜视频| 午夜成人在线视频| 亚洲靠逼com| 国产精品私人自拍| 久久久亚洲高清| 欧美一区二区三区喷汁尤物| 91麻豆免费看片| 国产成人激情av| 久久99精品一区二区三区三区| 亚洲一区二区三区影院| 国产精品美女久久久久久久久久久| 91精品国产色综合久久不卡电影 | 国产午夜精品美女毛片视频| 欧美疯狂做受xxxx富婆| 在线一区二区三区| 99视频超级精品| 成人午夜电影小说| 成人小视频免费观看| 韩国av一区二区| 久久国产精品免费| 美腿丝袜亚洲色图| 裸体一区二区三区| 丝袜亚洲精品中文字幕一区| 伊人一区二区三区| 亚洲精品视频观看| 中文字幕一区二区视频| 国产精品美女一区二区| 国产精品久久久久久久久果冻传媒 | 欧美激情一区二区三区在线| 欧美va亚洲va| 精品国产一区二区亚洲人成毛片 | 国产成人精品一区二| 国产一区二区看久久| 国产精品白丝av| 国产 日韩 欧美大片| 国产成人午夜电影网| 国产成人自拍高清视频在线免费播放| 黄一区二区三区| 国产99精品视频| 高清国产一区二区| aa级大片欧美| 欧美影视一区在线| 欧美一三区三区四区免费在线看| 欧美一区二区三区影视| www精品美女久久久tv| 国产午夜精品一区二区三区四区| 中文字幕巨乱亚洲| 亚洲久草在线视频| 亚洲成人综合在线| 美国av一区二区| 国产精品一区二区x88av| 成人午夜激情视频| 欧美性大战久久久久久久蜜臀| 在线91免费看| 久久久久97国产精华液好用吗| 国产欧美精品一区| 又紧又大又爽精品一区二区| 日韩av午夜在线观看| 国产一区二区三区四| 97国产精品videossex| 精品视频资源站| 久久综合99re88久久爱| 自拍视频在线观看一区二区| 日韩高清电影一区| 韩国一区二区三区| 91美女在线看| 欧美一级视频精品观看| 国产精品久久久久久久久快鸭| 亚洲国产乱码最新视频 | 国产一区二区在线影院| 91网页版在线| 日韩一区二区三区电影在线观看| 亚洲国产精品ⅴa在线观看| 亚洲国产日韩综合久久精品| 国产成人日日夜夜| 欧美老女人第四色| 国产精品女人毛片| 开心九九激情九九欧美日韩精美视频电影 | 一本色道综合亚洲| 精品国产乱码久久久久久蜜臀| 亚洲精品一二三| 久久精品72免费观看| 91免费国产在线观看| 精品久久久久av影院| 一区二区在线电影| 国产91高潮流白浆在线麻豆| 欧美日本一区二区在线观看| 国产精品久久久久影院老司| 美女网站一区二区| 在线视频一区二区三区| 久久久五月婷婷| 日本亚洲电影天堂| 日本乱人伦一区| 国产精品你懂的在线| 国产一区二区免费在线| 91精品婷婷国产综合久久竹菊| 樱桃视频在线观看一区| 成人免费不卡视频| www欧美成人18+| 久久国产精品免费| 日韩一区二区精品在线观看| 一区二区三区小说| 91免费视频网| 1区2区3区欧美| 成人精品视频一区二区三区| 精品国产99国产精品| 日韩国产在线观看| 欧美日韩不卡一区二区| 有码一区二区三区| 91麻豆精东视频| 中文字幕一区二区三区不卡 | 一区二区成人在线| 99久免费精品视频在线观看| 国产日韩av一区二区| 国产麻豆91精品| 精品久久久久久亚洲综合网| 男男gaygay亚洲| 欧美一区二区三区在线观看视频 | 国产一区二区三区观看| 日韩欧美高清在线| 久久精品国产999大香线蕉| 欧美一区二区三区视频免费| 日韩成人一级大片| 日韩精品在线一区| 国产在线精品不卡| 久久精品日韩一区二区三区| 国产电影一区在线| 国产精品久久福利| 色系网站成人免费| 亚洲一区在线电影| 欧美日韩视频在线第一区 | 亚洲va韩国va欧美va| 91精品国产综合久久福利| 蜜桃视频一区二区三区| 久久亚洲影视婷婷| 国产成人免费视频网站高清观看视频| 国产日韩欧美精品综合| 成年人国产精品| 亚洲精品成a人| 91精品久久久久久蜜臀| 国产资源在线一区| 综合色中文字幕| 在线视频一区二区三| 奇米精品一区二区三区在线观看一 | 精品国产三级a在线观看| 国产精品 日产精品 欧美精品| 国产精品久久久久久久裸模| 色婷婷综合久色| 日本免费新一区视频| 亚洲精品在线三区| 97精品久久久午夜一区二区三区 | 亚洲男人都懂的| 欧美老女人在线| 国产精品99久久久久久似苏梦涵| 欧美国产日本韩| 欧美四级电影网| 国产丶欧美丶日本不卡视频| 亚洲婷婷综合久久一本伊一区| 欧美欧美午夜aⅴ在线观看|