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

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

?? defaultcontourdataset.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.]
 *
 * --------------------------
 * DefaultContourDataset.java
 * --------------------------
 * (C) Copyright 2002-2005, by David M. O'Donnell and Contributors.
 *
 * Original Author:  David M. O'Donnell;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: DefaultContourDataset.java,v 1.6.2.1 2005/10/25 21:30:20 mungady Exp $
 *
 * Changes (from 23-Jan-2003)
 * --------------------------
 * 23-Jan-2003 : Added standard header (DG);
 * 20-May-2003 : removed member vars numX and numY, which were never used (TM);
 * 06-May-2004 : Now extends AbstractXYZDataset (DG);
 * 15-Jul-2004 : Switched getX() with getXValue(), getY() with getYValue() and 
 *               getZ() with getZValue() methods (DG);
 * 
 */

package org.jfree.data.contour;

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

import org.jfree.data.Range;
import org.jfree.data.xy.AbstractXYZDataset;
import org.jfree.data.xy.XYDataset;

/**
 * A convenience class that provides a default implementation of the 
 * {@link ContourDataset} interface.
 *
 * @author David M. O'Donnell
 */
public class DefaultContourDataset extends AbstractXYZDataset 
                                   implements ContourDataset {

    /** The series name (this dataset supports only one series). */
    protected Comparable seriesKey = null;

    /** Storage for the x values. */
    protected Number[] xValues = null;

    /** Storage for the y values. */
    protected Number[] yValues = null;

    /** Storage for the z values. */
    protected Number[] zValues = null;

    /** The index for the start of each column in the data. */
    protected int[] xIndex = null;

    /** Flags that track whether x, y and z are dates. */
    boolean[] dateAxis = new boolean[3];

    /**
     * Creates a new dataset, initially empty.
     */
    public DefaultContourDataset() {
        super();
    }

    /**
     * Constructs a new dataset with the given data.
     *
     * @param seriesKey  the series key.
     * @param xData  the x values.
     * @param yData  the y values.
     * @param zData  the z values.
     */
    public DefaultContourDataset(Comparable seriesKey,
                                 Object[] xData,
                                 Object[] yData,
                                 Object[] zData) {

        this.seriesKey = seriesKey;
        initialize(xData, yData, zData);
    }

    /**
     * Initialises the dataset.
     * 
     * @param xData  the x values.
     * @param yData  the y values.
     * @param zData  the z values.
     */
    public void initialize(Object[] xData,
                           Object[] yData,
                           Object[] zData) {

        this.xValues = new Double[xData.length];
        this.yValues = new Double[yData.length];
        this.zValues = new Double[zData.length];

        // We organise the data with the following assumption:
        // 1) the data are sorted by x then y
        // 2) that the data will be represented by a rectangle formed by
        //    using x[i+1], x, y[j+1], and y.
        // 3) we march along the y-axis at the same value of x until a new 
        //    value x is found at which point we will flag the index 
        //    where x[i+1]<>x[i]

        Vector tmpVector = new Vector(); //create a temporary vector
        double x = 1.123452e31; // set x to some arbitary value (used below)
        for (int k = 0; k < this.xValues.length; k++) {
            if (xData[k] != null) {
                Number xNumber;
                if (xData[k] instanceof Number) {
                    xNumber = (Number) xData[k];
                }
                else if (xData[k] instanceof Date) {
                    this.dateAxis[0] = true;
                    Date xDate = (Date) xData[k];
                    xNumber = new Long(xDate.getTime()); //store data as Long
                }
                else {
                    xNumber = new Integer(0);
                }
                this.xValues[k] = new Double(xNumber.doubleValue()); 
                    // store Number as Double

                // check if starting new column
                if (x != this.xValues[k].doubleValue()) {
                    tmpVector.add(new Integer(k)); //store index where new 
                                                   //column starts
                    x = this.xValues[k].doubleValue(); 
                                             // set x to most recent value
                }
            }
        }

        Object[] inttmp = tmpVector.toArray();
        this.xIndex = new int[inttmp.length];  // create array xIndex to hold 
                                               // new column indices

        for (int i = 0; i < inttmp.length; i++) {
            this.xIndex[i] = ((Integer) inttmp[i]).intValue();
        }
        for (int k = 0; k < this.yValues.length; k++) { // store y and z axes 
                                                        // as Doubles
            this.yValues[k] = (Double) yData[k];
            if (zData[k] != null) {
                this.zValues[k] = (Double) zData[k];
            }
        }
    }

    /**
     * Creates an object array from an array of doubles.
     *
     * @param data  the data.
     *
     * @return An array of <code>Double</code> objects.
     */
    public static Object[][] formObjectArray(double[][] data) {
        Object[][] object = new Double[data.length][data[0].length];

        for (int i = 0; i < object.length; i++) {
            for (int j = 0; j < object[i].length; j++) {
                object[i][j] = new Double(data[i][j]);
            }
        }
        return object;
    }

    /**
     * Creates an object array from an array of doubles.
     *
     * @param data  the data.
     *
     * @return An array of <code>Double</code> objects.
     */
    public static Object[] formObjectArray(double[] data) {
        Object[] object = new Double[data.length];
        for (int i = 0; i < object.length; i++) {
            object[i] = new Double(data[i]);
        }
        return object;
    }

    /**
     * Returns the number of items in the specified series.  This method 
     * is provided to satisfy the {@link XYDataset} interface implementation.
     *
     * @param series  must be zero, as this dataset only supports one series.
     *
     * @return The item count.
     */
    public int getItemCount(int series) {
        if (series > 0) {
            throw new IllegalArgumentException("Only one series for contour");
        }
        return this.zValues.length;
    }

    /**
     * Returns the maximum z-value.
     *
     * @return The maximum z-value.
     */
    public double getMaxZValue() {
        double zMax = -1.e20;
        for (int k = 0; k < this.zValues.length; k++) {
            if (this.zValues[k] != null) {
                zMax = Math.max(zMax, this.zValues[k].doubleValue());
            }
        }
        return zMax;
    }

    /**
     * Returns the minimum z-value.
     *
     * @return The minimum z-value.
     */
    public double getMinZValue() {
        double zMin = 1.e20;
        for (int k = 0; k < this.zValues.length; k++) {
            if (this.zValues[k] != null) {
                zMin = Math.min(zMin, this.zValues[k].doubleValue());
            }
        }
        return zMin;
    }

    /**
     * Returns the maximum z-value within visible region of plot.
     *
     * @param x  the x range.
     * @param y  the y range.
     *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
白白色 亚洲乱淫| 欧美日韩视频在线第一区| 一区二区三区国产精品| 日韩欧美国产一二三区| 成人福利在线看| 蜜桃av一区二区| 亚洲素人一区二区| 久久综合九色综合久久久精品综合| 91在线观看下载| 国产在线麻豆精品观看| 亚洲国产精品尤物yw在线观看| 久久久久综合网| 欧美人体做爰大胆视频| 91浏览器打开| 成人一级黄色片| 国产一区二区免费在线| 日韩主播视频在线| 一区二区三区不卡在线观看| 欧美国产精品专区| 精品国产乱码久久久久久久| 欧美视频日韩视频| 色8久久精品久久久久久蜜| 成人成人成人在线视频| 久久99精品一区二区三区三区| 亚洲一区二区三区三| 亚洲欧美日韩国产手机在线 | 一区二区成人在线视频| 日本一区免费视频| 久久精品亚洲麻豆av一区二区| 欧美一二区视频| 日韩欧美成人一区二区| 制服丝袜亚洲播放| 欧美人妖巨大在线| 欧美精品日日鲁夜夜添| 欧美日韩国产首页在线观看| 欧洲另类一二三四区| 91黄色免费版| 欧美私模裸体表演在线观看| 在线观看三级视频欧美| 欧美性做爰猛烈叫床潮| 欧美色图免费看| 欧美日韩国产影片| 制服丝袜亚洲色图| 欧美电影免费观看高清完整版在| 欧美一区二区在线播放| 日韩欧美国产系列| 久久精品水蜜桃av综合天堂| 久久久久久久久免费| 国产欧美精品在线观看| 国产精品久久久久一区二区三区| 最近中文字幕一区二区三区| 亚洲色图一区二区| 亚洲二区在线视频| 奇米色一区二区三区四区| 另类人妖一区二区av| 国产乱子伦一区二区三区国色天香 | 精品久久久久久久一区二区蜜臀| 精品国产免费视频| 中文字幕第一区| 亚洲乱码一区二区三区在线观看| 亚洲综合激情另类小说区| 婷婷国产v国产偷v亚洲高清| 美女mm1313爽爽久久久蜜臀| 国模大尺度一区二区三区| 国产高清在线精品| 91玉足脚交白嫩脚丫在线播放| 欧美三区在线视频| 精品久久人人做人人爱| 欧美国产97人人爽人人喊| 一区二区三区高清不卡| 日本伊人精品一区二区三区观看方式| 另类调教123区 | 蜜臀久久99精品久久久久久9| 国产一区不卡视频| 色菇凉天天综合网| 日韩一区和二区| 中文字幕一区二区三区精华液 | 日韩av电影一区| 国产精品一二三区| 欧美性色aⅴ视频一区日韩精品| 69堂国产成人免费视频| 欧美国产视频在线| 亚洲成人av在线电影| 国产黑丝在线一区二区三区| 在线观看视频一区二区 | 精品国精品国产尤物美女| 亚洲欧洲精品一区二区三区不卡| 午夜精品福利在线| 国产宾馆实践打屁股91| 欧美群妇大交群中文字幕| 亚洲国产精品国自产拍av| 亚洲6080在线| 成人美女视频在线看| 91麻豆精品国产91久久久| 国产精品久久久久影院| 久久99精品国产麻豆婷婷| 在线一区二区视频| 欧美—级在线免费片| 五月天亚洲婷婷| 99精品视频一区| 久久中文字幕电影| 午夜精品福利在线| 日本韩国精品一区二区在线观看| 欧美精品一区二| 天天色天天爱天天射综合| 色综合天天性综合| 国产亚洲欧洲997久久综合| 日韩国产精品91| 在线观看免费一区| 成人欧美一区二区三区黑人麻豆| 精品一区二区三区免费观看 | 91精品国产麻豆国产自产在线| 中文字幕一区二| 国产传媒久久文化传媒| 69p69国产精品| 亚洲一区二区在线播放相泽| 成人蜜臀av电影| 国产亚洲短视频| 国内精品国产三级国产a久久| 91麻豆精品国产自产在线| 亚洲综合激情网| 欧美视频在线观看一区二区| 日韩伦理电影网| av成人免费在线| 国产精品麻豆视频| 国产91丝袜在线播放0| 精品国产乱码久久久久久1区2区| 日韩成人一区二区| 欧美日韩你懂的| 亚洲成人动漫在线免费观看| 91久久免费观看| 亚洲愉拍自拍另类高清精品| 99久久99久久久精品齐齐| 国产精品欧美精品| 成人app在线观看| 国产精品嫩草99a| 91在线精品秘密一区二区| 日韩毛片视频在线看| 日本高清不卡在线观看| 亚洲黄色小视频| 色哟哟在线观看一区二区三区| 1区2区3区欧美| 色噜噜狠狠色综合欧洲selulu| 一区二区三区四区亚洲| 欧美无砖专区一中文字| 亚洲宅男天堂在线观看无病毒| 在线视频欧美精品| 三级欧美在线一区| 精品国产乱码久久久久久免费| 精品一区二区免费看| 久久久精品影视| 91亚洲资源网| 午夜精品123| 精品成人免费观看| 国产成人午夜精品影院观看视频 | 在线中文字幕不卡| 午夜精品一区在线观看| 日韩欧美国产一区二区在线播放 | 夜夜揉揉日日人人青青一国产精品| 欧美综合天天夜夜久久| 天堂成人免费av电影一区| 日韩欧美国产一区二区在线播放| 国产乱色国产精品免费视频| 中日韩av电影| 欧美天堂一区二区三区| 免费一级片91| 国产精品麻豆网站| 欧美日本在线观看| 国产一区二区三区久久久 | 久久久久久久久久久久久夜| 成人激情免费电影网址| 一片黄亚洲嫩模| 精品久久一区二区三区| 91麻豆蜜桃一区二区三区| 丝袜美腿亚洲一区二区图片| www激情久久| 在线欧美日韩国产| 国产乱对白刺激视频不卡| 亚洲精品中文字幕乱码三区| 欧美一区三区四区| 成人免费视频caoporn| 三级精品在线观看| 国产精品美女一区二区三区| 欧美视频在线一区二区三区| 国产美女精品人人做人人爽| 亚洲一区二区视频在线观看| 久久久久久久电影| 欧美性猛交一区二区三区精品| 国内精品久久久久影院一蜜桃| 一区二区三区不卡视频在线观看 | 久久精品久久99精品久久| 亚洲三级免费观看| 久久中文娱乐网| 51精品国自产在线| 91色乱码一区二区三区| 国产在线精品不卡| 丝袜国产日韩另类美女| 国产精品夫妻自拍| 欧美精品一区二区三| 欧美疯狂做受xxxx富婆|