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

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

?? robot.java

?? gcc的組建
?? JAVA
字號:
/* Robot.java -- a native input event generator   Copyright (C) 2004, 2005  Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.awt;import gnu.java.awt.ClasspathToolkit;import java.lang.reflect.InvocationTargetException;import java.awt.event.InputEvent;import java.awt.image.BufferedImage;import java.awt.peer.RobotPeer;/** * The Robot class is used to simulate user interaction with graphical * programs.  It can generate native windowing system input events and * retrieve image data from the current screen.  Robot is used to test * the AWT and Swing library implementations; it can also be used to * create self-running demo programs. * * Since Robot generates native windowing system events, rather than * simply inserting {@link AWTEvent}s on the AWT event queue, its use * is not restricted to Java programs.  It can be used to * programatically drive any graphical application. * * This implementation requires an X server that supports the XTest * extension. * * @author Thomas Fitzsimmons (fitzsim@redhat.com) * * @since 1.3 */public class Robot{  private boolean waitForIdle;  private int autoDelay;  private RobotPeer peer;  /**   * Construct a Robot object that operates on the default screen.   *   * @exception AWTException if GraphicsEnvironment.isHeadless()   * returns true or if the X server does not support the XTest   * extension   * @exception SecurityException if createRobot permission is not   * granted   */  public Robot () throws AWTException  {    if (GraphicsEnvironment.isHeadless ())      throw new AWTException ("Robot: headless graphics environment");    SecurityManager sm = System.getSecurityManager ();    if (sm != null)      sm.checkPermission (new AWTPermission ("createRobot"));    ClasspathToolkit tk = (ClasspathToolkit) Toolkit.getDefaultToolkit ();    // createRobot will throw AWTException if XTest is not supported.    peer = tk.createRobot (GraphicsEnvironment.getLocalGraphicsEnvironment ()			   .getDefaultScreenDevice ());  }  /**   * Construct a Robot object that operates on the specified screen.   *   * @exception AWTException if GraphicsEnvironment.isHeadless()   * returns true or if the X server does not support the XTest   * extension   * @exception IllegalArgumentException if screen is not a screen   * GraphicsDevice   * @exception SecurityException if createRobot permission is not   * granted   */  public Robot (GraphicsDevice screen) throws AWTException  {    if (GraphicsEnvironment.isHeadless ())      throw new AWTException ("Robot: headless graphics environment");    if (screen.getType () != GraphicsDevice.TYPE_RASTER_SCREEN)      throw new IllegalArgumentException ("Robot: graphics"					  + " device is not a screen");    SecurityManager sm = System.getSecurityManager ();    if (sm != null)      sm.checkPermission (new AWTPermission ("createRobot"));    ClasspathToolkit tk = (ClasspathToolkit) Toolkit.getDefaultToolkit ();    // createRobot will throw AWTException if XTest is not supported.    peer = tk.createRobot (screen);  }  /**   * Move the mouse pointer to absolute coordinates (x, y).   *   * @param x the destination x coordinate   * @param y the destination y coordinate   */  public void mouseMove(int x, int y)  {    peer.mouseMove (x, y);    if (waitForIdle)      waitForIdle ();    if (autoDelay > 0)      delay (autoDelay);  }  /**   * Press one or more mouse buttons.   *   * @param buttons the buttons to press; a bitmask of one or more of   * these {@link InputEvent} fields:   *   * <ul>   *   <li>BUTTON1_MASK</li>   *   <li>BUTTON2_MASK</li>   *   <li>BUTTON3_MASK</li>   * </ul>   *   * @exception IllegalArgumentException if the button mask is invalid   */  public void mousePress (int buttons)  {    if ((buttons & InputEvent.BUTTON1_MASK) == 0	&& (buttons & InputEvent.BUTTON2_MASK) == 0	&& (buttons & InputEvent.BUTTON3_MASK) == 0)      throw new IllegalArgumentException ("Robot: mousePress:"					  + " invalid button mask");    peer.mousePress (buttons);    if (waitForIdle)      waitForIdle ();    if (autoDelay > 0)      delay (autoDelay);  }  /**   * Release one or more mouse buttons.   *   * @param buttons the buttons to release; a bitmask of one or more   * of these {@link InputEvent} fields:   *   * <ul>   *   <li>BUTTON1_MASK</li>   *   <li>BUTTON2_MASK</li>   *   <li>BUTTON3_MASK</li>   * </ul>   *   * @exception IllegalArgumentException if the button mask is invalid   */  public void mouseRelease(int buttons)  {    if ((buttons & InputEvent.BUTTON1_MASK) == 0	&& (buttons & InputEvent.BUTTON2_MASK) == 0	&& (buttons & InputEvent.BUTTON3_MASK) == 0)      throw new IllegalArgumentException ("Robot: mouseRelease:"					  + " invalid button mask");    peer.mouseRelease (buttons);    if (waitForIdle)      waitForIdle ();    if (autoDelay > 0)      delay (autoDelay);  }  /**   * Rotate the mouse scroll wheel.   *   * @param wheelAmt number of steps to rotate mouse wheel.  negative   * to rotate wheel up (away from the user), positive to rotate wheel   * down (toward the user).   *   * @since 1.4   */  public void mouseWheel (int wheelAmt)  {    peer.mouseWheel (wheelAmt);    if (waitForIdle)      waitForIdle ();    if (autoDelay > 0)      delay (autoDelay);  }  /**   * Press a key.   *   * @param keycode key to press, a {@link java.awt.event.KeyEvent} VK_ constant   *   * @exception IllegalArgumentException if keycode is not a valid key   */  public void keyPress (int keycode)  {    peer.keyPress (keycode);    if (waitForIdle)      waitForIdle ();    if (autoDelay > 0)      delay (autoDelay);  }  /**   * Release a key.   *   * @param keycode key to release, a {@link java.awt.event.KeyEvent} VK_    *                constant   *   * @exception IllegalArgumentException if keycode is not a valid key   */  public void keyRelease (int keycode)  {    peer.keyRelease (keycode);    if (waitForIdle)      waitForIdle ();    if (autoDelay > 0)      delay (autoDelay);  }  /**   * Return the color of the pixel at the given screen coordinates.   *   * @param x the x coordinate of the pixel   * @param y the y coordinate of the pixel   *   * @return the Color of the pixel at screen coodinates <code>(x, y)</code>   */  public Color getPixelColor (int x, int y)  {    return new Color (peer.getRGBPixel (x, y));  }  /**   * Create an image containing pixels read from the screen.  The   * image does not include the mouse pointer.   *   * @param screenRect the rectangle of pixels to capture, in screen   * coordinates   *   * @return a BufferedImage containing the requested pixels   *   * @exception IllegalArgumentException if requested width and height   * are not both greater than zero   * @exception SecurityException if readDisplayPixels permission is   * not granted   */  public BufferedImage createScreenCapture (Rectangle screenRect)  {    if (screenRect.width <= 0)      throw new IllegalArgumentException ("Robot: capture width is <= 0");    if (screenRect.height <= 0)      throw new IllegalArgumentException ("Robot: capture height is <= 0");    SecurityManager sm = System.getSecurityManager ();    if (sm != null)      sm.checkPermission (new AWTPermission ("readDisplayPixels"));    int[] pixels = peer.getRGBPixels (screenRect);    BufferedImage bufferedImage =      new BufferedImage (screenRect.width, screenRect.height,			 BufferedImage.TYPE_INT_ARGB);    bufferedImage.setRGB (0, 0, screenRect.width, screenRect.height,			  pixels, 0, screenRect.width);    return bufferedImage;  }  /**   * Check if this Robot automatically calls {@link #waitForIdle()} after   * generating an event.   *   * @return true if waitForIdle is automatically called   */  public boolean isAutoWaitForIdle ()  {    return waitForIdle;  }  /**   * Set whether or not this Robot automatically calls {@link   * #waitForIdle()} after generating an event.   *   * @param isOn true if waitForIdle should be called automatically   */  public void setAutoWaitForIdle (boolean isOn)  {    waitForIdle = isOn;  }  /**   * Retrieve the length of time this Robot sleeps after generating an   * event.   *   * @return the length of time in milliseconds   */  public int getAutoDelay ()  {    return autoDelay;  }  /**   * Set the length of time this Robot sleeps after generating an   * event.   *   * @param ms the length of time in milliseconds   *   * @exception IllegalArgumentException if ms is not between 0 and   * 60,000 milliseconds inclusive   */  public void setAutoDelay (int ms)  {    if (ms <= 0 || ms >= 60000)      throw new IllegalArgumentException ("Robot: delay length out-of-bounds");    autoDelay = ms;  }  /**   * Sleep for a specified length of time.   *   * @param ms the length of time in milliseconds   *   * @exception IllegalArgumentException if ms is not between 0 and   * 60,000 milliseconds inclusive   */  public void delay (int ms)  {    if (ms < 0 || ms > 60000)      throw new IllegalArgumentException ("Robot: delay length out-of-bounds");    try      {	Thread.sleep (ms);      }    catch (InterruptedException e)      {	System.err.println ("Robot: delay interrupted");      }  }  /**   * Wait until all events currently on the event queue have been   * dispatched.   */  public void waitForIdle ()  {    if (EventQueue.isDispatchThread ())      throw new IllegalThreadStateException ("Robot: waitForIdle called from "					     + "the event dispatch thread");    try      {	EventQueue.invokeAndWait (new Runnable () { public void run () { } });      }    catch (InterruptedException e)      {	System.err.println ("Robot: waitForIdle interrupted");      }    catch (InvocationTargetException e)      {	System.err.println ("Robot: waitForIdle cannot invoke target");      }  }  /**   * Return a string representation of this Robot.   *   * @return a string representation   */  public String toString ()  {    return getClass ().getName ()	+ "[ autoDelay = " + autoDelay + ", autoWaitForIdle = "	+ waitForIdle + " ]";  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人性视频网站| 亚洲国产精品av| 亚洲国产岛国毛片在线| 亚洲永久精品大片| 国产91对白在线观看九色| 欧美视频在线一区二区三区 | 东方aⅴ免费观看久久av| 在线观看欧美日本| 亚洲国产精品精华液ab| 日本强好片久久久久久aaa| 一本色道久久综合亚洲aⅴ蜜桃| 日韩欧美国产综合一区| 一区二区三区成人在线视频| 国产精品1024| 日韩欧美www| 日本女优在线视频一区二区| 一本到不卡免费一区二区| 中文无字幕一区二区三区 | 亚洲在线免费播放| 福利电影一区二区| 亚洲精品在线免费观看视频| 午夜精品aaa| 欧美体内she精高潮| 亚洲精品少妇30p| 99精品欧美一区二区三区综合在线| 久久一区二区三区国产精品| 久久se精品一区二区| 欧美在线观看18| 亚洲一区二区成人在线观看| 91一区二区在线| 国产精品久99| aaa亚洲精品| 亚洲女厕所小便bbb| 色悠久久久久综合欧美99| 亚洲美女在线一区| 欧美中文字幕一区| 夜夜精品视频一区二区| 欧美系列亚洲系列| 天天色天天操综合| 日韩三级高清在线| 国内精品不卡在线| 国产欧美日本一区视频| 成人精品小蝌蚪| 亚洲免费av观看| 欧美日韩亚洲另类| 久久精品国产99国产| 久久久久高清精品| 不卡视频在线看| 一区二区三区精品视频| 欧美精品一二三区| 看国产成人h片视频| 国产视频一区二区在线观看| 成人污污视频在线观看| 亚洲精品国产精品乱码不99 | 风间由美一区二区三区在线观看 | 蜜臀久久99精品久久久久宅男| 欧美精三区欧美精三区| 激情六月婷婷综合| 最新中文字幕一区二区三区| 在线观看国产日韩| 狠狠色2019综合网| 亚洲视频小说图片| 日韩午夜中文字幕| av在线免费不卡| 日韩福利视频导航| 国产精品嫩草影院com| 欧美日韩一级片在线观看| 麻豆成人在线观看| 中文字幕一区二区三区视频 | 2023国产精品视频| 91免费国产在线| 日本麻豆一区二区三区视频| 中文字幕国产一区二区| 91黄色免费版| 国产精品99久久久久| 亚洲一区av在线| 中文字幕va一区二区三区| 7777精品伊人久久久大香线蕉经典版下载 | 男女男精品视频网| 亚洲国产高清aⅴ视频| 欧美日韩免费观看一区三区| 国产1区2区3区精品美女| 亚洲一区二区在线观看视频| 国产亚洲精品精华液| 在线不卡a资源高清| 99久久99久久免费精品蜜臀| 久久国产精品99久久久久久老狼 | 日韩精品国产精品| 亚洲丝袜自拍清纯另类| 久久―日本道色综合久久| 欧美狂野另类xxxxoooo| 99re视频精品| 国产成人精品影院| 另类小说色综合网站| 亚洲午夜在线视频| 国产精品传媒视频| 国产性做久久久久久| 日韩免费视频线观看| 欧美日韩国产高清一区二区| 91玉足脚交白嫩脚丫在线播放| 国产自产v一区二区三区c| 亚洲成人福利片| 亚洲乱码国产乱码精品精可以看 | 精品久久免费看| 欧美日本国产视频| 欧美性一级生活| 91久久人澡人人添人人爽欧美 | 欧美日韩一区三区四区| 91亚洲精品久久久蜜桃| 成人性生交大片| 国产精品自拍毛片| 国产乱码精品一品二品| 国产精品一区二区三区乱码| 捆绑紧缚一区二区三区视频| 蜜臀久久99精品久久久久久9 | 国产成人免费高清| 国产成人精品免费| 国产99久久久国产精品免费看| 国产成人精品一区二区三区四区| 国模娜娜一区二区三区| 国产毛片精品视频| 国产成人自拍网| 不卡av在线免费观看| 99国产一区二区三精品乱码| 91亚洲午夜精品久久久久久| 在线观看成人免费视频| 91黄色激情网站| 91麻豆精品国产91久久久更新时间 | 亚洲男同性视频| 亚洲一区在线观看免费观看电影高清| 亚洲毛片av在线| 午夜精品福利视频网站| 精品在线免费观看| 国产一区二区主播在线| 成人av在线播放网址| 在线观看视频一区| 欧美一二三四区在线| 国产香蕉久久精品综合网| 国产精品美女久久久久久久久久久| 中文字幕中文在线不卡住| 亚洲自拍另类综合| 久久精品国产77777蜜臀| 成人午夜av电影| 欧美日韩二区三区| 久久久久久久久久看片| 国产精品每日更新| 三级影片在线观看欧美日韩一区二区| 久久精品国产成人一区二区三区 | 久久精品二区亚洲w码| 丁香激情综合国产| 欧美日韩一区二区在线视频| 精品国产91洋老外米糕| 日韩一区有码在线| 麻豆国产欧美日韩综合精品二区| www.激情成人| 日韩丝袜美女视频| 日韩美女视频一区| 久久爱另类一区二区小说| 91最新地址在线播放| 日韩欧美国产一区二区三区| 中文字幕一区二区三区在线不卡 | 欧美一级国产精品| 国产精品久久久久久久久免费相片 | 在线综合亚洲欧美在线视频| 日本一区二区成人在线| 日本午夜精品视频在线观看| 国产福利一区二区三区视频在线| 欧美日韩mp4| 最新成人av在线| 国产精品一级片| 日韩一级在线观看| 亚洲一区二区三区四区在线观看| 国产精品综合二区| 欧美日本高清视频在线观看| 亚洲日本一区二区| 国产91色综合久久免费分享| 欧美变态tickle挠乳网站| 亚洲尤物视频在线| 91免费视频网址| 国产精品理论片| 东方欧美亚洲色图在线| 26uuu精品一区二区| 美女视频网站黄色亚洲| 欧美人伦禁忌dvd放荡欲情| 亚洲欧美日韩国产中文在线| 国产91精品久久久久久久网曝门| 2024国产精品| 激情综合色播五月| 在线播放视频一区| 午夜精彩视频在线观看不卡| 色婷婷一区二区三区四区| 国产精品理伦片| 99re8在线精品视频免费播放| 久久亚洲欧美国产精品乐播| 久久精品国产亚洲5555| 欧美videos中文字幕| 老司机免费视频一区二区三区| 日韩欧美二区三区| 看片网站欧美日韩| 久久精品人人爽人人爽|