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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dataset.java

?? java 作圖的程序
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package graph;import java.awt.*;import java.applet.*;import java.util.*;import java.lang.*;/*******************************************************************************    Class  DataSet******************************************************************************    Copyright (C) 1995, 1996 Leigh Brookshaw****    This program is free software; you can redistribute it and/or modify**    it under the terms of the GNU General Public License as published by**    the Free Software Foundation; either version 2 of the License, or**    (at your option) any later version.****    This program 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 General Public License for more details.****    You should have received a copy of the GNU General Public License**    along with this program; if not, write to the Free Software**    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.******************************************************************************    This class is designed to be used in conjunction with **    the Graph2D class and Axis class for plotting 2D graphs.***************************************************************************//** *  This class is designed to hold the data to be plotted. *  It is to be used in conjunction with the Graph2D class and Axis  *  class for plotting 2D graphs. * * @version $Revision: 1.15 $, $Date: 1996/09/24 05:23:41 $ * @author Leigh Brookshaw  */public class DataSet extends Object {/****************************** Public Static Values     **************************//** *    A constant value flag used to specify no straight line segment *    is to join the data points */      public final static int NOLINE    =  0;/** *    A constant value flag used to specify that a straight line segment *    is to join the data points. */      public final static int LINE      =  1;/************************** Public Variables      **********************/  /**    *    The Graphics canvas that is driving the whole show.   * @see graph.Graph2D   */      public Graph2D g2d;  /**   *    The linestyle to employ when joining the data points with   *    straight line segments. Currently only solid and no line   *    are supported.   */      public int   linestyle     = LINE;  /**   *    The color of the straight line segments   */      public Color linecolor     = null;  /**   *    The index of the marker to use at the data points.   * @see graph.Markers   */      public int    marker       = 0;  /**   *    The marker color   */      public Color  markercolor  = null;  /**   *    The scaling factor for the marker. Default value is 1.   */      public double markerscale  = 1.0;  /**   *    The Axis object the X data is attached to. From the Axis object   *    the scaling for the data can be derived.   * @see graph.Axis   */      public Axis xaxis;  /**   *    The Axis object the Y data is attached to.   * @see graph.Axis   */      public Axis yaxis;  /**   * The current plottable X maximum of the data.    * This can be very different from   * true data X maximum. The data is clipped when plotted.   */      public double xmax;   /**   * The current plottable X minimum of the data.    * This can be very different from   * true data X minimum. The data is clipped when plotted.   */      public double xmin;  /**   * The current plottable Y maximum of the data.    * This can be very different from   * true data Y maximum. The data is clipped when plotted.   */      public double ymax;   /**   * The current plottable Y minimum of the data.    * This can be very different from   * true data Y minimum. The data is clipped when plotted.   */      public double ymin;  /**   * Boolean to control clipping of the data window.   * Default value is <em>true</em>, clip the data window.   */      public boolean clipping = true;/************************ Protected Variables      **********************/  /**   * The data X maximum.    * Once the data is loaded this will never change.   */      protected double dxmax;  /**   * The data X minimum.    * Once the data is loaded this will never change.   */      protected double dxmin;  /**   * The data Y maximum.    * Once the data is loaded this will never change.   */      protected double dymax;  /**   * The data Y minimum.    * Once the data is loaded this will never change.   */      protected double dymin;  /**   * The array containing the actual data    */      protected double data[];  /**   * The number of data points stored in the data array   */      protected int length;  /**   *    The X range of the clipped data   */      protected double xrange;  /**   *    The Y range of the clipped data   */      protected double yrange;  /**   *    The length of the example line in the data legend.   */      protected int legend_length = 20;  /**   *    The legend text   */      protected TextLine legend_text = null;  /**   * The X pixel position of the data legend   */      protected int legend_ix;  /**   * The Y pixel position of the data legend   */      protected int legend_iy;  /**   * The X data position of the data legend   */      protected double legend_dx;  /**   * The Y data position of the data legend   */      protected double legend_dy;  /**   *    The amount to increment the data array when the append method is being   *    used.   */      protected int increment = 100;  /**   * The stride of the data. For data pairs (x,y) the stride is 2   */    protected int stride = 2;/************************ Constructors********************/  /**   *  Instantiate an empty data set.   */      public DataSet ( ) {               length = 0;               range(stride);      }  /**   *  Instantiate an empty data set.   *  @param stride the stride of the data set. The default stride is 2.   */      public DataSet (int stride ) throws Exception {               if( stride < 2 ) throw                           new Exception("Invalid stride parameter!");               this.stride = stride;               length = 0;               range(stride);      }  /**   * Instantiate a DataSet with the parsed data. Default stride is 2.   * The double array contains the data. The X data is expected in   * the even indices, the y data in the odd. The integer n is the   * number of data Points. This means that the length of the data   * array is 2*n.   * @param d Array containing the (x,y) data pairs.   * @param n Number of (x,y) data pairs in the array.   * @exception  Exception   *            A Generic exception if it fails to load the   *            parsed array into the class.   */      public DataSet ( double d[], int n ) throws Exception {           int i;           int k = 0;           length = 0;           if ( d  == null || d.length == 0 || n <= 0 ) {              throw new Exception("DataSet: Error in parsed data!");           }//     Copy the data locally.           data = new double[n*stride];           length = n*stride;           System.arraycopy(d, 0, data, 0, length);//     Calculate the data range.           range(stride);      }  /**   * Instantiate a DataSet with the parsed data.   * The double array contains the data. The X data is expected to be in   * indices i*stride where i=0,1,... The Y data is expected to be found   * in indices i*stride+1 where i=0,1,2...   * The integer n is the   * number of data Points. This means that the length of the data   * array is 2*stride.   * @param d Array containing the (x,y) data pairs.   * @param n Number of (x,y) data pairs in the array.   * @param s The stride of the data.   * @exception  Exception   *            A Generic exception if it fails to load the   *            parsed array into the class.   */      public DataSet ( double d[], int n, int s ) throws Exception {          if( s < 2 ) throw                           new Exception("Invalid stride parameter!");           int i;           int k = 0;           length = 0;           if ( d  == null || d.length == 0 || n <= 0 ) {              throw new Exception("DataSet: Error in parsed data!");           }           this.stride = s;//     Copy the data locally.           data = new double[n*stride];           length = n*stride;           System.arraycopy(d, 0, data, 0, length);//     Calculate the data range.           range(stride);      }/********************** Public Methods******************/  /**   * Append data to the data set.   * @param d Array containing (x,y) pairs to append   * @param n Number of (x,y) data pairs in the array.   * @exception Exception   *          A generic exception if it fails to load the   *            parsed array into the class.   */      public void append( double d[], int n ) throws Exception {           int i;           int k = 0;           double tmp[];           int ln = n*stride;           if ( d  == null || d.length == 0 || n <= 0 ) {              throw new Exception("DataSet: Error in append data!");           }           if(data == null) data = new double[increment];//     Copy the data locally.           if( ln+length < data.length ) {               System.arraycopy(d, 0, data, length, ln);               length += ln;	   } else {               tmp = new double[ln+length+increment];               if( length != 0 ) {                 System.arraycopy(data, 0, tmp, 0, length);               }               System.arraycopy(d, 0, tmp, length, ln);               length += ln;               data = tmp;	     }//     Calculate the data range.           range(stride);//     Update the range on Axis that this data is attached to           if(xaxis != null) xaxis.resetRange();           if(yaxis != null) yaxis.resetRange();      }  /**   * Delete data from the data set (start and end are inclusive).   * The first (x,y) pair in the data set start at index 0.   * @param start The start (x,y) pair index.   * @param end   The end (x,y) pair index.   */      public void  delete( int start, int end ) {           int End   = stride*end;           int Start = stride*start;           if(length <= 0) return;           if( End   < Start )         return;           if( Start < 0 )             Start = 0;           if( End > length-stride )        End = length-stride;           if( End < length-stride) {               System.arraycopy(data, End+stride,                                 data, Start, length - End - stride);	     }           length -= End+stride-Start;//     Calculate the data range.           range(stride);      }  /**   * Delete all the data from the data set.   */      public void  deleteData( ) {           length = 0;           data = null;           range(stride);      }  /**   * Draw the straight line segments and/or the markers at the   * data points.   * If this data has been attached to an Axis then scale the data   * based on the axis maximum/minimum otherwise scale using   * the data's maximum/minimum   * @param g Graphics state   * @param bounds The data window to draw into

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美美女直播网站| 色香色香欲天天天影视综合网| 欧美视频三区在线播放| 亚洲最大色网站| 欧美日韩精品是欧美日韩精品| 亚洲国产精品天堂| 91精品国产黑色紧身裤美女| 秋霞电影网一区二区| 精品久久久三级丝袜| 国产一区二区视频在线| 国产精品人成在线观看免费 | 精品国产区一区| 狠狠色综合色综合网络| 欧美激情资源网| 在线精品观看国产| 免费一级片91| 亚洲国产精品传媒在线观看| 一本大道久久a久久精品综合| 亚洲一区二区美女| 精品国产精品网麻豆系列| 国产一区二区三区日韩| 亚洲欧美日本在线| 欧美精品色一区二区三区| 国模冰冰炮一区二区| 亚洲欧美一区二区在线观看| 欧美日韩高清一区二区| 黑人精品欧美一区二区蜜桃| 亚洲丝袜另类动漫二区| 51久久夜色精品国产麻豆| 国产精品一区二区在线播放| 亚洲一区欧美一区| 久久久激情视频| 欧美午夜精品理论片a级按摩| 久久国产日韩欧美精品| 日韩美女视频一区| 日韩欧美成人激情| 91小视频在线观看| 国内偷窥港台综合视频在线播放| 国产精品电影一区二区| 欧美久久一二区| 成人av中文字幕| 免费人成在线不卡| 亚洲一区在线免费观看| 国产三级一区二区| 制服丝袜日韩国产| 91污在线观看| 国产精品综合视频| 免费在线观看一区| 亚洲小少妇裸体bbw| 日本一区二区三区电影| 日韩欧美国产综合| 欧美日韩国产高清一区二区三区 | 国产精品欧美一区二区三区| 成人性生交大片| 日韩精品久久理论片| 中文字幕一区二区日韩精品绯色| 欧美一级黄色录像| 欧美午夜在线观看| 亚洲人午夜精品天堂一二香蕉| 国产精品色婷婷久久58| 麻豆91精品91久久久的内涵| 欧美日韩在线综合| 亚洲精品免费电影| 99久久99久久综合| 国产婷婷一区二区| 久久精品999| 日韩一区二区三区视频在线观看| 亚洲与欧洲av电影| 91极品美女在线| 亚洲视频一区二区在线观看| 国产91在线|亚洲| 精品国产1区二区| 麻豆国产欧美一区二区三区| 91精品麻豆日日躁夜夜躁| 樱花影视一区二区| 在线观看视频一区| 亚洲成人自拍偷拍| 欧美区一区二区三区| 亚洲成人久久影院| 欧美精选午夜久久久乱码6080| 亚洲欧美另类小说| 在线观看亚洲一区| 午夜久久久久久久久久一区二区| 91国产免费看| 亚洲成a天堂v人片| 日韩视频在线永久播放| 久久精品国产99国产| 日韩午夜激情免费电影| 毛片av中文字幕一区二区| 2020国产精品| 风间由美一区二区三区在线观看| 国产三级精品三级在线专区| 成人午夜在线播放| 亚洲男帅同性gay1069| 欧美午夜精品一区二区三区| 日日摸夜夜添夜夜添国产精品| 欧美一卡二卡三卡四卡| 国模一区二区三区白浆| 国产精品天天看| 欧美视频一区二| 极品少妇xxxx精品少妇偷拍| 国产精品第13页| 欧美丝袜第三区| 黄色资源网久久资源365| 中日韩av电影| 欧美日韩高清一区二区三区| 精彩视频一区二区三区| 亚洲人成影院在线观看| 宅男噜噜噜66一区二区66| 国产乱人伦偷精品视频免下载| 综合av第一页| 欧美va在线播放| 91蜜桃在线观看| 久久av老司机精品网站导航| 国产精品国产成人国产三级 | 亚洲在线成人精品| 日韩精品一区二区三区四区| av不卡在线播放| 六月丁香综合在线视频| 亚洲欧美另类综合偷拍| xnxx国产精品| 欧美日韩精品福利| 成人国产视频在线观看| 日韩一区精品视频| 亚洲人成影院在线观看| 久久先锋影音av| 欧美亚洲自拍偷拍| 国产成人免费视| 美女视频一区二区三区| 亚洲国产视频a| 亚洲日本一区二区| 国产精品青草久久| 26uuu国产电影一区二区| 777亚洲妇女| 在线一区二区三区| 成人h动漫精品| 国产精品一区二区久久精品爱涩 | 2023国产精品| 日韩亚洲欧美在线观看| 欧美在线观看禁18| 北岛玲一区二区三区四区| 久久国产乱子精品免费女| 天天色综合成人网| 亚洲电影在线播放| 亚洲国产成人91porn| 亚洲久草在线视频| 亚洲精品自拍动漫在线| 亚洲日本一区二区| 亚洲视频 欧洲视频| 国产精品成人网| 中文字幕一区日韩精品欧美| 国产欧美一区二区精品久导航 | 97久久超碰国产精品| 国产91精品免费| 国产不卡视频在线播放| 国产精品一区二区视频| 国产成人综合在线| 国产91精品精华液一区二区三区| 国产一区二区免费在线| 国产一区二区三区视频在线播放 | 亚洲国产精品黑人久久久| 久久久91精品国产一区二区三区| 久久久亚洲欧洲日产国码αv| 2021中文字幕一区亚洲| 久久久不卡网国产精品二区| 国产女主播一区| 中文av一区特黄| 亚洲女爱视频在线| 亚洲sss视频在线视频| 蜜桃av一区二区| 国产激情一区二区三区桃花岛亚洲 | 久久久不卡网国产精品一区| 日本一二三不卡| 一区二区日韩av| 蜜臀av性久久久久av蜜臀妖精 | 国产人伦精品一区二区| 国产精品福利一区| 一区二区三区四区不卡在线| 午夜精品成人在线| 久久99久久99小草精品免视看| 国产精品综合网| 91麻豆123| 欧美一区二区播放| 国产精品久久久久精k8| 亚洲免费观看高清完整| 日本大胆欧美人术艺术动态 | 亚洲欧洲性图库| 亚洲一区二区三区国产| 精品一区二区三区在线观看国产| 国产精品资源在线| 欧美日韩免费视频| 国产亚洲精品免费| 亚洲精品中文在线| 久久精品国产亚洲一区二区三区| 国产精品亚洲人在线观看| 欧美综合一区二区三区| 国产亚洲女人久久久久毛片| 香蕉av福利精品导航| 北条麻妃一区二区三区| 日韩免费视频一区二区|