Package org.sikuli.api.visual

Examples of org.sikuli.api.visual.ScreenRegionCanvas.display()


    ScreenRegionCanvas canvas = new ScreenRegionCanvas(s);
    canvas.addBox(thumb);
    canvas.addLabel(Relative.to(thumb).topLeft().above(20).getScreenLocation(), "ImageTarget:");
    canvas.addImage(Relative.to(thumb).topLeft().above(25).right(85).getScreenLocation(), ImageIO.read(Images.ThumbIcon));
    canvas.display(3);

    Target target = new ImageTarget(Images.UncheckedCheckbox);   
    List<ScreenRegion> checkboxes = s.findAll(target);

    canvas.clear();   
View Full Code Here


      String labelText = String.format("(%d):%1.3f", no, r.getScore());
      canvas.addBox(r).withLineColor(Color.green).withLineWidth(1);
      canvas.addLabel(Relative.to(r).topLeft().left(70).getScreenLocation(),labelText).withColor(Color.blue);
      no++;
    }
    canvas.display(3);
   
    simulator.close();
   
  }
}
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.