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

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

?? g2dint.java

?? java 作圖的程序
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package graph;import java.awt.*;import java.applet.*;import java.net.URL;import java.util.*;/*******************************************************************************    Class  G2Dint******************************************************************************    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 an extension of Graph2D class.**    It adds interactive selection of the plotting range**    and can display the mouse position in user coordinates.***************************************************************************//** *    This class is an extension of Graph2D class. *    It adds interactive selection of the plotting range *    and can display the mouse position in user coordinates. * *    <h4>Mouse Events</h4> *    <dl> *     <dt>MouseDown *     <dd>Starts the range selection *     <dt>MouseDrag *     <dd>Drag out a rectangular range selection *     <dt>MouseUp *     <dd>Replot with modified plotting range. *     <dt> *    </dl> *    <h4>KeyDown Events</h4> *    <dl> *     <dt>R *     <dd>Redraw plot with default limits *     <dt>r *     <dd>Redraw plot using current limits *     <dt>m *     <dd>Pop window to enter manually plot range *     <dt>c *     <dd>Toggle pop-up window that displays the mouse position *         in user coordinates *     <dt>d *     <dd>Show coordinates of the closest data point to the cursor *     <dt>D *     <dd>Hide data coordinates pop-window *     <dt>h *     <dd>This key pressed in Any pop-window at any-time will hide it. *    </dl> *    <P> *    <B>Note:</B> To hide Any pop-window press the key <B>h</B> in the *    window. This will hide the window at any time. Depending on your *    windowing system the mouse button might have to be pressed in the *    popup window to ensure it has the keyboard focus. * * @version $Revision: 1.9 $, $Date: 1996/07/02 06:01:12 $. * @author Leigh Brookshaw */public class G2Dint extends Graph2D {/** *    Set to true when a rectangle is being dragged out by the mouse */      protected boolean drag = false;/** *    User limits. The user has set the limits using the mouse drag option */      protected boolean userlimits = false;/** *    Ths popup window for the cursor position command */      private Gin cpgin = null;/** *    Ths popup window for the data point command */      private Gin dpgin = null;/** *    The popup window to manually set the range */      private Range range = null;/** *    Button Down position */      private int x0,y0;/** *    Button Drag position */      private int  x1,y1;/***    Previous Button Drag position*/      private int x1old, y1old;/** *    Attached X Axis which must be registered with this class. *    This is one of the axes used to find the drag range. *    If no X axis is registered no mouse drag. */      protected Axis xaxis;/** *    Attached Y Axis which must be registered with this class. *    This is one of the axes used to find the drag range. *    If no Y axis is registered no mouse drag. */      protected Axis yaxis;/** *    Create Xaxis to be used for the drag scaling */      public Axis createXAxis() {         xaxis = super.createAxis(Axis.BOTTOM);         return xaxis;      }/** *    Create Yaxis to be used for the drag scaling */      public Axis createYAxis() {         yaxis = super.createAxis(Axis.LEFT);         return yaxis;      }/** *    Attach axis to be used for the drag scaling. X axes are assumed to *    have Axis position Axis.BOTTOM or Axis.TOP. Y axes are assumed *    to have position Axis.LEFT or Axis.RIGHT. * @param a Axis to attach * @see Axis */      public void attachAxis(Axis a) {         if(a==null) return;         super.attachAxis(a);                  if(a.getAxisPos() == Axis.BOTTOM || a.getAxisPos() == Axis.TOP) {              xaxis = a;         } else {              yaxis = a;         }      }/** *  New update method incorporating mouse dragging. */    public void update(Graphics g) {          Rectangle r = bounds();          Color c = g.getColor();	  /* The r.x and r.y returned from bounds is relative to the	  ** parents space so set them equal to zero          */          r.x = 0;          r.y = 0;          if(drag) {	    /**	     * Set the dragColor. Do it everytime just incase someone             * is playing silly buggers with the background color. 	     */  	     g.setColor(DataBackground);             float hsb[] = Color.RGBtoHSB(                           DataBackground.getRed(),                           DataBackground.getGreen(),                           DataBackground.getBlue(),                            null);              if(hsb[2] < 0.5) g.setXORMode(Color.white);              else             g.setXORMode(Color.black);/***         Drag out the new box.**         Use drawLine instead of drawRect to avoid problems**         when width and heights become negative. Seems drawRect**         can't handle it!*/	   /*	   ** Draw over old box to erase it. This works because XORMode	   ** has been set. If from one call to the next the background           ** color changes going to get some odd results.	   */           g.drawLine(x0, y0, x1old, y0);           g.drawLine(x1old, y0, x1old, y1old);           g.drawLine(x1old, y1old, x0, y1old);           g.drawLine(x0, y1old, x0, y0);	   /*	   ** draw out new box	   */           g.drawLine(x0, y0, x1, y0);           g.drawLine(x1, y0, x1, y1);           g.drawLine(x1, y1, x0, y1);           g.drawLine(x0, y1, x0, y0);	   /*	   ** Set color back to default color	   */           g.setColor(c);           x1old = x1;           y1old = y1;           return;           }          if( clearAll ) {             g.setColor(getBackground());             g.fillRect(r.x,r.y,r.width,r.height);             g.setColor(c);          }          if( paintAll ) paint(g);    }/** * Handle the Key Down events. */   public boolean keyDown(Event e, int key) {               if(xaxis==null || yaxis==null) return false;               switch ( key ) {               case 'R':                          xaxis.resetRange();                          yaxis.resetRange();                          userlimits = false;                          repaint();                          return true;               case 'r':                              repaint();                              return true; 	       case 'c':                             if( cpgin == null) cpgin = new Gin("Position");                             if( cpgin.isVisible() ) {                                     cpgin.hide();  		             } else {                                    cpgin.show();		             }                             return true; 	       case 'D':                            if(dpgin != null) dpgin.hide();                            return true;  	       case 'd':                            if(dpgin == null) dpgin = new Gin("Data Point");                            dpgin.show();                            double d[] = getClosestPoint(e.x, e.y);                            dpgin.setXlabel( d[0] );                            dpgin.setYlabel( d[1] );                            int ix = xaxis.getInteger(d[0]);                            int iy = yaxis.getInteger(d[1]);                            if( ix >= datarect.x &&                                ix <= datarect.x +datarect.width &&                                 iy >= datarect.y &&                                iy <= datarect.y +datarect.height ) {                                Graphics g = getGraphics();                                g.fillOval(ix-4, iy-4, 8, 8); 			    }                            return true;		case 'm':                            if(range == null) range = new Range(this);                                                   range.show();                            range.requestFocus();                            userlimits = true;                            return true;	       default://                             System.out.println("KeyPress "+e.key);                             return false;               }	     }/** * Handle the Mouse Down events */    public boolean mouseDown(Event e, int x, int y) {                if(xaxis==null || yaxis==null) return false;		/*		** Soon as the mouse button is pressed request the Focus		** otherwise we will miss key events		*/                requestFocus();                x0 = x;                y0 = y;                drag = true;                 x1old = x0;                y1old = y0;                if(x0 < datarect.x) x0 = datarect.x;                else                if(x0 > datarect.x + datarect.width )                     x0 = datarect.x + datarect.width;                if(y0 < datarect.y) y0 = datarect.y;                else                if(y0 > datarect.y + datarect.height )                     y0 = datarect.y + datarect.height;                return true;     }/** * Handle the Mouse Up events */    public boolean mouseUp(Event e, int x, int y) {                if(xaxis==null || yaxis==null) return false;                x1   = x;                y1   = y;                if(drag) userlimits = true;                drag = false;                if(x1 < datarect.x) x1 = datarect.x;                else                if(x1 > datarect.x + datarect.width )                     x1 = datarect.x + datarect.width;                if(y1 < datarect.y) y1 = datarect.y;                else                if(y1 > datarect.y + datarect.height )                     y1 = datarect.y + datarect.height;                if( Math.abs(x0-x1) > 5 &&  Math.abs(y0-y1) > 5 ) {                   if(x0 < x1 ) {                                      xaxis.minimum = xaxis.getDouble(x0);                      xaxis.maximum = xaxis.getDouble(x1);                   } else {                      xaxis.maximum = xaxis.getDouble(x0);                      xaxis.minimum = xaxis.getDouble(x1);                   }                   if(y0 >y1 ) {                                      yaxis.minimum = yaxis.getDouble(y0);                      yaxis.maximum = yaxis.getDouble(y1);                   } else {                      yaxis.maximum = yaxis.getDouble(y0);                      yaxis.minimum = yaxis.getDouble(y1);                   }                   repaint();                 }                return true;	      }/** * Handle the Mouse Drag events */    public boolean mouseDrag(Event e, int x, int y) {                if(xaxis==null || yaxis==null) return false;                x1   = x;                y1   = y;                if(drag) {                  if(x1 < datarect.x) x1 = datarect.x;                  else

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品看片你懂得| 精品久久久久香蕉网| 国产成人精品免费视频网站| 久久99久国产精品黄毛片色诱| 午夜视频在线观看一区| 日韩电影在线免费观看| 日韩精品一级二级| 蜜桃一区二区三区四区| 久久99国产精品尤物| 国产一区二区伦理片| 国产凹凸在线观看一区二区| 国产91精品一区二区麻豆网站| 国产福利一区在线| 97久久精品人人做人人爽| 91在线观看免费视频| 91免费观看视频| 欧美日韩一区二区三区在线| 欧美一级xxx| 国产网站一区二区| 亚洲裸体xxx| 视频一区在线视频| 国产乱码精品一区二区三| eeuss鲁片一区二区三区在线看 | 99久久伊人精品| 91亚洲精品久久久蜜桃网站| 色久综合一二码| 欧美一区在线视频| 欧美激情一区二区在线| 亚洲午夜在线视频| 奇米色一区二区| 成人激情午夜影院| 91精品婷婷国产综合久久竹菊| 精品国产露脸精彩对白| 亚洲美女偷拍久久| 久久精品国产精品青草| 99久久er热在这里只有精品15 | 国产揄拍国内精品对白| 91影院在线观看| 日韩精品一区在线| 亚洲情趣在线观看| 紧缚奴在线一区二区三区| 成人va在线观看| 日韩欧美国产精品一区| 日韩毛片高清在线播放| 激情综合色播激情啊| 91福利视频网站| 国产精品色在线| 激情伊人五月天久久综合| 欧美在线一区二区三区| 国产拍欧美日韩视频二区| 日本sm残虐另类| 精品婷婷伊人一区三区三| 亚洲人吸女人奶水| 成人午夜又粗又硬又大| 欧美一级艳片视频免费观看| 一区二区三区四区蜜桃| 成人av电影在线| 欧美精品一区二区三区蜜桃视频| 亚瑟在线精品视频| 色噜噜狠狠色综合中国| 亚洲精品一区二区三区精华液| 亚洲成av人片在线| 欧美在线制服丝袜| 一区二区久久久久| 99精品视频一区二区| 国产精品免费视频一区| 国产精品乡下勾搭老头1| 欧美刺激午夜性久久久久久久| 午夜久久久久久电影| 欧美亚洲国产怡红院影院| 亚洲裸体在线观看| 在线日韩av片| 亚洲高清免费一级二级三级| 色综合天天综合在线视频| 成人欧美一区二区三区黑人麻豆| 国产成人在线视频播放| 久久青草欧美一区二区三区| 国产一区二区福利| 久久色在线观看| 成人午夜免费电影| 国产精品毛片a∨一区二区三区| 成人高清伦理免费影院在线观看| 中文久久乱码一区二区| 99精品国产热久久91蜜凸| 亚洲色图视频网| 欧美色图激情小说| 蜜桃一区二区三区在线| 欧美变态tickle挠乳网站| 国产九色sp调教91| 亚洲欧美一区二区三区孕妇| 日本韩国精品一区二区在线观看| 亚洲不卡av一区二区三区| 日韩精品一区二区三区蜜臀| 国产精品自拍三区| 亚洲视频每日更新| 欧美另类高清zo欧美| 韩国毛片一区二区三区| 国产精品色噜噜| 欧美性色黄大片| 麻豆精品在线视频| 国产精品热久久久久夜色精品三区| 91蜜桃免费观看视频| 视频一区欧美精品| 国产欧美精品区一区二区三区| 91免费观看在线| 蜜桃一区二区三区在线| 国产精品国产自产拍高清av | 日本sm残虐另类| 国产欧美日韩精品一区| 在线观看免费亚洲| 国产一区视频网站| 亚洲激情男女视频| 久久色视频免费观看| 欧美午夜精品电影| 国产风韵犹存在线视精品| 亚洲国产综合色| 国产日本一区二区| 欧美精品tushy高清| 不卡一二三区首页| 激情综合色播五月| 亚洲一区在线看| 国产精品欧美一区喷水| 制服.丝袜.亚洲.中文.综合| 波多野结衣视频一区| 欧美aa在线视频| 亚洲高清视频中文字幕| 中文字幕av资源一区| 日韩精品一区二区三区视频在线观看 | 91亚洲永久精品| 激情综合色综合久久综合| 亚洲一区日韩精品中文字幕| 国产亚洲欧美一级| 日韩午夜激情av| 欧美日韩免费不卡视频一区二区三区| 国产精品资源网| 麻豆91精品91久久久的内涵| 亚洲精品国产无天堂网2021| 欧美高清在线视频| 久久综合中文字幕| 日韩亚洲欧美成人一区| 91福利国产精品| 91麻豆精品视频| 91欧美一区二区| proumb性欧美在线观看| 国产成人精品一区二区三区四区| 久久精品国产亚洲一区二区三区| 亚洲成人自拍网| 亚洲成人免费在线| 亚洲二区在线观看| 一区二区三区加勒比av| 一区二区在线电影| 夜夜嗨av一区二区三区网页| 亚洲欧美日韩综合aⅴ视频| 国产精品久久久99| 国产精品国产精品国产专区不蜜 | 久久99最新地址| 老鸭窝一区二区久久精品| 免费的国产精品| 激情五月婷婷综合| 国产不卡在线一区| 91视视频在线观看入口直接观看www | 国产精品99久久不卡二区| 国产高清视频一区| 成人一区二区三区在线观看 | 轻轻草成人在线| 激情综合网激情| 成人黄色电影在线| 91久久一区二区| 欧美日韩精品三区| 精品成人私密视频| 国产精品网站在线播放| 伊人性伊人情综合网| 香蕉久久夜色精品国产使用方法 | 国产精品久久久久久久浪潮网站 | 欧美在线播放高清精品| 欧美丰满一区二区免费视频| 日韩午夜激情av| 国产精品伦一区二区三级视频| 亚洲欧美区自拍先锋| 日韩成人免费电影| 懂色一区二区三区免费观看| 在线日韩国产精品| 精品久久国产97色综合| 国产精品高潮久久久久无| 一区二区三区在线视频播放 | 东方欧美亚洲色图在线| 97aⅴ精品视频一二三区| 欧美人牲a欧美精品| 亚洲免费av观看| 午夜久久久久久电影| 国产69精品久久99不卡| 欧美老年两性高潮| 国产欧美一区二区精品仙草咪| 亚洲永久免费视频| 国产不卡视频在线播放| 91精品麻豆日日躁夜夜躁| 国产精品亲子伦对白| 美国毛片一区二区| 91麻豆国产福利精品| 久久综合色8888|