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

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

?? timeseriescollection.java

?? jfreechart1.0.1 jsp繪制圖表的開發(fā)包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
        series.addChangeListener(this);
        fireDatasetChanged();
    }

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

    /**
     * Removes a series from the collection.
     *
     * @param index  the series index (zero-based).
     */
    public void removeSeries(int index) {
        TimeSeries series = getSeries(index);
        if (series != null) {
            removeSeries(series);
        }
    }

    /**
     * Removes all the series from the collection and sends a 
     * {@link DatasetChangeEvent} to all registered listeners.
     */
    public void removeAllSeries() {

        // deregister the collection as a change listener to each series in the
        // collection
        for (int i = 0; i < this.data.size(); i++) {
            TimeSeries series = (TimeSeries) this.data.get(i);
            series.removeChangeListener(this);
        }

        // remove all the series from the collection and notify listeners.
        this.data.clear();
        fireDatasetChanged();

    }

    /**
     * Returns the number of items in the specified series.  This method is 
     * provided for convenience.
     *
     * @param series  the series index (zero-based).
     *
     * @return The item count.
     */
    public int getItemCount(int series) {
        return getSeries(series).getItemCount();
    }
    
    /**
     * Returns the x-value (as a double primitive) for an item within a series.
     * 
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     * 
     * @return The x-value.
     */
    public double getXValue(int series, int item) {
        TimeSeries s = (TimeSeries) this.data.get(series);
        TimeSeriesDataItem i = s.getDataItem(item);
        RegularTimePeriod period = i.getPeriod();
        return getX(period);
    }

    /**
     * Returns the x-value for the specified series and item.
     *
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     *
     * @return The value.
     */
    public Number getX(int series, int item) {
        TimeSeries ts = (TimeSeries) this.data.get(series);
        TimeSeriesDataItem dp = ts.getDataItem(item);
        RegularTimePeriod period = dp.getPeriod();
        return new Long(getX(period));
    }
    
    /**
     * Returns the x-value for a time period.
     *
     * @param period  the time period.
     *
     * @return The x-value.
     */
    protected synchronized long getX(RegularTimePeriod period) {
        long result = 0L;
        if (this.xPosition == TimePeriodAnchor.START) {
            result = period.getFirstMillisecond(this.workingCalendar);
        }
        else if (this.xPosition == TimePeriodAnchor.MIDDLE) {
            result = period.getMiddleMillisecond(this.workingCalendar);
        }
        else if (this.xPosition == TimePeriodAnchor.END) {
            result = period.getLastMillisecond(this.workingCalendar); 
        }
        return result;
    }

    /**
     * Returns the starting X value for the specified series and item.
     *
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     *
     * @return The value.
     */
    public synchronized Number getStartX(int series, int item) {
        TimeSeries ts = (TimeSeries) this.data.get(series);
        TimeSeriesDataItem dp = ts.getDataItem(item);
        return new Long(dp.getPeriod().getFirstMillisecond(
                this.workingCalendar));
    }

    /**
     * Returns the ending X value for the specified series and item.
     *
     * @param series The series (zero-based index).
     * @param item  The item (zero-based index).
     *
     * @return The value.
     */
    public synchronized Number getEndX(int series, int item) {
        TimeSeries ts = (TimeSeries) this.data.get(series);
        TimeSeriesDataItem dp = ts.getDataItem(item);
        return new Long(dp.getPeriod().getLastMillisecond(
                this.workingCalendar));
    }

    /**
     * Returns the y-value for the specified series and item.
     *
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     *
     * @return The value (possibly <code>null</code>).
     */
    public Number getY(int series, int item) {
        TimeSeries ts = (TimeSeries) this.data.get(series);
        TimeSeriesDataItem dp = ts.getDataItem(item);
        return dp.getValue();
    }

    /**
     * Returns the starting Y value for the specified series and item.
     *
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     *
     * @return The value (possibly <code>null</code>).
     */
    public Number getStartY(int series, int item) {
        return getY(series, item);
    }

    /**
     * Returns the ending Y value for the specified series and item.
     *
     * @param series  te series (zero-based index).
     * @param item  the item (zero-based index).
     *
     * @return The value (possibly <code>null</code>).
     */
    public Number getEndY(int series, int item) {
        return getY(series, item);
    }


    /**
     * Returns the indices of the two data items surrounding a particular 
     * millisecond value.  
     * 
     * @param series  the series index.
     * @param milliseconds  the time.
     * 
     * @return An array containing the (two) indices of the items surrounding 
     *         the time.
     */
    public int[] getSurroundingItems(int series, long milliseconds) {
        int[] result = new int[] {-1, -1};
        TimeSeries timeSeries = getSeries(series);
        for (int i = 0; i < timeSeries.getItemCount(); i++) {
            Number x = getX(series, i);
            long m = x.longValue();
            if (m <= milliseconds) {
                result[0] = i;
            }
            if (m >= milliseconds) {
                result[1] = i;
                break;
            }
        }
        return result;
    }
    
    /**
     * Returns the minimum x-value in the dataset.
     *
     * @param includeInterval  a flag that determines whether or not the
     *                         x-interval is taken into account.
     * 
     * @return The minimum value.
     */
    public double getDomainLowerBound(boolean includeInterval) {
        double result = Double.NaN;
        Range r = getDomainBounds(includeInterval);
        if (r != null) {
            result = r.getLowerBound();
        }
        return result;        
    }

    /**
     * Returns the maximum x-value in the dataset.
     *
     * @param includeInterval  a flag that determines whether or not the
     *                         x-interval is taken into account.
     * 
     * @return The maximum value.
     */
    public double getDomainUpperBound(boolean includeInterval) {
        double result = Double.NaN;
        Range r = getDomainBounds(includeInterval);
        if (r != null) {
            result = r.getUpperBound();
        }
        return result;
    }

    /**
     * Returns the range of the values in this dataset's domain.
     *
     * @param includeInterval  a flag that determines whether or not the
     *                         x-interval is taken into account.
     * 
     * @return The range.
     */
    public Range getDomainBounds(boolean includeInterval) {
        Range result = null;
        Iterator iterator = this.data.iterator();
        while (iterator.hasNext()) {
            TimeSeries series = (TimeSeries) iterator.next();
            int count = series.getItemCount();
            if (count > 0) {
                RegularTimePeriod start = series.getTimePeriod(0);
                RegularTimePeriod end = series.getTimePeriod(count - 1);
                Range temp;
                if (!includeInterval) {
                    temp = new Range(getX(start), getX(end));
                }
                else {
                    temp = new Range(
                            start.getFirstMillisecond(this.workingCalendar),
                            end.getLastMillisecond(this.workingCalendar));
                }
                result = Range.combine(result, temp);
            }
        }
        return result;
    }
    
    /**
     * Tests this time series collection for equality with another object.
     *
     * @param obj  the other object.
     *
     * @return A boolean.
     */
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof TimeSeriesCollection)) {
            return false;
        }
        TimeSeriesCollection that = (TimeSeriesCollection) obj;
        if (this.xPosition != that.xPosition) {
            return false;
        }
        if (this.domainIsPointsInTime != that.domainIsPointsInTime) {
            return false;
        }
        if (!ObjectUtilities.equal(this.data, that.data)) {
            return false;
        }
        return true;
    }

    /**
     * Returns a hash code value for the object.
     *
     * @return The hashcode
     */
    public int hashCode() {
        int result;
        result = this.data.hashCode();
        result = 29 * result + (this.workingCalendar != null 
                ? this.workingCalendar.hashCode() : 0);
        result = 29 * result + (this.xPosition != null 
                ? this.xPosition.hashCode() : 0);
        result = 29 * result + (this.domainIsPointsInTime ? 1 : 0);
        return result;
    }
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱码字幕精品高清av| 日韩成人免费电影| 岛国一区二区在线观看| 国产精品情趣视频| 色综合久久中文综合久久牛| 一区二区三区欧美日| 欧美美女bb生活片| 美女在线视频一区| 日本一区二区在线不卡| 91老师国产黑色丝袜在线| 亚洲一二三区在线观看| 欧美一区二区三区喷汁尤物| 国产尤物一区二区在线| 国产精品久久久久aaaa樱花| 在线免费观看日本欧美| 免费欧美高清视频| 国产午夜一区二区三区| 色噜噜久久综合| 精品一区二区免费| 中文字幕亚洲区| 欧美欧美午夜aⅴ在线观看| 精品一区二区影视| 国产精品免费aⅴ片在线观看| 色婷婷狠狠综合| 精品中文字幕一区二区小辣椒| 日本一区二区不卡视频| 欧美日韩一级大片网址| 国产精品一区二区三区网站| 一区二区三区久久| 久久人人爽爽爽人久久久| 色偷偷成人一区二区三区91| 免费av成人在线| 日本一二三不卡| 欧美一区二区三区在线视频| 成人午夜视频福利| 日本麻豆一区二区三区视频| 国产精品久久久一区麻豆最新章节| 欧美三级日韩在线| 成人综合在线视频| 九色综合国产一区二区三区| 亚洲综合区在线| 中文字幕av资源一区| 91精品国产aⅴ一区二区| 风流少妇一区二区| 美女爽到高潮91| 夜夜亚洲天天久久| 国产精品免费av| 久久蜜桃一区二区| 51精品秘密在线观看| 色婷婷狠狠综合| 99re这里只有精品首页| 国产乱子伦一区二区三区国色天香| 亚洲一区二区三区四区在线| 国产精品成人免费在线| 国产欧美日韩另类视频免费观看| 欧美一区二区三区视频| 欧美丰满美乳xxx高潮www| 色婷婷综合久久| 91捆绑美女网站| www..com久久爱| 成人免费观看男女羞羞视频| 精品一区二区在线免费观看| 日本系列欧美系列| 日韩电影在线观看电影| 午夜欧美在线一二页| 亚洲综合激情另类小说区| 亚洲免费av观看| 亚洲三级久久久| 亚洲欧美一区二区三区国产精品| 中文字幕中文乱码欧美一区二区 | 91丨porny丨中文| 成人永久aaa| 成人在线视频一区二区| 国产高清亚洲一区| 国产jizzjizz一区二区| 国产寡妇亲子伦一区二区| 国产不卡视频在线播放| 国产成a人亚洲精品| 成人网在线播放| 不卡av在线免费观看| eeuss鲁片一区二区三区| 国产成人免费在线观看不卡| 国产成人av在线影院| 粉嫩av一区二区三区| 国产高清在线精品| 97久久人人超碰| 91黄色在线观看| 欧美日韩mp4| 日韩一级免费观看| 国产午夜亚洲精品午夜鲁丝片 | 欧美一区二区三区日韩| 日韩欧美国产一二三区| 久久网站热最新地址| 欧美国产成人在线| 亚洲精品菠萝久久久久久久| 亚洲成人一区在线| 精品一二三四在线| va亚洲va日韩不卡在线观看| 欧日韩精品视频| 日韩欧美国产午夜精品| 中文字幕av不卡| 亚洲精品乱码久久久久| 日韩综合小视频| 国产丶欧美丶日本不卡视频| 97se亚洲国产综合自在线观| 欧美日韩一区小说| 久久欧美一区二区| 尤物av一区二区| 黄色日韩三级电影| 99riav一区二区三区| 日韩一区二区不卡| 国产精品欧美一区二区三区| 午夜视频在线观看一区二区| 国产乱码精品一区二区三区五月婷| 成人小视频在线观看| 欧美疯狂性受xxxxx喷水图片| 久久精品一区二区三区不卡牛牛| 亚洲色欲色欲www| 日本不卡视频一二三区| 成人自拍视频在线| 欧美一级夜夜爽| 中文字幕日本不卡| 国产综合色视频| 欧美性受极品xxxx喷水| 久久久一区二区| 亚洲6080在线| 91麻豆123| 国产亚洲制服色| 日本最新不卡在线| 91丨porny丨首页| 亚洲精品一区二区三区四区高清| 亚洲一级在线观看| www.在线欧美| 2023国产精品视频| 午夜激情综合网| 色综合激情五月| 国产精品久久久99| 国内精品伊人久久久久av一坑 | 精彩视频一区二区三区| 色噜噜狠狠成人中文综合 | 欧美第一区第二区| 亚洲最色的网站| 99热精品一区二区| 国产亚洲精品资源在线26u| 视频一区在线播放| 欧美三级电影一区| 亚洲美女在线国产| 成人黄色网址在线观看| 国产亚洲一二三区| 九色综合狠狠综合久久| 欧美一区二区精品在线| 亚洲国产一区在线观看| 色婷婷亚洲婷婷| 亚洲日本一区二区三区| 成人av电影免费在线播放| 久久网站热最新地址| 激情文学综合丁香| 欧美变态tickle挠乳网站| 日韩高清在线观看| 欧美军同video69gay| 偷拍自拍另类欧美| 欧美精品v日韩精品v韩国精品v| 一区二区三区四区国产精品| 91蜜桃免费观看视频| 亚洲天堂成人网| 在线视频一区二区免费| 亚洲欧美国产77777| 91麻豆自制传媒国产之光| 亚洲欧洲性图库| 色女孩综合影院| 亚州成人在线电影| 日韩一区二区在线观看视频| 蜜臀av一级做a爰片久久| 日韩一区二区电影| 国产专区欧美精品| 国产精品区一区二区三区| 99久久综合国产精品| 日韩美女啊v在线免费观看| 色先锋久久av资源部| 亚洲成av人综合在线观看| 日韩视频中午一区| 国产成人亚洲综合a∨猫咪| 欧美国产一区视频在线观看| 成人福利视频在线| 一区二区三区成人| 51精品国自产在线| 国产经典欧美精品| 中文字幕一区二区日韩精品绯色| 欧美在线视频不卡| 久久99久久精品| 国产精品美女久久久久久久久久久| 色噜噜狠狠一区二区三区果冻| 无码av中文一区二区三区桃花岛| 欧美一级高清片| 成人免费高清视频| 亚洲一区二区在线免费看| 精品久久久久久久久久久久久久久久久| 国产激情一区二区三区| 一区二区三区在线影院| 欧美一区二区播放|