Examples of DesktopScreen


Examples of org.sikuli.api.robot.desktop.DesktopScreen

  public DefaultScreenLocation(int x, int y) {
    this.x=x;
    this.y=y;
    this.screen= DesktopScreen.getScreenAtCoord(x, y);
    if (this.screen==null) {
      this.screen=new DesktopScreen(0);
    }
  }
View Full Code Here

Examples of org.sikuli.api.robot.desktop.DesktopScreen

  /**
   * Creates a ScreenRegion in full screen on the default screen (i.e., screen 0)
   */
  public DesktopScreenRegion(){
    super(new DesktopScreen(0));
  }
View Full Code Here

Examples of org.sikuli.api.robot.desktop.DesktopScreen

 
  /**
   * Creates a ScreenRegion in full screen on a screen specified by id
   */
  public DesktopScreenRegion(int id){
    super(new DesktopScreen(id));
  }
View Full Code Here

Examples of org.sikuli.api.robot.desktop.DesktopScreen

   * The related screen will be determined automatically based on the
   * center of the rectangle and default to screen 0 in case the center is
   * outside of all available screens.
   */
  public DesktopScreenRegion(int x, int y, int width, int height) {
    super(new DesktopScreen(0));
    setX(x);
    setY(y);
    setWidth(width);
    setHeight(height);
    DesktopScreen _screen= DesktopScreen.getScreenAtCoord(x+width/2,y+height/2);
    if (_screen!=null) {
      this.setScreen(_screen);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.