亚洲欧美第一页_禁久久精品乱码_粉嫩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| 国产乱码一区二区三区| 亚洲乱码一区二区三区在线观看| 国产经典欧美精品| 亚洲国产精品久久人人爱 | 亚洲综合在线视频| 欧美日韩在线免费视频| 欧美日韩亚洲综合一区 | 亚洲福利一二三区| 欧美色精品在线视频| 国产最新精品精品你懂的| 国产精品乱码妇女bbbb| 久久影院视频免费| 在线观看免费成人| 欧美日本在线看| xnxx国产精品| 亚洲欧美影音先锋| 日韩一区精品视频| 国产一区二区三区在线看麻豆| 国产一区视频导航| 91久久久免费一区二区| 欧美另类高清zo欧美| 久久九九99视频| 亚洲午夜羞羞片| 国产99久久久国产精品免费看| 91丝袜高跟美女视频| 欧美一区三区二区| 亚洲最大成人综合| 成人avav影音| 欧美激情一区二区三区不卡 | 三级在线观看一区二区 | 国产精品美日韩| 久久电影网站中文字幕| 欧美亚洲禁片免费| 欧美精品三级日韩久久| 亚洲美女在线一区| gogogo免费视频观看亚洲一| 日韩精品一区二区三区视频 | 欧美这里有精品| 亚洲女同一区二区| 99精品视频在线播放观看| 精品一区二区三区在线视频| 91成人在线精品| 一区二区三区四区中文字幕| 在线免费观看日本一区| 亚洲在线观看免费| 欧美一区二区三级| 日韩电影免费在线看| 欧美精品高清视频| 国产在线播放一区| 国产精品免费网站在线观看| 成人短视频下载| 亚洲国产你懂的| 日韩一级精品视频在线观看| 久久99精品久久只有精品| 欧美高清一级片在线观看| 一本大道久久精品懂色aⅴ| 亚洲福利一区二区三区| 久久丝袜美腿综合| 色欧美乱欧美15图片| 国产一区二区三区av电影| 国产精品麻豆欧美日韩ww| 欧美另类videos死尸| 国产成人99久久亚洲综合精品| 尤物av一区二区| 26uuu色噜噜精品一区| 欧美最猛黑人xxxxx猛交| 韩国一区二区视频| 亚洲与欧洲av电影| 亚洲欧美自拍偷拍色图| 337p粉嫩大胆色噜噜噜噜亚洲| 97久久超碰精品国产| 狠狠色狠狠色综合| 五月天中文字幕一区二区| 亚洲国产精品久久艾草纯爱| 国产三级一区二区| 久久综合久久久久88| 日韩一区二区精品葵司在线 | 中文字幕中文字幕中文字幕亚洲无线| 欧美老肥妇做.爰bbww| 欧美午夜精品一区二区蜜桃| 99国产精品99久久久久久| 成人黄色电影在线| 成人av集中营| 国产成人av电影在线观看| 狠狠色丁香婷婷综合| 极品少妇一区二区三区精品视频 | 亚洲嫩草精品久久| 亚洲精品日产精品乱码不卡| 中文一区一区三区高中清不卡| 国产午夜精品一区二区三区嫩草| 日韩一区二区免费视频| 欧美mv日韩mv| 26uuu欧美日本| 综合久久国产九一剧情麻豆| 亚洲视频一区二区在线| 一区二区三区精品在线观看| 亚洲成人中文在线| 国内不卡的二区三区中文字幕| 国产精品原创巨作av| 成人禁用看黄a在线| 欧美日韩精品三区| 国产欧美一区二区三区鸳鸯浴| 一区二区三区电影在线播| 蜜臀av一级做a爰片久久| 国产成人高清在线| 678五月天丁香亚洲综合网| 国产人久久人人人人爽| 日韩中文字幕区一区有砖一区 | 香蕉久久夜色精品国产使用方法 | 日韩欧美你懂的| 中文字幕一区二区三区四区不卡| 日韩综合一区二区| 国产精品1区2区| 精品视频免费看| 久久久www成人免费毛片麻豆 | 日韩电影一区二区三区四区| 国产美女精品在线| 欧美日韩在线电影| 亚洲日本在线a| 国产一区二区三区观看| 欧美日韩夫妻久久| 中文字幕在线观看不卡| 国产裸体歌舞团一区二区| 色综合久久久网| 中文字幕成人在线观看| 另类小说图片综合网| 欧美三区在线观看| 亚洲激情图片qvod| 成人动漫精品一区二区| 久久久综合网站| 国产精品影视在线观看| 精品日韩成人av| 奇米色一区二区| 日韩一区二区在线观看视频播放| 午夜电影一区二区| 精品久久久久久久久久久久久久久 | 国内精品久久久久影院薰衣草 | 久久免费午夜影院| 精品在线播放午夜| 精品国产一区二区三区忘忧草| 国产在线乱码一区二区三区| 欧美一区二区三区公司| 麻豆精品一区二区综合av| 欧美一卡二卡三卡| 国产乱理伦片在线观看夜一区 | 亚洲成精国产精品女| 欧美三级日韩三级| 久久91精品久久久久久秒播| 欧美精品一区二区三区蜜臀| 日韩成人一区二区| 欧美成人a视频| 99精品偷自拍| 视频一区欧美精品| 久久一二三国产| 91麻豆精品国产91久久久久久久久 | 欧美一区二区在线免费观看| 高清久久久久久| 久久97超碰国产精品超碰| 久久精品一区二区| 91激情五月电影| 日韩激情中文字幕| 亚洲已满18点击进入久久| 久久综合国产精品| 欧美在线free| 国产激情精品久久久第一区二区| 亚洲三级理论片| 亚洲欧美自拍偷拍色图| 精品国产免费人成电影在线观看四季| 91网上在线视频| 国产suv精品一区二区三区| 香蕉久久一区二区不卡无毒影院| 亚洲综合色在线| 国产精品拍天天在线| 久久久综合九色合综国产精品| 91麻豆123| 欧美性三三影院| 色婷婷av一区| 色天使色偷偷av一区二区| 狠狠色狠狠色合久久伊人| 国产精品中文字幕日韩精品 | 日本视频一区二区| 天堂资源在线中文精品| 亚洲国产婷婷综合在线精品| 一区二区三区加勒比av| 亚洲精品免费一二三区| 亚洲欧美日韩人成在线播放| 一区二区在线观看av| 亚洲欧美激情小说另类| 玉米视频成人免费看| 亚洲小少妇裸体bbw| 日本大胆欧美人术艺术动态| 国产一区二区久久| 国产91丝袜在线播放0| 99视频精品全部免费在线| 欧亚洲嫩模精品一区三区| 欧美无砖专区一中文字| 日韩免费看网站| 亚洲欧洲日韩综合一区二区|