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

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

?? combineddataset.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.]
 *
 * --------------------
 * CombinedDataset.java
 * --------------------
 * (C) Copyright 2001-2005, by Bill Kelemen and Contributors.
 *
 * Original Author:  Bill Kelemen;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: CombinedDataset.java,v 1.6.2.1 2005/10/25 21:32:29 mungady Exp $
 *
 * Changes
 * -------
 * 06-Dec-2001 : Version 1 (BK);
 * 27-Dec-2001 : Fixed bug in getChildPosition method (BK);
 * 29-Dec-2001 : Fixed bug in getChildPosition method with complex 
 *               CombinePlot (BK);
 * 05-Feb-2002 : Small addition to the interface HighLowDataset, as requested 
 *               by Sylvain Vieujot (DG);
 * 14-Feb-2002 : Added bug fix for IntervalXYDataset methods, submitted by 
 *               Gyula Kun-Szabo (DG);
 * 11-Jun-2002 : Updated for change in event constructor (DG);
 * 04-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 * 06-May-2004 : Now extends AbstractIntervalXYDataset and added other methods 
 *               that return double primitives (DG);
 * 15-Jul-2004 : Switched getX() with getXValue() and getY() with 
 *               getYValue() (DG);
 *
 */

package org.jfree.data.general;

import java.util.List;

import org.jfree.data.xy.AbstractIntervalXYDataset;
import org.jfree.data.xy.OHLCDataset;
import org.jfree.data.xy.IntervalXYDataset;
import org.jfree.data.xy.XYDataset;

/**
 * This class can combine instances of {@link XYDataset}, {@link OHLCDataset} 
 * and {@link IntervalXYDataset} together exposing the union of all the series 
 * under one dataset.  
 *
 * @author Bill Kelemen (bill@kelemen-usa.com)
 */
public class CombinedDataset extends AbstractIntervalXYDataset
                             implements XYDataset, 
                                        OHLCDataset, 
                                        IntervalXYDataset,
                                        CombinationDataset {

    /** Storage for the datasets we combine. */
    private List datasetInfo = new java.util.ArrayList();

    /**
     * Default constructor for an empty combination.
     */
    public CombinedDataset() {
        super();
    }

    /**
     * Creates a CombinedDataset initialized with an array of SeriesDatasets.
     *
     * @param data  array of SeriesDataset that contains the SeriesDatasets to 
     *              combine.
     */
    public CombinedDataset(SeriesDataset[] data) {
        add(data);
    }

    /**
     * Adds one SeriesDataset to the combination. Listeners are notified of the
     * change.
     *
     * @param data  the SeriesDataset to add.
     */
    public void add(SeriesDataset data) {
        fastAdd(data);
        DatasetChangeEvent event = new DatasetChangeEvent(this, this);
        notifyListeners(event);
    }

    /**
     * Adds an array of SeriesDataset's to the combination. Listeners are
     * notified of the change.
     *
     * @param data  array of SeriesDataset to add
     */
    public void add(SeriesDataset[] data) {

        for (int i = 0; i < data.length; i++) {
            fastAdd(data[i]);
        }
        DatasetChangeEvent event = new DatasetChangeEvent(this, this);
        notifyListeners(event);

    }

    /**
     * Adds one series from a SeriesDataset to the combination. Listeners are
     * notified of the change.
     *
     * @param data  the SeriesDataset where series is contained
     * @param series  series to add
     */
    public void add(SeriesDataset data, int series) {
        add(new SubSeriesDataset(data, series));
    }

    /**
     * Fast add of a SeriesDataset. Does not notify listeners of the change.
     *
     * @param data  SeriesDataset to add
     */
    private void fastAdd(SeriesDataset data) {
        for (int i = 0; i < data.getSeriesCount(); i++) {
            this.datasetInfo.add(new DatasetInfo(data, i));
        }
    }

    ///////////////////////////////////////////////////////////////////////////
    // From SeriesDataset
    ///////////////////////////////////////////////////////////////////////////

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

    /**
     * Returns the key for a series.
     *
     * @param series  the series (zero-based index).
     *
     * @return The key for a series.
     */
    public Comparable getSeriesKey(int series) {
        DatasetInfo di = getDatasetInfo(series);
        return di.data.getSeriesKey(di.series);
    }

    ///////////////////////////////////////////////////////////////////////////
    // From XYDataset
    ///////////////////////////////////////////////////////////////////////////

    /**
     * Returns the X-value for the specified series and item.
     * <P>
     * Note:  throws <code>ClassCastException</code> if the series is not from 
     * a {@link XYDataset}.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The X-value for the specified series and item.
     */
    public Number getX(int series, int item) {
        DatasetInfo di = getDatasetInfo(series);
        return ((XYDataset) di.data).getX(di.series, item);
    }

    /**
     * Returns the Y-value for the specified series and item.
     * <P>
     * Note:  throws <code>ClassCastException</code> if the series is not from 
     * a {@link XYDataset}.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The Y-value for the specified series and item.
     */
    public Number getY(int series, int item) {
        DatasetInfo di = getDatasetInfo(series);
        return ((XYDataset) di.data).getY(di.series, item);
    }

    /**
     * Returns the number of items in a series.
     * <P>
     * Note:  throws <code>ClassCastException</code> if the series is not from 
     * a {@link XYDataset}.
     *
     * @param series  the index of the series of interest (zero-based).
     *
     * @return The number of items in a series.
     */
    public int getItemCount(int series) {
        DatasetInfo di = getDatasetInfo(series);
        return ((XYDataset) di.data).getItemCount(di.series);
    }

    ///////////////////////////////////////////////////////////////////////////
    // From HighLowDataset
    ///////////////////////////////////////////////////////////////////////////

    /**
     * Returns the high-value for the specified series and item.
     * <P>
     * Note:  throws <code>ClassCastException</code> if the series is not from a
     * {@link OHLCDataset}.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The high-value for the specified series and item.
     */
    public Number getHigh(int series, int item) {
        DatasetInfo di = getDatasetInfo(series);
        return ((OHLCDataset) di.data).getHigh(di.series, item);
    }

    /**
     * Returns the high-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 high-value.
     */
    public double getHighValue(int series, int item) {
        double result = Double.NaN;
        Number high = getHigh(series, item);
        if (high != null) {
            result = high.doubleValue();   
        }
        return result;   
    }

    /**
     * Returns the low-value for the specified series and item.
     * <P>
     * Note:  throws <code>ClassCastException</code> if the series is not from a
     * {@link OHLCDataset}.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The low-value for the specified series and item.
     */
    public Number getLow(int series, int item) {
        DatasetInfo di = getDatasetInfo(series);
        return ((OHLCDataset) di.data).getLow(di.series, item);
    }

    /**
     * Returns the low-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 low-value.
     */
    public double getLowValue(int series, int item) {
        double result = Double.NaN;
        Number low = getLow(series, item);
        if (low != null) {
            result = low.doubleValue();   
        }
        return result;   
    }

    /**
     * Returns the open-value for the specified series and item.
     * <P>
     * Note:  throws <code>ClassCastException</code> if the series is not from a
     * {@link OHLCDataset}.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The open-value for the specified series and item.
     */
    public Number getOpen(int series, int item) {
        DatasetInfo di = getDatasetInfo(series);
        return ((OHLCDataset) di.data).getOpen(di.series, item);
    }

    /**
     * Returns the open-value (as a double primitive) for an item within a 
     * series.
     * 
     * @param series  the series (zero-based index).

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
黄一区二区三区| 欧美国产禁国产网站cc| 99视频精品在线| 盗摄精品av一区二区三区| 国产真实乱对白精彩久久| 精品亚洲免费视频| 精品在线观看视频| 国产98色在线|日韩| 色婷婷综合视频在线观看| 成人午夜在线播放| 在线观看av一区二区| 国产精品久久久久影院色老大| 国产精品萝li| 亚洲超丰满肉感bbw| 日韩精品91亚洲二区在线观看| 青青草97国产精品免费观看无弹窗版| 久久99久久精品| 色欧美乱欧美15图片| 日韩欧美在线不卡| 国产欧美日韩卡一| 捆绑调教美女网站视频一区| 国产精品69久久久久水密桃| 91丨porny丨在线| 精品电影一区二区| 日韩av中文字幕一区二区三区| 国产精品影视在线观看| 日本高清免费不卡视频| 国产日韩高清在线| 亚洲成人福利片| 91蜜桃网址入口| 国产精品你懂的在线欣赏| 久久国产日韩欧美精品| 欧美视频三区在线播放| 国产视频911| 国产精品一区一区| 国产日韩精品一区二区三区| 国产在线播放一区三区四| 欧美一级一区二区| 亚洲一二三四在线观看| 日本福利一区二区| 亚洲精品一二三四区| 成人精品鲁一区一区二区| 亚洲精品一区二区精华| 国内精品不卡在线| 中文在线免费一区三区高中清不卡| 久久超碰97中文字幕| 欧美岛国在线观看| 国产激情91久久精品导航| 国产网站一区二区| 国产91在线|亚洲| 亚洲乱码国产乱码精品精的特点| 色综合欧美在线| 亚洲一区日韩精品中文字幕| 欧美激情一区二区三区四区| 久久国产乱子精品免费女| 久久久91精品国产一区二区精品 | 国产精品白丝在线| 色综合久久综合中文综合网| 亚洲成人激情社区| 国产精品美女视频| 欧美日韩久久一区二区| 婷婷综合在线观看| 国产精品欧美一区喷水| 欧美自拍丝袜亚洲| 美女视频一区二区三区| 亚洲最大色网站| 精品久久一区二区三区| 粉嫩av一区二区三区| 蜜臀国产一区二区三区在线播放| 久久―日本道色综合久久| 成人激情免费网站| 色综合中文综合网| 国产精品久久国产精麻豆99网站| 91亚洲精品久久久蜜桃网站| 免费成人在线观看视频| 成人免费在线播放视频| 制服.丝袜.亚洲.中文.综合| 91美女视频网站| 成人国产亚洲欧美成人综合网| 久久se精品一区精品二区| 亚洲大片精品永久免费| 亚洲欧美日韩国产另类专区| 国产精品久久久久影院色老大| 欧美一二三四在线| 欧美日韩视频在线第一区| 99久久免费视频.com| eeuss鲁片一区二区三区在线看| 国产999精品久久久久久绿帽| 国产成人午夜精品影院观看视频| 国产福利一区在线观看| 成人av网站免费| 精品1区2区3区| 在线播放/欧美激情| 精品成人一区二区三区| 国产精品欧美精品| 一区二区三区91| 奇米一区二区三区av| 成人国产一区二区三区精品| 欧美中文字幕亚洲一区二区va在线| 欧美男男青年gay1069videost | 亚洲九九爱视频| 亚洲一区二区三区在线播放| 亚洲人xxxx| 国产一区视频在线看| 94-欧美-setu| 日韩欧美国产三级电影视频| 国产精品美女久久久久aⅴ国产馆| 亚洲国产精品精华液网站| 日本欧美在线看| 91福利视频网站| 国产欧美精品一区二区色综合朱莉| 欧美国产亚洲另类动漫| 日本aⅴ免费视频一区二区三区| 成人动漫一区二区| 综合久久综合久久| 国产99久久久精品| 欧美一区二区三区在线| 亚洲欧美日韩国产综合| 99视频在线精品| 国产精品麻豆久久久| 国产曰批免费观看久久久| 日韩欧美激情在线| 亚洲自拍偷拍综合| 日本高清无吗v一区| 亚洲精品视频一区| 91农村精品一区二区在线| 国产精品久久久久婷婷二区次| 国产伦精品一区二区三区免费迷 | 欧美二区三区91| 亚洲成人午夜电影| 欧美一区永久视频免费观看| 亚洲黄色尤物视频| 欧美视频一区二区三区在线观看 | 欧美亚洲国产一区二区三区| 亚洲黄色片在线观看| 色香蕉久久蜜桃| 日本成人在线不卡视频| 精品成a人在线观看| 久久爱另类一区二区小说| 国产精品乱人伦一区二区| 99精品国产热久久91蜜凸| 国产精品福利一区二区| 欧美裸体一区二区三区| 粉嫩嫩av羞羞动漫久久久| 亚洲天堂久久久久久久| 这里只有精品99re| 国产69精品久久久久毛片| 中文字幕一区二| 欧美电影一区二区三区| 丁香激情综合国产| 日本成人在线视频网站| 国产精品不卡一区| 日韩欧美一区二区视频| 国产日产欧美精品一区二区三区| jlzzjlzz亚洲女人18| 免费精品视频在线| 亚洲国产中文字幕| 国产精品久久久久久久久晋中| 欧美日本一道本| 色婷婷亚洲婷婷| 99精品黄色片免费大全| 国产一区二区三区精品视频| 日韩精品亚洲专区| 亚洲国产日韩在线一区模特| 国产嫩草影院久久久久| 精品精品欲导航| 欧美老肥妇做.爰bbww视频| 99精品国产热久久91蜜凸| 成人黄色国产精品网站大全在线免费观看 | 精品999在线播放| 91.xcao| 日韩欧美在线影院| 久久综合资源网| 久久综合九色综合欧美98| 日韩一级二级三级| 精品久久国产字幕高潮| 久久久激情视频| 久久久久久久av麻豆果冻| 国产精品久久久久永久免费观看| 国产精品福利电影一区二区三区四区 | 亚洲精品在线免费播放| 91精品国产全国免费观看| 精品国产在天天线2019| 久久精品视频免费| 国产精品国产成人国产三级| 一区二区三区毛片| 日本vs亚洲vs韩国一区三区二区 | 2024国产精品| 国产精品国产a级| 一区av在线播放| 国产一区二区三区免费观看| 欧美亚一区二区| 日韩西西人体444www| 亚洲国产精品成人综合| 亚洲chinese男男1069| 国产在线国偷精品产拍免费yy| 欧美日产国产精品| 国产精品麻豆一区二区 | 91麻豆国产精品久久| 日韩精品一区二区三区视频播放|