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

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

?? xydataitem.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.]
 *
 * ---------------
 * XYDataItem.java
 * ---------------
 * (C) Copyright 2003-2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: XYDataItem.java,v 1.6.2.1 2005/10/25 21:36:51 mungady Exp $
 *
 * Changes
 * -------
 * 05-Aug-2003 : Renamed XYDataPair --> XYDataItem (DG);
 * 03-Feb-2004 : Fixed bug in equals() method (DG);
 * 21-Feb-2005 : Added setY(double) method (DG);
 *
 */

package org.jfree.data.xy;

import java.io.Serializable;

import org.jfree.util.ObjectUtilities;

/**
 * Represents one (x, y) data item for an {@link XYSeries}.
 */
public class XYDataItem implements Cloneable, Comparable, Serializable {

    private static final long serialVersionUID = 2751513470325494890L;
    
    /** The x-value. */
    private Number x;

    /** The y-value. */
    private Number y;

    /**
     * Constructs a new data item.
     *
     * @param x  the x-value (<code>null</code> NOT permitted).
     * @param y  the y-value (<code>null</code> permitted).
     */
    public XYDataItem(Number x, Number y) {
        if (x == null) {
            throw new IllegalArgumentException("Null 'x' argument.");
        }
        this.x = x;
        this.y = y;
    }

    /**
     * Constructs a new data item.
     *
     * @param x  the x-value.
     * @param y  the y-value.
     */
    public XYDataItem(double x, double y) {
        this(new Double(x), new Double(y));
    }

    /**
     * Returns the x-value.
     *
     * @return The x-value (never <code>null</code>).
     */
    public Number getX() {
        return this.x;
    }

    /**
     * Returns the y-value.
     *
     * @return The y-value (possibly <code>null</code>).
     */
    public Number getY() {
        return this.y;
    }

    /**
     * Sets the y-value for this data item.  Note that there is no 
     * corresponding method to change the x-value.
     *
     * @param y  the new y-value.
     */
    public void setY(double y) {
        setY(new Double(y));   
    }
    
    /**
     * Sets the y-value for this data item.  Note that there is no 
     * corresponding method to change the x-value.
     *
     * @param y  the new y-value (<code>null</code> permitted).
     */
    public void setY(Number y) {
        this.y = y;
    }

    /**
     * Returns an integer indicating the order of this object relative to 
     * another object.
     * <P>
     * For the order we consider only the x-value:
     * negative == "less-than", zero == "equal", positive == "greater-than".
     *
     * @param o1  the object being compared to.
     *
     * @return An integer indicating the order of this data pair object
     *      relative to another object.
     */
    public int compareTo(Object o1) {

        int result;

        // CASE 1 : Comparing to another TimeSeriesDataPair object
        // -------------------------------------------------------
        if (o1 instanceof XYDataItem) {
            XYDataItem dataItem = (XYDataItem) o1;
            double compare = this.x.doubleValue() 
                             - dataItem.getX().doubleValue();
            if (compare > 0.0) {
                result = 1;
            }
            else {
                if (compare < 0.0) {
                    result = -1;
                }
                else {
                    result = 0;
                }
            }
        }

        // CASE 2 : Comparing to a general object
        // ---------------------------------------------
        else {
            // consider time periods to be ordered after general objects
            result = 1;
        }

        return result;

    }

    /**
     * Returns a clone of this object.
     *
     * @return A clone.
     * 
     * @throws CloneNotSupportedException not thrown by this class, but 
     *         subclasses may differ.
     */
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    
    /**
     * Tests if this object is equal to another.
     *
     * @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 XYDataItem)) {
            return false;
        }
        XYDataItem that = (XYDataItem) obj;
        if (!this.x.equals(that.x)) {
            return false;
        }
        if (!ObjectUtilities.equal(this.y, that.y)) {
            return false;
        }
        return true;        
    }

    /**
     * Returns a hash code.
     * 
     * @return A hash code.
     */
    public int hashCode() {
        int result;
        result = this.x.hashCode();
        result = 29 * result + (this.y != null ? this.y.hashCode() : 0);
        return result;
    }
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人短视频下载| 色欧美片视频在线观看| 91丨porny丨蝌蚪视频| 中文字幕二三区不卡| 成人avav在线| 亚洲免费电影在线| 欧美综合视频在线观看| 婷婷综合久久一区二区三区| 91精品国产麻豆| 久久er精品视频| 韩国女主播一区| 欧美麻豆精品久久久久久| 日本vs亚洲vs韩国一区三区| 精品国产精品网麻豆系列| 成人av在线资源网站| 伊人一区二区三区| 欧美一区二区三区四区高清| 国产制服丝袜一区| 国产精品电影一区二区三区| 在线亚洲高清视频| 日韩av不卡一区二区| 久久噜噜亚洲综合| 91猫先生在线| 久久97超碰国产精品超碰| 国产日韩欧美a| 91国模大尺度私拍在线视频| 国产精品久久久久久亚洲毛片| 亚洲成人激情av| 色综合久久综合| 午夜亚洲福利老司机| 久久这里只有精品首页| 99九九99九九九视频精品| 亚洲福中文字幕伊人影院| 欧美精品一区二区在线播放| www.欧美精品一二区| 欧美日韩你懂的| 一区二区三区精品视频| 欧美一区二区高清| 成人一区二区三区中文字幕| 亚洲午夜激情网页| 久久无码av三级| 欧美性猛交xxxx乱大交退制版| 黑人巨大精品欧美一区| 亚洲精品视频免费观看| 久久网站最新地址| 欧美偷拍一区二区| 丰满岳乱妇一区二区三区| 五月婷婷另类国产| 国产精品麻豆网站| 日韩欧美国产wwwww| 91免费精品国自产拍在线不卡| 日本vs亚洲vs韩国一区三区二区 | 99久久久精品免费观看国产蜜| 日韩精品免费专区| 亚洲欧美综合另类在线卡通| 日韩欧美资源站| 日本伦理一区二区| 久久99精品国产.久久久久久| 亚洲成人1区2区| 韩国v欧美v日本v亚洲v| 亚洲色图在线视频| www精品美女久久久tv| 欧美三电影在线| 成人精品国产一区二区4080| 美国三级日本三级久久99| 亚洲蜜臀av乱码久久精品| 久久久久久久久久久99999| 欧美日韩在线播放三区四区| 成人免费观看视频| 久久精品久久99精品久久| 一区二区三区欧美亚洲| 国产精品青草综合久久久久99| 欧美一区二区三区在线观看视频| 91视频国产资源| 国产精品一级黄| 国产精品私房写真福利视频| 日韩欧美一区电影| 欧美三级视频在线| 9i看片成人免费高清| 国产一区二区三区在线观看精品| 视频一区二区国产| 依依成人综合视频| 国产精品久久久久久福利一牛影视| 精品国产亚洲在线| 欧美一区二区播放| 日本一区二区综合亚洲| 精品欧美一区二区久久| 91精品国产一区二区三区 | 成人av资源下载| 国产福利一区二区三区视频在线| 日韩不卡手机在线v区| 一区二区免费看| 亚洲色图视频网站| 国产精品超碰97尤物18| 国产欧美日韩亚州综合| 亚洲午夜免费视频| 精品sm捆绑视频| 日韩一区二区高清| 欧美一区二区二区| 日韩午夜激情视频| 不卡的电视剧免费网站有什么| 国产永久精品大片wwwapp| 久久精品免费看| 麻豆91在线播放免费| 蜜桃视频在线观看一区| 日本亚洲免费观看| 青娱乐精品视频在线| 免费成人深夜小野草| 青青草精品视频| 奇米777欧美一区二区| 精品区一区二区| 91国产福利在线| 欧美三级视频在线| 欧美日韩国产成人在线免费| 欧美精品高清视频| 欧美伦理影视网| 欧美一区二区三区视频在线 | 激情久久五月天| 加勒比av一区二区| 国产精品资源网| 国产mv日韩mv欧美| 成人av电影免费观看| 99国产精品视频免费观看| 一本色道久久综合亚洲aⅴ蜜桃| 色综合久久久久久久久久久| 在线区一区二视频| 国产成人无遮挡在线视频| 成人小视频在线观看| 99久久er热在这里只有精品15| 97久久精品人人爽人人爽蜜臀| 日本韩国欧美三级| 欧美日韩免费高清一区色橹橹| 亚洲综合丝袜美腿| 中文字幕第一区| 亚洲精品成人精品456| 亚洲国产精品久久不卡毛片 | 欧美激情一区二区| 亚洲欧洲www| 亚洲主播在线播放| 蜜臀av一区二区在线免费观看| 九九久久精品视频| 成人高清免费观看| 91精品91久久久中77777| 在线电影欧美成精品| 欧美精品一区二| 亚洲欧洲性图库| 亚洲va韩国va欧美va精品| 六月丁香综合在线视频| 风流少妇一区二区| 在线观看日韩电影| 欧美一级片免费看| 亚洲国产高清aⅴ视频| 一区二区在线免费| 国产精品免费丝袜| 亚洲高清免费在线| 精品一区二区三区在线视频| 国产成人精品综合在线观看| 色诱视频网站一区| 欧美一区二区三区不卡| 亚洲国产经典视频| 午夜精品久久久久久| 国产一区二区成人久久免费影院| 91一区一区三区| 欧美一区二区三区喷汁尤物| 精品中文字幕一区二区| 成人激情免费网站| 欧美久久一区二区| 欧美激情一区二区三区不卡| 亚洲最色的网站| 国内久久婷婷综合| 91久久久免费一区二区| 久久婷婷色综合| 亚洲综合激情网| 国产资源在线一区| 91成人免费在线视频| 日韩高清不卡在线| 蜜桃在线一区二区三区| 暴力调教一区二区三区| 91精品国产品国语在线不卡| 国产精品免费网站在线观看| 免费观看在线色综合| 9l国产精品久久久久麻豆| 欧美成人女星排名| 欧美精品久久久久久久多人混战 | 久久av老司机精品网站导航| 91免费在线看| 久久久另类综合| 亚洲123区在线观看| 成人h动漫精品| 日韩精品在线一区二区| 亚洲狠狠丁香婷婷综合久久久| 久久综合九色综合97_久久久| 国产精品情趣视频| 久久97超碰色| 欧美日韩国产成人在线免费| ...xxx性欧美| 国产一区二区三区电影在线观看 | 欧美一区午夜视频在线观看 | 亚洲国产精品尤物yw在线观看| 成人黄色小视频在线观看|