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

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

?? combineddataset.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
     * @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 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 close-value for the specified series and item.
     */
    public Number getClose(int series, int item) {
        DatasetInfo di = getDatasetInfo(series);
        return ((OHLCDataset) di.data).getClose(di.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 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 volume value for the specified series and item.
     */
    public Number getVolume(int series, int item) {
        DatasetInfo di = getDatasetInfo(series);
        return ((OHLCDataset) di.data).getVolume(di.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 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 value.
     */
    public Number getStartX(int series, int item) {
        DatasetInfo di = getDatasetInfo(series);
        if (di.data instanceof IntervalXYDataset) {
            return ((IntervalXYDataset) di.data).getStartX(di.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 value.
     */
    public Number getEndX(int series, int item) {
        DatasetInfo di = getDatasetInfo(series);
        if (di.data instanceof IntervalXYDataset) {
            return ((IntervalXYDataset) di.data).getEndX(di.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) {
        DatasetInfo di = getDatasetInfo(series);
        if (di.data instanceof IntervalXYDataset) {
            return ((IntervalXYDataset) di.data).getStartY(di.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) {
        DatasetInfo di = getDatasetInfo(series);
        if (di.data instanceof IntervalXYDataset) {
            return ((IntervalXYDataset) di.data).getEndY(di.series, item);
        }
        else {
            return getY(series, item);
        }
    }

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

    /**
     * Returns the parent Dataset of this combination. If there is more than
     * one parent, or a child is found that is not a CombinationDataset, then
     * returns <code>null</code>.
     *
     * @return The parent Dataset of this combination or <code>null</code>.
     */
    public SeriesDataset getParent() {

        SeriesDataset parent = null;
        for (int i = 0; i < this.datasetInfo.size(); i++) {
            SeriesDataset child = getDatasetInfo(i).data;
            if (child instanceof CombinationDataset) {
                SeriesDataset childParent 
                    = ((CombinationDataset) child).getParent();
                if (parent == null) {
                    parent = childParent;
                }
                else if (parent != childParent) {
                    return null;
                }
            }
            else {
                return null;
            }
        }
        return parent;

    }

    /**
     * Returns a map or indirect indexing form our series into parent's series.
     * Prior to calling this method, the client should check getParent() to make
     * sure the CombinationDataset uses the same parent. If not, the map
     * returned by this method will be invalid or null.
     *
     * @return A map or indirect indexing form our series into parent's series.
     *
     * @see #getParent()
     */
    public int[] getMap() {

        int[] map = null;
        for (int i = 0; i < this.datasetInfo.size(); i++) {
            SeriesDataset child = getDatasetInfo(i).data;
            if (child instanceof CombinationDataset) {
                int[] childMap = ((CombinationDataset) child).getMap();
                if (childMap == null) {
                    return null;
                }
                map = joinMap(map, childMap);
            }
            else {
                return null;
            }
        }
        return map;
    }

    ///////////////////////////////////////////////////////////////////////////
    // New Methods
    ///////////////////////////////////////////////////////////////////////////

    /**
     * Returns the child position.
     *
     * @param child  the child dataset.
     *
     * @return The position.
     */
    public int getChildPosition(Dataset child) {

        int n = 0;
        for (int i = 0; i < this.datasetInfo.size(); i++) {
            SeriesDataset childDataset = getDatasetInfo(i).data;
            if (childDataset instanceof CombinedDataset) {
                int m = ((CombinedDataset) childDataset)
                    .getChildPosition(child);
                if (m >= 0) {
                    return n + m;
                }
                n++;
            }
            else {
                if (child == childDataset) {
                    return n;
                }
                n++;
            }
        }
        return -1;
    }

    ///////////////////////////////////////////////////////////////////////////
    // Private
    ///////////////////////////////////////////////////////////////////////////

    /**
     * Returns the DatasetInfo object associated with the series.
     *
     * @param series  the index of the series.
     *
     * @return The DatasetInfo object associated with the series.
     */
    private DatasetInfo getDatasetInfo(int series) {
        return (DatasetInfo) this.datasetInfo.get(series);
    }

    /**
     * Joins two map arrays (int[]) together.
     *
     * @param a  the first array.
     * @param b  the second array.
     *
     * @return A copy of { a[], b[] }.
     */
    private int[] joinMap(int[] a, int[] b) {
        if (a == null) {
            return b;
        }
        if (b == null) {
            return a;
        }
        int[] result = new int[a.length + b.length];
        System.arraycopy(a, 0, result, 0, a.length);
        System.arraycopy(b, 0, result, a.length, b.length);
        return result;
    }

    /**
     * Private class to store as pairs (SeriesDataset, series) for all combined
     * series.
     */
    private class DatasetInfo {

        /** The dataset. */
        private SeriesDataset data;

        /** The series. */
        private int series;

        /**
         * Creates a new dataset info record.
         *
         * @param data  the dataset.
         * @param series  the series.
         */
        DatasetInfo(SeriesDataset data, int series) {
            this.data = data;
            this.series = series;
        }
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品伦理在线| 午夜亚洲福利老司机| 另类人妖一区二区av| 91精品国产一区二区| 午夜免费久久看| 日韩精品一区国产麻豆| 免费看日韩精品| 欧美岛国在线观看| 国产xxx精品视频大全| xf在线a精品一区二区视频网站| 老鸭窝一区二区久久精品| 日韩一级片在线观看| 国产精品夜夜爽| 综合久久久久久久| 欧美自拍偷拍一区| 久久99热这里只有精品| 国产日韩欧美a| 91色porny| 亚洲成av人片一区二区梦乃| 欧美成人精精品一区二区频| 成人午夜电影久久影院| 亚洲在线视频免费观看| 日韩免费观看高清完整版在线观看| 国产一区二区在线视频| 亚洲区小说区图片区qvod| 欧美精品v国产精品v日韩精品| 精品在线播放午夜| 一区二区三区免费网站| 日韩视频一区二区| 成人av电影在线观看| 性做久久久久久久免费看| 久久久精品中文字幕麻豆发布| 一本色道久久综合亚洲精品按摩| 日韩成人精品在线观看| 中文字幕中文字幕一区| 欧美日韩综合不卡| 国产成人综合自拍| 亚洲不卡一区二区三区| 国产日韩欧美在线一区| 欧美二区三区91| 成人午夜激情影院| 久久成人18免费观看| 亚洲最新在线观看| 国产日韩欧美电影| 日韩欧美国产1| 在线亚洲免费视频| 久久精品999| 伊人开心综合网| 久久精品亚洲一区二区三区浴池| 在线电影一区二区三区| 成人av高清在线| 国内精品国产成人国产三级粉色| 亚洲激情第一区| 国产精品久久毛片| 久久久久久久综合狠狠综合| 欧美日韩国产综合一区二区| 99久久国产综合色|国产精品| 久久精品国产久精国产| 偷窥少妇高潮呻吟av久久免费| 国产精品久久免费看| 久久伊99综合婷婷久久伊| 欧美精品久久天天躁| 在线观看成人小视频| 成人av影院在线| 国产精品影音先锋| 国内成+人亚洲+欧美+综合在线| 亚洲成国产人片在线观看| 亚洲精品成人悠悠色影视| 一色桃子久久精品亚洲| 精品国产凹凸成av人导航| 欧美精品粉嫩高潮一区二区| 欧美日韩一级大片网址| 欧美中文字幕一区二区三区亚洲 | 国产精品自拍av| 日韩成人午夜精品| 久久精品72免费观看| 美女脱光内衣内裤视频久久影院| 亚洲成人黄色影院| 亚洲一区二区成人在线观看| 亚洲蜜臀av乱码久久精品| 亚洲欧美精品午睡沙发| 亚洲欧洲精品一区二区三区不卡| 中文字幕乱码亚洲精品一区 | 欧美国产乱子伦 | 91 com成人网| 欧美日韩不卡在线| 欧美日韩视频一区二区| 欧美精品在线观看播放| 欧美日韩国产一级片| 色婷婷综合久久久中文字幕| 99re在线精品| 欧美午夜在线一二页| 欧美电影影音先锋| 久久色.com| 国产精品国产三级国产aⅴ入口 | 亚洲bt欧美bt精品| 亚洲色图.com| 亚洲国产精品久久久久婷婷884 | 日欧美一区二区| 麻豆成人免费电影| 国产成人在线视频网站| 91在线观看美女| 欧美日韩亚洲综合在线 | 欧美一区二区在线看| 精品国产免费一区二区三区四区| www久久久久| 亚洲三级电影网站| 丝袜美腿亚洲一区| 国产麻豆视频精品| www.66久久| 欧美偷拍一区二区| 日韩你懂的在线播放| 日韩美女精品在线| 午夜精品123| 免费美女久久99| 99免费精品视频| 8x福利精品第一导航| 国产精品卡一卡二| 美国毛片一区二区三区| 91天堂素人约啪| 欧美一级日韩免费不卡| 国产精品午夜在线| 蜜臀91精品一区二区三区| 不卡的av在线| 日韩欧美国产三级电影视频| ...av二区三区久久精品| 奇米777欧美一区二区| 99re热这里只有精品视频| 555www色欧美视频| 亚洲色图欧美在线| 欧美aⅴ一区二区三区视频| www.亚洲免费av| 精品国产a毛片| 洋洋成人永久网站入口| 成人18精品视频| 精品盗摄一区二区三区| 无码av中文一区二区三区桃花岛| 国产成人精品亚洲日本在线桃色 | 一区二区三区在线视频观看58| 婷婷中文字幕一区三区| 国产精品一区二区久激情瑜伽| 欧美高清精品3d| 亚洲精品日产精品乱码不卡| 国产精品一二三四| 91精品国产全国免费观看| 亚洲日本在线观看| 成人av集中营| 久久久国产综合精品女国产盗摄| 免费高清在线一区| 91浏览器在线视频| 国产女同性恋一区二区| 玖玖九九国产精品| 正在播放亚洲一区| 亚洲在线中文字幕| 91国偷自产一区二区开放时间| 久久久久久久网| 国产乱人伦偷精品视频不卡 | 老司机精品视频导航| 欧美中文字幕亚洲一区二区va在线| 国产日产精品一区| 精品一区二区三区不卡| 日韩欧美一区二区久久婷婷| 午夜在线电影亚洲一区| 91在线观看下载| 亚洲欧美韩国综合色| 91麻豆国产自产在线观看| 成人欧美一区二区三区1314| 成人一区二区三区中文字幕| 精品999久久久| 亚洲国产综合在线| 欧美日韩亚洲综合在线| 午夜精品123| 欧美二区在线观看| 久久99精品视频| 26uuu色噜噜精品一区二区| 国产一区二区三区香蕉| 日韩欧美一二三四区| 久久成人麻豆午夜电影| 国产日韩精品一区二区浪潮av| 不卡av电影在线播放| 中文字幕中文字幕在线一区 | 69堂亚洲精品首页| 日韩在线观看一区二区| 91精品在线麻豆| 久久精品国产99久久6| 精品国产一区二区国模嫣然| 国产乱国产乱300精品| 国产日韩欧美高清| 91免费观看视频在线| 亚洲成人资源网| 久久综合999| 国产69精品一区二区亚洲孕妇| 自拍偷在线精品自拍偷无码专区 | 欧美精三区欧美精三区| 蜜桃久久久久久| 久久久高清一区二区三区| 97精品国产露脸对白| 亚洲一区成人在线| 欧美α欧美αv大片| 高清不卡一二三区|