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

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

?? axis.java

?? java 作圖的程序
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
   * Detach All attached dataSets.   */      public void detachAll() {            int i;            DataSet d;            if( dataset.isEmpty() ) return;            if( orientation == HORIZONTAL ) {                 for (i=0; i<dataset.size(); i++) {                     d = (DataSet)(dataset.elementAt(i));                     d.xaxis = null;                 }            } else {                 for (i=0; i<dataset.size(); i++) {                     d = (DataSet)(dataset.elementAt(i));                     d.yaxis = null;                 }            }            dataset.removeAllElements();            minimum = 0.0;            maximum = 0.0;      }  /**   * Return the minimum value of All datasets attached to the axis.   * @return Data minimum   */      public double getDataMin() {            double m;            Enumeration e;            DataSet d;            if( dataset.isEmpty() ) return 0.0;            d = (DataSet)(dataset.firstElement());            if(d == null) return 0.0;            if( orientation == HORIZONTAL ) {                 m = d.getXmin();                 for (e = dataset.elements() ; e.hasMoreElements() ;) {                     d = (DataSet)e.nextElement();                     m = Math.min(d.getXmin(),m);                                      }            } else {                 m = d.getYmin();                 for (e = dataset.elements() ; e.hasMoreElements() ;) {                     d = (DataSet)e.nextElement();                     m = Math.min(d.getYmin(),m);                                      }            }            return m;      }  /**   * Return the maximum value of All datasets attached to the axis.   * @return Data maximum   */      public double getDataMax() {            double m;            Enumeration e;            DataSet d;            if( dataset.isEmpty() ) return 0.0;            d = (DataSet)(dataset.firstElement());            if(d == null) return 0.0;                      if( orientation == HORIZONTAL ) {                 m = d.getXmax();                 for (e = dataset.elements() ; e.hasMoreElements() ;) {                     d = (DataSet)e.nextElement();                     m = Math.max(d.getXmax(),m);                 }            } else {                 m = d.getYmax();                 for (e = dataset.elements() ; e.hasMoreElements() ;) {                     d = (DataSet)e.nextElement();                     m = Math.max(d.getYmax(),m);                 }            }            return m;      }  /**   * Return the pixel equivalent of the passed data value. Using the    * position of the axis and the maximum and minimum values convert   * the data value into a pixel value   * @param v data value to convert   * @return equivalent pixel value   * @see graph.Axis#getDouble( )   */       public int getInteger(double v) {          double scale;                    if( orientation == HORIZONTAL ) {               scale  = (double)(amax.x - amin.x)/(maximum - minimum);               return amin.x + (int)( ( v - minimum ) * scale);          } else {               scale  = (double)(amax.y - amin.y)/(maximum - minimum);               return amin.y + (int)( (maximum-v)*scale );          }      }  /**   * Return the data value equivalent of the passed pixel position.   * Using the    * position of the axis and the maximum and minimum values convert   * the pixel position into a data value   * @param i pixel value   * @return equivalent data value   * @see graph.Axis#getInteger( )   */       public double getDouble(int i) {            double scale;          if( orientation == HORIZONTAL ) {               scale  = (maximum - minimum)/(double)(amax.x - amin.x);               return minimum + (i - amin.x)*scale;          } else {               scale  = (maximum - minimum)/(double)(amax.y - amin.y);               return maximum - (i - amin.y)*scale;          }      }  /**   * Reset the range of the axis (the minimum and maximum values) to the   * default data values.   */     public void resetRange() {             minimum = getDataMin();             maximum = getDataMax();     }  /**   * Return the position of the Axis.   * @return One of Axis.LEFT, Axis.RIGHT, Axis.TOP, or Axis.BOTTOM.   */      public int getAxisPos() { return position; }  /**   * If the Axis is Vertical return <i>true</i>.   */     public boolean isVertical() {          if( orientation == HORIZONTAL ) return false;          else                            return true;     }     /**   * Return the width of the axis.   * @param g graphics context.   */     public int getAxisWidth(Graphics g) {          int i;          width = 0;          if( minimum == maximum )    return 0;          if( dataset.size() == 0 )   return 0;          calculateGridLabels();          exponent.setText(null);          if(label_exponent != 0) {              exponent.copyState(label);              exponent.setText("x10^"+String.valueOf(label_exponent));          }           if( orientation == HORIZONTAL ) {               width = label.getRHeight(g) + label.getLeading(g);                width += Math.max(title.getRHeight(g),exponent.getRHeight(g));           } else {               for(i=0; i<label_string.length; i++) {                  label.setText(" "+label_string[i]);                  width = Math.max(label.getRWidth(g),width);               }               max_label_width = width;               width = 0;               if(!title.isNull() ) {                  width = Math.max(width,title.getRWidth(g)+                                         title.charWidth(g,' '));               }               if ( !exponent.isNull() ) {                  width = Math.max(width,exponent.getRWidth(g)+                                         exponent.charWidth(g,' '));               }               width += max_label_width;           }           return width;      }  /**   * Position the axis at the passed coordinates. The coordinates should match   * the type of axis.   * @param xmin The minimum X pixel   * @param xmax The maximum X pixel. These should be equal if the axis    *         is vertical   * @param ymin The minimum Y pixel   * @param ymax The maximum Y pixel. These should be equal if the axis    *         is horizontal   * @return <i>true</i> if there are no inconsistencies.   */      public boolean positionAxis(int xmin, int xmax, int ymin, int ymax ){           amin = null;           amax = null;           if( orientation == HORIZONTAL && ymin != ymax ) return false;           if( orientation == VERTICAL   && xmin != xmax ) return false;           amin = new Point(xmin,ymin);           amax = new Point(xmax,ymax);           return true;      }           /**   * Draw the axis using the passed Graphics context.   * @param g Graphics context for drawing   */      public void drawAxis(Graphics g) {          Graphics lg;          if( !redraw            ) return;          if( minimum == maximum ) {                 System.out.println(                      "Axis: data minimum==maximum Trying to reset range!");                 resetRange();                 if( minimum == maximum ) {                    System.out.println(                      "Axis: Reseting Range failed!  Axis not drawn!");                    return;		  }	  }          if( amin.equals(amax) ) return;          if( width == 0 ) width = getAxisWidth(g);          lg = g.create();          if( force_end_labels ) {              minimum = label_start;              maximum = minimum + (label_count-1)*label_step;          }	  /*	  ** For rotated text set the Component that is being drawn into          */          title.setDrawingComponent(g2d);          label.setDrawingComponent(g2d);          exponent.setDrawingComponent(g2d);          if( orientation == HORIZONTAL) {               drawHAxis(lg);          } else {               drawVAxis(lg);          }     }  /**   * Set the title of the axis   * @param s string containing text.   */     public void setTitleText(String s) {   title.setText(s); }  /**   * Set the color of the title   * @param c Color of the title.   */     public void setTitleColor(Color c) {   title.setColor(c); }  /**   * Set the font of the title   * @param c Title font.   */     public void setTitleFont(Font f)   {   title.setFont(f); }  /**   * Set the title rotation angle. Only multiples of 90 degrees allowed.   * @param a Title rotation angle in degrees.   */     public void setTitleRotation(int a)   {   title.setRotation(a); }  /**   * Set the color of the labels   * @param c Color of the labels.   */     public void setLabelColor(Color c) {   label.setColor(c); }  /**   * Set the font of the labels.   * @param f font.   */     public void setLabelFont(Font f)   {   label.setFont(f); }  /**   * Set the color of the exponent   * @param c Color.   */     public void setExponentColor(Color c) {   exponent.setColor(c); }  /**   * Set the font of the exponent   * @param f font.   */     public void setExponentFont(Font f)   {   exponent.setFont(f); }  /**   * Is the range of the axis to be set automatically (based on the data)   * or manually by setting the values Axis.minimum and Axis.maximum?   * @param b boolean value.   */     public void setManualRange(boolean b)   {  manualRange = b; }     /************************ Protected Methods********************/  /**   * Draw a Horizontal Axis.   * @param g Graphics context.   */     protected void drawHAxis(Graphics g) {          Graphics lg;          int i;          int j;          int x0,y0,x1,y1;          int direction;          int offset;          double minor_step;                    Color c;          double vmin = minimum*1.001;          double vmax = maximum*1.001;          double scale  = (amax.x - amin.x)/(maximum - minimum);          double val;          double minor;//          System.out.println("Drawing Horizontal Axis!");          if( axiscolor != null) g.setColor(axiscolor);          g.drawLine(amin.x,amin.y,amax.x,amax.y);                    if(position == TOP )     direction =  1;          else                     direction = -1;          minor_step = label_step/(minor_tic_count+1);          val = label_start;          for(i=0; i<label_count; i++) {              if( val >= vmin && val <= vmax ) {                 y0 = amin.y;                 x0 = amin.x + (int)( ( val - minimum ) * scale);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲乱码国产乱码精品精的特点| 中文字幕国产一区二区| 日韩免费视频一区| 精品久久一区二区| 中文字幕精品—区二区四季| 亚洲欧洲成人自拍| 亚洲国产色一区| 婷婷国产在线综合| 国产激情视频一区二区三区欧美 | 免费看日韩a级影片| 免费一级欧美片在线观看| 国产成人av一区二区三区在线| 国产成a人无v码亚洲福利| 欧美色图在线观看| 久久午夜电影网| 日韩福利电影在线| 色婷婷亚洲综合| 26uuu亚洲| 日韩精品一区第一页| 成人av在线一区二区三区| 91精品国产91综合久久蜜臀| 中文字幕av一区二区三区高 | 不卡一卡二卡三乱码免费网站| 色婷婷综合在线| 亚洲色图一区二区| 粉嫩av一区二区三区粉嫩 | 风流少妇一区二区| 国产精品情趣视频| 久久免费午夜影院| 久久国产精品99久久久久久老狼| 欧美在线观看视频一区二区三区| 亚洲欧洲精品一区二区三区| 国产成人啪免费观看软件| 久久精品亚洲精品国产欧美 | 一本一道久久a久久精品综合蜜臀| 国产在线视视频有精品| 2023国产精品| 国产精品一区免费在线观看| 久久精品亚洲精品国产欧美 | 自拍视频在线观看一区二区| av电影天堂一区二区在线观看| 亚洲国产激情av| 日本乱人伦aⅴ精品| 五月婷婷久久综合| 精品乱人伦一区二区三区| 丁香婷婷综合网| 亚洲免费三区一区二区| 7777精品伊人久久久大香线蕉经典版下载 | 国产精品影视在线| 国产精品色婷婷| 欧美日韩高清在线| 国内偷窥港台综合视频在线播放| 国产午夜亚洲精品理论片色戒| 99国内精品久久| 韩国一区二区在线观看| 专区另类欧美日韩| 久久久久久久av麻豆果冻| 色婷婷综合久久久中文一区二区| 日韩精品一级二级| 一个色综合网站| 国产人妖乱国产精品人妖| 欧美一区二区三区成人| 色婷婷久久一区二区三区麻豆| 久久精品av麻豆的观看方式| 亚洲视频一二三| 中文字幕一区二区视频| 精品欧美一区二区久久| 欧美日韩专区在线| 日本久久电影网| aaa欧美色吧激情视频| www.久久久久久久久| 国产成+人+日韩+欧美+亚洲| 亚洲成a人片在线观看中文| 亚洲免费观看高清完整版在线观看 | 成人在线视频一区| 国产99一区视频免费 | 久久精品人人做人人爽人人| 91精品国产品国语在线不卡| 欧美三级在线看| 欧美日韩国产区一| 欧美一区二区三区思思人| 欧美一区二区三区在| 日韩一区二区三区免费观看| 91精品国产入口| 久久先锋影音av| 国产欧美日韩在线看| 国产精品丝袜在线| 国产精品麻豆网站| 一区二区三区中文字幕在线观看| 亚洲另类在线制服丝袜| 婷婷丁香激情综合| 国产一区亚洲一区| 成人一级片网址| 欧美三区在线视频| 337p粉嫩大胆色噜噜噜噜亚洲| 国产亚洲人成网站| 一区二区三区国产精华| 久久99久久久久久久久久久| 国产东北露脸精品视频| 欧美日韩一区中文字幕| 久久精品一级爱片| 亚洲高清在线视频| 国产91精品露脸国语对白| 欧美日韩精品综合在线| www激情久久| 日日摸夜夜添夜夜添亚洲女人| 国产激情一区二区三区桃花岛亚洲| 91亚洲国产成人精品一区二区三| 欧美亚一区二区| 亚洲日本欧美天堂| 不卡在线视频中文字幕| 欧美不卡在线视频| 蜜臀av性久久久久av蜜臀妖精| 在线观看日韩高清av| 国产精品美女久久福利网站| 极品少妇一区二区三区精品视频| 欧美美女bb生活片| 亚洲午夜久久久久中文字幕久| 99re热这里只有精品免费视频| 26uuu亚洲| 成人午夜激情在线| 久久午夜羞羞影院免费观看| 极品少妇xxxx精品少妇| 亚洲精品一区二区精华| 国产一区二区三区在线观看免费视频 | 精品亚洲免费视频| 精品福利在线导航| 国产精品自拍三区| 中文字幕一区二区三区色视频| 国产91丝袜在线播放0| 国产欧美日本一区二区三区| av在线不卡免费看| 视频一区二区三区入口| 欧美天天综合网| 麻豆精品蜜桃视频网站| 久久久精品国产免费观看同学| 激情六月婷婷久久| 亚洲欧美在线视频| 欧美区视频在线观看| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 欧美日韩国产另类一区| 精品一区二区久久| 亚洲女厕所小便bbb| 日韩欧美视频在线| 高清av一区二区| 青青草97国产精品免费观看无弹窗版 | 国产性色一区二区| 欧美人牲a欧美精品| 韩国女主播一区| 亚洲成人先锋电影| 国产精品嫩草影院av蜜臀| 欧美日韩精品欧美日韩精品 | 国产精品盗摄一区二区三区| 欧美在线视频你懂得| 国产麻豆成人精品| 蜜桃传媒麻豆第一区在线观看| 国产精品麻豆网站| 国产欧美日韩亚州综合| 欧美mv日韩mv国产网站| 制服丝袜在线91| 欧美日韩你懂的| 欧美日韩国产成人在线免费| 成人午夜电影久久影院| 国产成人精品免费在线| 久久精品av麻豆的观看方式| 亚洲成av人在线观看| 亚洲一区在线免费观看| 亚洲精品videosex极品| √…a在线天堂一区| 亚洲色欲色欲www| 亚洲男同1069视频| 亚洲午夜电影在线观看| 无码av免费一区二区三区试看| 亚洲国产成人精品视频| 香蕉影视欧美成人| 久久国产精品免费| 国产精品正在播放| 99久久伊人网影院| 国产69精品一区二区亚洲孕妇| 国产成人精品免费网站| 91在线视频18| 91麻豆精品国产自产在线| 2017欧美狠狠色| 亚洲日本乱码在线观看| 日本欧美大码aⅴ在线播放| 国产一区二区中文字幕| 91日韩一区二区三区| 日韩一区二区电影| 亚洲欧美日韩人成在线播放| 午夜精品一区二区三区三上悠亚| 久久国产视频网| 91激情五月电影| 国产日韩欧美精品综合| 亚洲第一福利一区| 国产91精品在线观看| 欧美一级午夜免费电影| 亚洲色欲色欲www| 国产99久久久国产精品| 欧美一级艳片视频免费观看| 亚洲精选免费视频|