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

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

?? defaultohlcdataset.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
字號:
/* ===========================================================
 * 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.]
 *
 * -----------------------
 * DefaultOHLCDataset.java
 * -----------------------
 * (C) Copyright 2003, 2004, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: DefaultOHLCDataset.java,v 1.5.2.1 2005/10/25 21:36:51 mungady Exp $
 *
 * Changes
 * -------
 * 03-Dec-2003 : Version 1 (DG);
 * 05-May-2004 : Now extends AbstractXYDataset (DG);
 * 15-Jul-2004 : Switched getX() with getXValue() and getY() with 
 *               getYValue() (DG);
 * 29-Apr-2005 : Added equals() method (DG);
 *
 */

package org.jfree.data.xy;

import java.util.Arrays;
import java.util.Date;

/**
 * A simple implementation of the {@link OHLCDataset} interface.  This 
 * implementation supports only one series.
 */
public class DefaultOHLCDataset extends AbstractXYDataset 
                                implements OHLCDataset {

    /** The series key. */
    private Comparable key;
    
    /** Storage for the data items. */
    private OHLCDataItem[] data;
    
    /**
     * Creates a new dataset.
     * 
     * @param key  the series key.
     * @param data  the data items.
     */
    public DefaultOHLCDataset(Comparable key, OHLCDataItem[] data) {
        this.key = key;
        this.data = data;
    }
    
    /**
     * Returns the series key. 
     * 
     * @param series  the series index (ignored).
     * 
     * @return The series key.
     */
    public Comparable getSeriesKey(int series) {
        return this.key;
    }

    /**
     * Returns the x-value for a data item.
     * 
     * @param series  the series index (ignored).
     * @param item  the item index (zero-based).
     * 
     * @return The x-value.
     */
    public Number getX(int series, int item) {
        return new Long(this.data[item].getDate().getTime());
    }

    /**
     * Returns the x-value for a data item as a date.
     * 
     * @param series  the series index (ignored).
     * @param item  the item index (zero-based).
     * 
     * @return The x-value as a date.
     */
    public Date getXDate(int series, int item) {
        return this.data[item].getDate();
    }

    /**
     * Returns the y-value.
     * 
     * @param series  the series index (ignored).
     * @param item  the item index (zero-based).
     * 
     * @return The y value.
     */
    public Number getY(int series, int item) {
        return getClose(series, item);
    }

    /**
     * Returns the high value.
     * 
     * @param series  the series index (ignored).
     * @param item  the item index (zero-based).
     * 
     * @return The high value.
     */
    public Number getHigh(int series, int item) {
        return this.data[item].getHigh();
    }
    
    /**
     * 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.
     * 
     * @param series  the series index (ignored).
     * @param item  the item index (zero-based).
     * 
     * @return The low value.
     */
    public Number getLow(int series, int item) {
        return this.data[item].getLow();
    }

    /**
     * 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.
     * 
     * @param series  the series index (ignored).
     * @param item  the item index (zero-based).
     * 
     * @return The open value.
     */
    public Number getOpen(int series, int item) {
        return this.data[item].getOpen();
    }

    /**
     * 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.
     * 
     * @param series  the series index (ignored).
     * @param item  the item index (zero-based).
     * 
     * @return The close value.
     */
    public Number getClose(int series, int item) {
        return this.data[item].getClose();
    }

    /**
     * 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 trading volume.
     * 
     * @param series  the series index (ignored).
     * @param item  the item index (zero-based).
     * 
     * @return The trading volume.
     */
    public Number getVolume(int series, int item) {
        return this.data[item].getVolume();
    }

    /**
     * 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;   
    }

    /**
     * Returns the series count.
     * 
     * @return 1.
     */
    public int getSeriesCount() {
        return 1;
    }

    /**
     * Returns the item count for the specified series.
     * 
     * @param series  the series index (ignored).
     * 
     * @return The item count.
     */
    public int getItemCount(int series) {
        return this.data.length;
    }
   
    /**
     * Sorts the data into ascending order by date.
     */
    public void sortDataByDate() {
        Arrays.sort(this.data);    
    }
    
    /**
     * Tests this instance for equality with an arbitrary object.
     * 
     * @param obj  the object (<code>null</code> permitted).
     * 
     * @return A boolean.
     */
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;   
        }
        if (!(obj instanceof DefaultOHLCDataset)) {
            return false;   
        }
        DefaultOHLCDataset that = (DefaultOHLCDataset) obj;
        if (!this.key.equals(that.key)) {
            return false;   
        }
        if (!Arrays.equals(this.data, that.data)) {
            return false;   
        }
        return true;
    }    

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
69久久99精品久久久久婷婷| 欧美在线观看禁18| 樱花草国产18久久久久| 91精品久久久久久蜜臀| 成人av免费在线观看| 欧美96一区二区免费视频| 日本一区二区三区久久久久久久久不 | 99精品一区二区| 久久99国产精品麻豆| 亚洲精品视频在线观看网站| 久久久久免费观看| 欧美日韩mp4| 色婷婷激情久久| 成人理论电影网| 精品一二三四在线| 日韩成人dvd| 亚洲一区二区在线免费看| 国产精品毛片高清在线完整版| 日韩亚洲欧美中文三级| 91官网在线观看| 91在线视频官网| 国产999精品久久久久久绿帽| 麻豆免费精品视频| 日韩电影在线一区二区| 亚洲一区二区美女| 亚洲日本韩国一区| 国产精品久久久久一区| 久久久精品黄色| 精品国产一区二区三区久久影院| 欧美一区二区三区的| 欧美亚洲高清一区| 91高清视频在线| 色综合久久久久综合体桃花网| 粉嫩欧美一区二区三区高清影视 | 国产一区二区三区久久久| 日韩av电影一区| 五月激情综合网| 五月天激情综合| 日一区二区三区| 天天色 色综合| 奇米影视7777精品一区二区| 日韩精品1区2区3区| 日韩精彩视频在线观看| 奇米影视在线99精品| 六月婷婷色综合| 国产专区综合网| 国产一区在线精品| 国产激情一区二区三区四区| 国产精品99久久久| 成人av在线网站| 91精彩视频在线观看| 欧美色图片你懂的| 欧美一区二区女人| 日韩欧美的一区二区| 久久久久久久国产精品影院| 国产精品网友自拍| 亚洲欧美日本韩国| 亚洲国产cao| 欧美专区亚洲专区| 91麻豆精品国产自产在线观看一区 | 免费观看30秒视频久久| 韩国视频一区二区| 成人国产精品免费观看| 91久久精品一区二区三区| 欧美日韩国产综合视频在线观看| 日韩欧美成人激情| 国产清纯在线一区二区www| 综合久久国产九一剧情麻豆| 亚洲一级片在线观看| 免费人成网站在线观看欧美高清| 国产专区综合网| 91天堂素人约啪| 欧美精品九九99久久| 亚洲精品在线电影| 亚洲蜜臀av乱码久久精品| 亚洲18色成人| 国产suv一区二区三区88区| 99久久久久久| 欧美一级久久久| 国产精品成人免费精品自在线观看| 亚洲午夜免费电影| 精品制服美女丁香| 91传媒视频在线播放| 日韩精品一区二区三区在线播放 | 亚洲欧美日韩在线| 免费人成在线不卡| 97国产一区二区| 精品久久久久久久久久久久久久久| 国产精品美女久久久久高潮| 午夜精品久久久久影视| 国精产品一区一区三区mba桃花 | 9191久久久久久久久久久| 久久精品欧美日韩| 婷婷国产v国产偷v亚洲高清| 成人av网站在线观看| 日韩三级精品电影久久久| 亚洲啪啪综合av一区二区三区| 麻豆精品一区二区av白丝在线| 91影院在线观看| 久久精品欧美一区二区三区不卡| 亚洲成a人v欧美综合天堂| 成人开心网精品视频| 欧美大片一区二区| 性感美女久久精品| gogo大胆日本视频一区| 精品国产乱码久久久久久久| 亚洲午夜影视影院在线观看| 懂色av一区二区三区免费观看| 日韩欧美激情在线| 午夜精品久久久久久久99樱桃| 91在线小视频| 国产日韩欧美激情| 欧美高清视频一二三区| 亚洲人成精品久久久久久| 国产精品综合一区二区| 欧美一区二区黄色| 亚洲一二三四区不卡| 99久久精品费精品国产一区二区| www激情久久| 另类中文字幕网| 91精品午夜视频| 视频在线在亚洲| 欧美视频日韩视频在线观看| 亚洲欧美另类小说| 成人禁用看黄a在线| 国产欧美综合色| 国产东北露脸精品视频| 2021国产精品久久精品| 美女脱光内衣内裤视频久久影院| 制服丝袜亚洲精品中文字幕| 亚洲国产精品久久久久秋霞影院| 色婷婷激情久久| 亚洲一级电影视频| 欧美久久婷婷综合色| 五月综合激情婷婷六月色窝| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 欧美吻胸吃奶大尺度电影| 一区二区三区在线观看视频| 日本韩国欧美在线| 亚洲一区自拍偷拍| 欧美中文字幕一区| 亚洲成人综合视频| 欧美人狂配大交3d怪物一区| 丝瓜av网站精品一区二区| 91福利区一区二区三区| 午夜欧美电影在线观看| 91麻豆精品国产综合久久久久久| 免费在线一区观看| 欧美电视剧在线观看完整版| 黑人精品欧美一区二区蜜桃| 国产拍欧美日韩视频二区| 99视频精品在线| 亚洲高清免费观看高清完整版在线观看| 日本道精品一区二区三区 | 亚洲精品成人a在线观看| 欧洲日韩一区二区三区| 视频一区二区不卡| 久久综合色综合88| 成人av资源在线观看| 一区二区视频在线| 欧美二区乱c少妇| 国产一区二区美女| 亚洲欧美偷拍卡通变态| 欧美日韩国产一区| 国产综合久久久久影院| 一区在线中文字幕| 欧美日韩精品免费观看视频| 久久精品免费看| 国产精品久久毛片av大全日韩| 色噜噜狠狠色综合中国| 久久精品国产色蜜蜜麻豆| 中文字幕一区二区不卡| 欧美亚洲动漫精品| 久久se精品一区二区| 日韩一区在线播放| 日韩一区二区三区在线观看| 成人免费视频视频| 亚洲国产成人tv| 国产日韩精品一区二区三区| 欧美日韩高清不卡| 精品国产一区二区亚洲人成毛片| 成人免费av网站| 午夜欧美在线一二页| 国产精品色婷婷久久58| 91精品免费在线| 97se亚洲国产综合自在线不卡| 日本sm残虐另类| 国产精品大尺度| 日韩一级免费一区| 97久久精品人人做人人爽| 久久超碰97中文字幕| 亚洲在线成人精品| 日本一区二区综合亚洲| 欧美一区二区三区白人| 不卡av电影在线播放| 老汉av免费一区二区三区| 亚洲激情图片qvod| 中文乱码免费一区二区| 欧美xxxxx牲另类人与| 欧美亚洲高清一区|