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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? xyseries.java

?? jfreechart1.0.1 jsp繪制圖表的開發(fā)包
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
        if (this.autoSort) {
            int index = Collections.binarySearch(this.data, item);
            if (index < 0) {
                this.data.add(-index - 1, item);
            }
            else {
                if (this.allowDuplicateXValues) {
                    // need to make sure we are adding *after* any duplicates
                    int size = this.data.size();
                    while (index < size 
                           && item.compareTo(this.data.get(index)) == 0) {
                        index++;
                    }
                    if (index < this.data.size()) {
                        this.data.add(index, item);
                    }
                    else {
                        this.data.add(item);
                    }
                }
                else {
                    throw new SeriesException("X-value already exists.");
                }
            }
        }
        else {
            if (!this.allowDuplicateXValues) {
                // can't allow duplicate values, so we need to check whether
                // there is an item with the given x-value already
                int index = indexOf(item.getX());
                if (index >= 0) {
                    throw new SeriesException("X-value already exists.");      
                }
            }
            this.data.add(item);
        }
        if (getItemCount() > this.maximumItemCount) {
            this.data.remove(0);
        }                    
        if (notify) {
            fireSeriesChanged();
        }
    }

    /**
     * Deletes a range of items from the series and sends a 
     * {@link SeriesChangeEvent} to all registered listeners.
     *
     * @param start  the start index (zero-based).
     * @param end  the end index (zero-based).
     */
    public void delete(int start, int end) {
        for (int i = start; i <= end; i++) {
            this.data.remove(start);
        }
        fireSeriesChanged();
    }

    /**
     * Removes the item at the specified index and sends a 
     * {@link SeriesChangeEvent} to all registered listeners.
     * 
     * @param index  the index.
     * 
     * @return The item removed.
     */
    public XYDataItem remove(int index) {
        XYDataItem result = (XYDataItem) this.data.remove(index);
        fireSeriesChanged();
        return result;
    }
    
    /**
     * Removes the item with the specified x-value and sends a 
     * {@link SeriesChangeEvent} to all registered listeners.
     * 
     * @param x  the x-value.

     * @return The item removed.
     */
    public XYDataItem remove(Number x) {
        return remove(indexOf(x));
    }
    
    /**
     * Removes all data items from the series.
     */
    public void clear() {
        if (this.data.size() > 0) {
            this.data.clear();
            fireSeriesChanged();
        }
    }

    /**
     * Return the data item with the specified index.
     *
     * @param index  the index.
     *
     * @return The data item with the specified index.
     */
    public XYDataItem getDataItem(int index) {
        return (XYDataItem) this.data.get(index);
    }

    /**
     * Returns the x-value at the specified index.
     *
     * @param index  the index (zero-based).
     *
     * @return The x-value (never <code>null</code>).
     */
    public Number getX(int index) {
        return getDataItem(index).getX();
    }

    /**
     * Returns the y-value at the specified index.
     *
     * @param index  the index (zero-based).
     *
     * @return The y-value (possibly <code>null</code>).
     */
    public Number getY(int index) {
        return getDataItem(index).getY();
    }
    
    /**
     * Updates the value of an item in the series and sends a 
     * {@link SeriesChangeEvent} to all registered listeners.
     *
     * @param index  the item (zero based index).
     * @param y  the new value (<code>null</code> permitted).
     * 
     * @deprecated Renamed updateByIndex(int, Number) to avoid confusion with
     *             the update(Number, Number) method.
     */
    public void update(int index, Number y) {
        XYDataItem item = getDataItem(index);
        item.setY(y);
        fireSeriesChanged();
    }
    
    /**
     * Updates the value of an item in the series and sends a 
     * {@link SeriesChangeEvent} to all registered listeners.
     * 
     * @param index  the item (zero based index).
     * @param y  the new value (<code>null</code> permitted).
     * 
     * @since 1.0.1
     */
    public void updateByIndex(int index, Number y) {
        update(index, y);
    }
    
    /**
     * Updates an item in the series.
     * 
     * @param x  the x-value (<code>null</code> not permitted).
     * @param y  the y-value (<code>null</code> permitted).
     * 
     * @throws SeriesException if there is no existing item with the specified
     *         x-value.
     */
    public void update(Number x, Number y) {
        int index = indexOf(x);
        if (index < 0) {
            throw new SeriesException("No observation for x = " + x);
        }
        else {
            XYDataItem item = getDataItem(index);
            item.setY(y);
            fireSeriesChanged();
        }
    }
    
    /**
     * Adds or updates an item in the series and sends a 
     * {@link org.jfree.data.general.SeriesChangeEvent} to all registered 
     * listeners.
     *
     * @param x  the x-value (<code>null</code> not permitted).
     * @param y  the y-value (<code>null</code> permitted).
     *
     * @return A copy of the overwritten data item, or <code>null</code> if no 
     *         item was overwritten.
     */
    public XYDataItem addOrUpdate(Number x, Number y) {
        if (x == null) {
            throw new IllegalArgumentException("Null 'x' argument.");   
        }
        XYDataItem overwritten = null;
        int index = indexOf(x);
        if (index >= 0) {
            XYDataItem existing = (XYDataItem) this.data.get(index);
            try {
                overwritten = (XYDataItem) existing.clone();
            }
            catch (CloneNotSupportedException e) {
                throw new SeriesException("Couldn't clone XYDataItem!");   
            }
            existing.setY(y);
        }
        else {
            // if the series is sorted, the negative index is a result from
            // Collections.binarySearch() and tells us where to insert the
            // new item...otherwise it will be just -1 and we should just
            // append the value to the list...
            if (this.autoSort) {
                this.data.add(-index - 1, new XYDataItem(x, y));
            }
            else {
                this.data.add(new XYDataItem(x, y));
            }
            // check if this addition will exceed the maximum item count...
            if (getItemCount() > this.maximumItemCount) {
                this.data.remove(0);
            }
        }            
        fireSeriesChanged();
        return overwritten;
    }

    /**
     * Returns the index of the item with the specified x-value, or a negative 
     * index if the series does not contain an item with that x-value.  Be 
     * aware that for an unsorted series, the index is found by iterating 
     * through all items in the series.
     * 
     * @param x  the x-value (<code>null</code> not permitted).
     * 
     * @return The index.
     */
    public int indexOf(Number x) {
        if (this.autoSort) {
            return Collections.binarySearch(this.data, new XYDataItem(x, null));   
        }
        else {
            for (int i = 0; i < this.data.size(); i++) {
                XYDataItem item = (XYDataItem) this.data.get(i);
                if (item.getX().equals(x)) {
                    return i;   
                }
            }
            return -1;
        }
    } 
    
    /**
     * Returns a clone of the series.
     *
     * @return A clone of the time series.
     * 
     * @throws CloneNotSupportedException if there is a cloning problem.
     */
    public Object clone() throws CloneNotSupportedException {
        Object clone = createCopy(0, getItemCount() - 1);
        return clone;
    }

    /**
     * Creates a new series by copying a subset of the data in this time series.
     *
     * @param start  the index of the first item to copy.
     * @param end  the index of the last item to copy.
     *
     * @return A series containing a copy of this series from start until end.
     * 
     * @throws CloneNotSupportedException if there is a cloning problem.
     */
    public XYSeries createCopy(int start, int end) 
        throws CloneNotSupportedException {

        XYSeries copy = (XYSeries) super.clone();
        copy.data = new java.util.ArrayList();
        if (this.data.size() > 0) {
            for (int index = start; index <= end; index++) {
                XYDataItem item = (XYDataItem) this.data.get(index);
                XYDataItem clone = (XYDataItem) item.clone();
                try {
                    copy.add(clone);
                }
                catch (SeriesException e) {
                    System.err.println("Unable to add cloned data item.");
                }
            }
        }
        return copy;

    }

    /**
     * Tests this series for equality with an arbitrary object.
     *
     * @param obj  the object to test against for equality 
     *             (<code>null</code> permitted).
     *
     * @return A boolean.
     */
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof XYSeries)) {
            return false;
        }
        if (!super.equals(obj)) {
            return false;
        }
        XYSeries that = (XYSeries) obj;
        if (this.maximumItemCount != that.maximumItemCount) {
            return false;
        }
        if (this.autoSort != that.autoSort) {
            return false;
        }
        if (this.allowDuplicateXValues != that.allowDuplicateXValues) {
            return false;
        }
        if (!ObjectUtilities.equal(this.data, that.data)) {
            return false;
        }
        return true;
    }
    
    /**
     * Returns a hash code.
     * 
     * @return A hash code.
     */
    public int hashCode() {
        int result = super.hashCode();
        result = 29 * result + (this.data != null ? this.data.hashCode() : 0);
        result = 29 * result + this.maximumItemCount;
        result = 29 * result + (this.autoSort ? 1 : 0);
        result = 29 * result + (this.allowDuplicateXValues ? 1 : 0);
        return result;
    }

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www.久久久久久久久| 久久嫩草精品久久久精品一| 亚洲欧美中日韩| 成人免费观看视频| 国产欧美日产一区| 成人精品国产一区二区4080| 国产精品三级久久久久三级| www.色综合.com| 最新久久zyz资源站| 色av一区二区| 午夜精品久久一牛影视| 欧美一激情一区二区三区| 久久99精品一区二区三区| 精品av久久707| 成人av电影免费在线播放| 亚洲靠逼com| 91精品国产一区二区三区香蕉| 免费人成黄页网站在线一区二区| 日韩一区二区三区电影在线观看 | 中文字幕av一区二区三区| av成人免费在线观看| 亚洲香蕉伊在人在线观| 一本高清dvd不卡在线观看| 另类中文字幕网| 国产精品你懂的| 欧美最新大片在线看| 麻豆精品视频在线观看| 中文字幕亚洲区| 777xxx欧美| 成人av高清在线| 免费一级片91| 亚洲美女视频一区| 日韩欧美国产综合| 日本高清不卡在线观看| 极品少妇xxxx精品少妇偷拍| 亚洲女同一区二区| 久久先锋影音av| 欧美少妇xxx| 成人午夜又粗又硬又大| 午夜精品一区二区三区免费视频| 久久人人97超碰com| 欧美三级电影一区| 成人av资源下载| 日本不卡不码高清免费观看| 中文字幕高清不卡| 日韩午夜电影av| 欧美熟乱第一页| 成人av综合一区| 国产在线精品免费av| 婷婷夜色潮精品综合在线| 亚洲国产成人在线| 精品国产露脸精彩对白| 欧美三级视频在线观看| 99久久婷婷国产综合精品| 美女免费视频一区二区| 午夜视黄欧洲亚洲| 玉米视频成人免费看| 国产亚洲精品超碰| 精品国产一区二区三区四区四| 欧美日韩你懂的| 91久久精品一区二区三| 成人app软件下载大全免费| 精品一区二区三区免费视频| 天天免费综合色| 亚洲永久免费av| 亚洲视频每日更新| 成人欧美一区二区三区小说| 亚洲国产精品成人综合| 久久精品这里都是精品| 精品成人佐山爱一区二区| 日韩精品一区二区三区swag| 欧美另类变人与禽xxxxx| 欧美优质美女网站| 在线看国产一区| 欧洲精品在线观看| 欧美色偷偷大香| 欧美三级一区二区| 欧美精品123区| 欧美精品日日鲁夜夜添| 5858s免费视频成人| 欧美色精品在线视频| 欧美亚洲国产一卡| 欧美三级资源在线| 欧美精品一二三| 日韩精品一区二区三区视频 | 91在线免费看| 99久久精品国产一区| 91美女在线看| 欧美影片第一页| 欧美一区二区免费观在线| 欧美一区二区精品| 2021久久国产精品不只是精品| 久久综合九色综合欧美亚洲| 久久精品一级爱片| 最新中文字幕一区二区三区| 丁香另类激情小说| 蜜桃91丨九色丨蝌蚪91桃色| 久久成人精品无人区| 国产福利不卡视频| 99精品久久99久久久久| 欧洲国产伦久久久久久久| 欧美午夜不卡视频| 欧美一区二区黄色| 国产欧美日韩在线视频| 一区二区三区日韩精品| 视频精品一区二区| 国产一本一道久久香蕉| 91美女片黄在线观看| 欧美日韩国产影片| 久久影院电视剧免费观看| 国产精品久久久久久亚洲毛片| 亚洲精品videosex极品| 日韩激情视频在线观看| 高清成人在线观看| 欧美日韩一区二区三区在线| 精品国产免费人成在线观看| 亚洲欧洲精品天堂一级| 丝袜美腿亚洲色图| 丁香激情综合五月| 51精品久久久久久久蜜臀| 日本一区二区三区电影| 一区二区三区不卡在线观看| 精品在线播放免费| 日本乱码高清不卡字幕| 久久亚洲二区三区| 亚洲成人一二三| 国产一区二区三区免费在线观看| 91首页免费视频| 欧美精品一区二区三区高清aⅴ| 亚洲色图视频免费播放| 久88久久88久久久| 欧美专区亚洲专区| 亚洲欧洲一区二区在线播放| 理论片日本一区| 色狠狠色狠狠综合| 国产视频一区二区在线观看| 午夜欧美在线一二页| av在线播放不卡| 亚洲精品一区二区三区蜜桃下载 | av欧美精品.com| 日韩午夜激情电影| 亚洲综合色成人| 成人一区二区在线观看| 欧美大胆人体bbbb| 亚洲va韩国va欧美va| 91丨九色porny丨蝌蚪| 亚洲精品一区二区在线观看| 日本女人一区二区三区| 欧美在线你懂得| 亚洲色图19p| 成人性色生活片免费看爆迷你毛片| 51精品国自产在线| 亚洲一区日韩精品中文字幕| a级精品国产片在线观看| 久久久久久久久久久99999| 免费观看在线综合| 欧美精品一二三| 天堂久久一区二区三区| 欧美影片第一页| 亚洲一级片在线观看| 色婷婷亚洲婷婷| 亚洲同性同志一二三专区| 成人国产精品免费观看动漫| 久久久精品人体av艺术| 国产一区二区不卡在线| 亚洲精品在线观| 国产精品自拍三区| 国产欧美在线观看一区| 国产精品夜夜爽| 欧美国产乱子伦| 成熟亚洲日本毛茸茸凸凹| 国产欧美日韩久久| 国产91精品免费| 中文字幕一区二区三区四区不卡| 国产成人三级在线观看| 中文字幕乱码亚洲精品一区| 大尺度一区二区| 亚洲日穴在线视频| 日本电影欧美片| 五月天久久比比资源色| 日韩欧美亚洲国产精品字幕久久久| 蜜桃在线一区二区三区| 2017欧美狠狠色| 成人涩涩免费视频| 中文字幕日韩av资源站| 色哟哟在线观看一区二区三区| 亚洲在线视频免费观看| 欧美一二三四在线| 国产精品一级片在线观看| 国产精品蜜臀av| 欧美性色黄大片| 免费美女久久99| 国产精品色婷婷| 欧美专区在线观看一区| 美女网站色91| 成人欧美一区二区三区白人| 欧美日韩视频在线一区二区| 国产在线播放一区三区四| 中文字幕一区二区视频| 欧美日韩亚洲国产综合|