org.sikuli.api
Class StaticImageScreenRegion

java.lang.Object
  extended by org.sikuli.api.AbstractScreenRegion
      extended by org.sikuli.api.DefaultScreenRegion
          extended by org.sikuli.api.StaticImageScreenRegion
All Implemented Interfaces:
Region, ScreenRegion

public class StaticImageScreenRegion
extends DefaultScreenRegion

StaticImageScreenRegion class behaves like a ScreenRegion but it always provides a given image as the screenshot. Thus, all operations on it will be applied to the image. It is useful for debugging in a headless mode by supplying an image as a mock screenshot rather than taking a real screenshot.


Constructor Summary
StaticImageScreenRegion(BufferedImage image)
           
 
Method Summary
 
Methods inherited from class org.sikuli.api.DefaultScreenRegion
addROI, addState, addStateChangeEventListener, addTargetEventListener, capture, find, findAll, getCenter, getLastCapturedImage, getLowerLeftCorner, getLowerRightCorner, getROIs, getState, getStates, getUpperLeftCorner, getUpperRightCorner, removeState, removeTargetEventListener, snapshot, wait
 
Methods inherited from class org.sikuli.api.AbstractScreenRegion
getBounds, getHeight, getRelativeScreenLocation, getRelativeScreenRegion, getScore, getScreen, getWidth, getX, getY, setBounds, setHeight, setScore, setScreen, setWidth, setX, setY, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sikuli.api.ScreenRegion
getRelativeScreenLocation, getRelativeScreenRegion, getScore, getScreen, setScore, setScreen
 
Methods inherited from interface org.sikuli.api.Region
getBounds, getHeight, getWidth, getX, getY, setBounds
 

Constructor Detail

StaticImageScreenRegion

public StaticImageScreenRegion(BufferedImage image)


Copyright © 2014. All rights reserved.