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

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

?? subseriesdataset.java

?? jfreechart1.0.1 jsp繪制圖表的開發(fā)包
?? JAVA
字號(hào):
/* ===========================================================
 * 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.]
 *
 * ---------------------
 * SubseriesDataset.java
 * ---------------------
 * (C) Copyright 2001-2005, by Bill Kelemen and Contributors.
 *
 * Original Author:  Bill Kelemen;
 * Contributor(s):   Sylvain Vieujot;
 *                   David Gilbert (for Object Refinery Limited);
 *
 * $Id: SubSeriesDataset.java,v 1.5.2.2 2005/11/30 11:58:58 mungady Exp $
 *
 * Changes
 * -------
 * 06-Dec-2001 : Version 1 (BK);
 * 05-Feb-2002 : Added SignalsDataset (and small change to HighLowDataset 
 *               interface) as requested by Sylvain Vieujot (DG);
 * 28-Feb-2002 : Fixed bug: missing map[series] in IntervalXYDataset and 
 *               SignalsDataset methods (BK);
 * 07-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 * 06-May-2004 : Now extends AbstractIntervalXYDataset (DG);
 * 15-Jul-2004 : Switched getX() with getXValue() and getY() with 
 *               getYValue() (DG);
 * 29-Nov-2005 : Removed SignalsDataset (DG);
 *
 */

package org.jfree.data.general;

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 will create a dataset with one or more series from another
 * {@link SeriesDataset}. 
 *
 * @author Bill Kelemen (bill@kelemen-usa.com)
 */
public class SubSeriesDataset extends AbstractIntervalXYDataset
                              implements OHLCDataset,
                                         IntervalXYDataset,
                                         CombinationDataset {

    /** The parent dataset. */
    private SeriesDataset parent = null;

    /** Storage for map. */
    private int[] map;  // maps our series into our parent's

    /**
     * Creates a SubSeriesDataset using one or more series from 
     * <code>parent</code>.  The series to use are passed as an array of int.
     *
     * @param parent  underlying dataset
     * @param map  int[] of series from parent to include in this Dataset
     */
    public SubSeriesDataset(SeriesDataset parent, int[] map) {
        this.parent = parent;
        this.map = map;
    }

    /**
     * Creates a SubSeriesDataset using one series from <code>parent</code>.
     * The series to is passed as an int.
     *
     * @param parent  underlying dataset
     * @param series  series from parent to include in this Dataset
     */
    public SubSeriesDataset(SeriesDataset parent, int series) {
        this(parent, new int[] {series});
    }

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

    /**
     * Returns the high-value for the specified series and item.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if 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) {
        return ((OHLCDataset) this.parent).getHigh(this.map[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 if 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) {
        return ((OHLCDataset) this.parent).getLow(this.map[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 if 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) {
        return ((OHLCDataset) this.parent).getOpen(this.map[series], item);
    }

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

    /**
     * Returns the close-value for the specified series and item.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if 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 close-value for the specified series and item.
     */
    public Number getClose(int series, int item) {
        return ((OHLCDataset) this.parent).getClose(this.map[series], item);
    }

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

    /**
     * Returns the volume.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if not from a 
     * {@link OHLCDataset}.
     *
     * @param series  the series (zero based index).
     * @param item  the item (zero based index).
     *
     * @return The volume.
     */
    public Number getVolume(int series, int item) {
        return ((OHLCDataset) this.parent).getVolume(this.map[series], item);
    }

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

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

    /**
     * Returns the X-value for the specified series and item.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if 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) {
        return ((XYDataset) this.parent).getX(this.map[series], item);
    }

    /**
     * Returns the Y-value for the specified series and item.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if 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) {
        return ((XYDataset) this.parent).getY(this.map[series], item);
    }

    /**
     * Returns the number of items in a series.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if 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) {
        return ((XYDataset) this.parent).getItemCount(this.map[series]);
    }

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

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

    /**
     * Returns the key for a series.
     *
     * @param series  the series (zero-based index).
     *
     * @return The name of a series.
     */
    public Comparable getSeriesKey(int series) {
        return this.parent.getSeriesKey(this.map[series]);
    }

    ///////////////////////////////////////////////////////////////////////////
    // From IntervalXYDataset
    ///////////////////////////////////////////////////////////////////////////

    /**
     * Returns the starting X value for the specified series and item.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The starting X value for the specified series and item.
     */
    public Number getStartX(int series, int item) {
        if (this.parent instanceof IntervalXYDataset) {
            return ((IntervalXYDataset) this.parent).getStartX(
                this.map[series], item
            );
        }
        else {
            return getX(series, item);
        }
    }

    /**
     * Returns the ending X value for the specified series and item.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The ending X value for the specified series and item.
     */
    public Number getEndX(int series, int item) {
        if (this.parent instanceof IntervalXYDataset) {
            return ((IntervalXYDataset) this.parent).getEndX(
                this.map[series], item
            );
        }
        else {
            return getX(series, item);
        }
    }

    /**
     * Returns the starting Y value for the specified series and item.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The starting Y value for the specified series and item.
     */
    public Number getStartY(int series, int item) {
        if (this.parent instanceof IntervalXYDataset) {
            return ((IntervalXYDataset) this.parent).getStartY(
                this.map[series], item
            );
        }
        else {
            return getY(series, item);
        }
    }

    /**
     * Returns the ending Y value for the specified series and item.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The ending Y value for the specified series and item.
     */
    public Number getEndY(int series,  int item) {
        if (this.parent instanceof IntervalXYDataset) {
            return ((IntervalXYDataset) this.parent).getEndY(
                this.map[series], item
            );
        }
        else {
            return getY(series, item);
        }
    }

    ///////////////////////////////////////////////////////////////////////////
    // New methods from CombinationDataset
    ///////////////////////////////////////////////////////////////////////////

    /**
     * Returns the parent Dataset of this combination.
     *
     * @return The parent Dataset of this combination.
     */
    public SeriesDataset getParent() {
        return this.parent;
    }

    /**
     * Returns a map or indirect indexing form our series into parent's series.
     *
     * @return A map or indirect indexing form our series into parent's series.
     */
    public int[] getMap() {
        return (int[]) this.map.clone();
    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中国av一区二区三区| 夜夜夜精品看看| 欧美在线观看视频在线| 日本人妖一区二区| 亚洲色图制服诱惑 | 91精品国产品国语在线不卡| 国产成人av自拍| 秋霞国产午夜精品免费视频| 日韩伦理免费电影| 久久久www成人免费无遮挡大片| 欧美亚洲国产一区二区三区va| 国产精品小仙女| 美国三级日本三级久久99 | 国产精品亚洲视频| 午夜精品久久久久久久蜜桃app| 国产精品女主播av| 久久亚洲精精品中文字幕早川悠里| 欧美天堂亚洲电影院在线播放| eeuss国产一区二区三区| 国内精品国产成人国产三级粉色 | 国产一区二区在线影院| 香蕉久久夜色精品国产使用方法| 亚洲男人的天堂在线观看| 中文久久乱码一区二区| 久久久99免费| 欧美精品一区二区三区很污很色的| 欧美日韩视频在线一区二区| 91福利在线观看| 色噜噜久久综合| 91在线丨porny丨国产| 成人一区在线观看| 国产在线不卡一卡二卡三卡四卡| 麻豆传媒一区二区三区| 日本不卡一区二区| 午夜精品久久久久久久蜜桃app| 亚洲午夜影视影院在线观看| 一区二区高清免费观看影视大全| 亚洲日本va在线观看| ...av二区三区久久精品| 欧美激情一区二区三区蜜桃视频| 久久精品夜色噜噜亚洲aⅴ| 日本中文字幕不卡| 亚洲国产视频在线| 亚洲国产一区二区三区| 天天综合网 天天综合色| 午夜久久久久久久久 | 99视频在线观看一区三区| 高清不卡在线观看| 91在线一区二区| 欧美午夜精品电影| 欧美高清激情brazzers| 在线电影院国产精品| 日韩欧美国产一二三区| 精品国产91乱码一区二区三区 | 香蕉加勒比综合久久| 天天色天天操综合| 久久国产精品第一页| 国产在线视频一区二区| 国产jizzjizz一区二区| 91一区二区三区在线播放| 欧美在线观看视频在线| 欧美一区二区在线播放| 久久综合色播五月| 国产精品久久免费看| 一级中文字幕一区二区| 五月开心婷婷久久| 黄页网站大全一区二区| jlzzjlzz亚洲日本少妇| 欧美日韩黄色影视| 亚洲精品在线观看视频| 亚洲欧洲日韩在线| 日日夜夜免费精品| 国产精品66部| 欧洲精品一区二区三区在线观看| 欧美一区二区久久| 欧美国产乱子伦 | 国产欧美精品一区| 亚洲啪啪综合av一区二区三区| 天天综合网 天天综合色| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 亚洲天天做日日做天天谢日日欢| 亚洲香肠在线观看| 激情综合网最新| 91免费精品国自产拍在线不卡| 91精品国产综合久久婷婷香蕉| 国产丝袜欧美中文另类| 亚洲1区2区3区4区| 不卡一卡二卡三乱码免费网站| 欧美视频在线观看一区| 国产三级欧美三级| 亚洲成人自拍一区| 成人黄色在线视频| 日韩视频免费直播| 一区二区三区四区五区视频在线观看 | 亚洲狼人国产精品| 国内精品伊人久久久久影院对白| 在线观看三级视频欧美| 久久久久久亚洲综合影院红桃 | 中文字幕在线观看一区二区| 日本女人一区二区三区| 91同城在线观看| 国产日产欧美一区| 人禽交欧美网站| 色哦色哦哦色天天综合| 久久精品视频一区二区| 久久精品免费看| 欧美日韩免费在线视频| 综合欧美亚洲日本| 国产不卡视频一区二区三区| 69精品人人人人| 亚洲一区二区三区国产| 粉嫩一区二区三区性色av| 欧美一区二区三区在线观看| 亚洲国产精品久久不卡毛片 | 毛片av中文字幕一区二区| 在线看国产一区二区| 国产精品美女久久久久久久| 国产尤物一区二区在线| 91精品视频网| 五月综合激情日本mⅴ| 色综合激情久久| 国产精品久久一级| 顶级嫩模精品视频在线看| 久久综合狠狠综合久久激情| 麻豆久久久久久| 欧美一区二区三区视频在线观看| 亚洲大片免费看| 欧美精品日韩一区| 午夜精品福利一区二区三区av| 欧美综合一区二区| 亚洲一区二区在线播放相泽 | 在线视频一区二区三区| 国产精品蜜臀在线观看| 风间由美性色一区二区三区| 久久久久久免费| 国产一区不卡在线| 国产亚洲污的网站| 高清国产一区二区| 国产精品三级视频| 99久久久无码国产精品| 亚洲欧美日韩在线| 色琪琪一区二区三区亚洲区| 亚洲一二三四区不卡| 欧美色综合天天久久综合精品| 亚洲一区二区不卡免费| 欧美三级日韩在线| 日韩—二三区免费观看av| 精品欧美一区二区久久| 国产综合一区二区| 国产婷婷色一区二区三区在线| 不卡在线视频中文字幕| 一区二区免费视频| 69堂国产成人免费视频| 国产一区二区三区免费| 国产欧美精品一区二区三区四区| 成人18视频日本| 亚洲午夜久久久久久久久久久| 欧美女孩性生活视频| 久久99精品久久久久婷婷| 久久精品人人做人人爽人人| 色综合天天狠狠| 日韩精品福利网| 欧美激情艳妇裸体舞| 色欧美片视频在线观看在线视频| 婷婷综合另类小说色区| 久久亚洲一级片| 色香蕉久久蜜桃| 老司机精品视频线观看86| 国产精品国产a级| 欧美日韩不卡视频| 国产成人日日夜夜| 亚洲午夜电影网| 久久久99久久精品欧美| 欧美影视一区在线| 国产乱子伦视频一区二区三区 | 美女视频网站久久| 国产精品视频一二| 欧美日韩高清影院| 岛国av在线一区| 爽好久久久欧美精品| 国产午夜亚洲精品羞羞网站| 欧美日韩精品免费观看视频 | 欧美精品日日鲁夜夜添| 粉嫩高潮美女一区二区三区| 婷婷夜色潮精品综合在线| 国产三级欧美三级日产三级99| 欧美色区777第一页| 国产成人午夜高潮毛片| 日本成人在线看| 悠悠色在线精品| 国产日韩一级二级三级| 欧美日本一区二区在线观看| thepron国产精品| 毛片av中文字幕一区二区| 一级特黄大欧美久久久| 国产亚洲欧美日韩俺去了| 欧美剧在线免费观看网站| av欧美精品.com| 国产专区综合网| 天天综合天天综合色|