public class ADBScreen extends Region implements EventObserver, IScreen
Modifier and Type | Field and Description |
---|---|
boolean |
needsUnLock |
protected OverlayCapturePrompt |
prompt |
protected IRobot |
robot |
int |
waitAfterAction |
BB, BH, BL, BM, BR, C2, CH, CREATE_X_DIRECTION_LEFT, CREATE_X_DIRECTION_RIGHT, CREATE_Y_DIRECTION_BOTTOM, CREATE_Y_DIRECTION_TOP, CV, EAST, EAST_MID, EAST_NORTH, EAST_SOUTH, EH, EM, EN, ES, h, LB, LH, LL, LM, LT, M2, M3, MH, MID_HORIZONTAL, MID_VERTICAL, MIDDLE, MIDDLE_BIG, MM, MV, NE, NH, NM, NORTH, NORTH_EAST, NORTH_MID, NORTH_WEST, NW, otherScreen, RB, RH, RM, RR, RT, SE, SH, SM, SOUTH, SOUTH_EAST, SOUTH_MID, SOUTH_WEST, SW, TH, TL, TM, TR, TT, w, WEST, WEST_MID, WEST_NORTH, WEST_SOUTH, WH, WM, WN, WS, x, y
Constructor and Description |
---|
ADBScreen() |
Modifier and Type | Method and Description |
---|---|
ScreenImage |
capture() |
ScreenImage |
capture(int x,
int y,
int w,
int h) |
ScreenImage |
capture(Rectangle rect) |
ScreenImage |
capture(Region reg) |
String |
exec(String command,
String... args) |
Rectangle |
getBounds() |
ADBDevice |
getDevice() |
String |
getDeviceDescription() |
int |
getID() |
int |
getIdFromPoint(int srcx,
int srcy) |
String |
getIDString()
INTERNAL USE ONLY
|
ScreenImage |
getLastScreenImageFromScreen() |
IRobot |
getRobot() |
IScreen |
getScreen() |
boolean |
isValid()
Check wether thie Region is contained by any of the available screens
|
Location |
newLocation(int _x,
int _y) |
Region |
newRegion(int _x,
int _y,
int width,
int height) |
Region |
newRegion(Location loc,
int width,
int height) |
void |
showTarget(Location loc) |
protected void |
showTarget(Location loc,
double secs) |
static ADBScreen |
start() |
static void |
stop() |
String |
toString() |
void |
update(EventSubject s) |
ScreenImage |
userCapture(String msg) |
void |
wakeUp(int seconds) |
above, above, aboveAt, aboveAt, add, add, add, aInput, aKey, asOffset, aSwipe, aSwipeDown, aSwipeLeft, aSwipeRight, aSwipeUp, aTap, atMouse, below, below, belowAt, belowAt, checkMatch, click, click, click, compare, compare, contains, contains, containsMouse, copyTo, copyTo, create, create, create, create, create, create, delayClick, delayType, doubleClick, doubleClick, doubleClick, drag, dragDrop, dragDrop, dropAt, exists, exists, find, findAll, findAllByColumn, findAllByRow, findAllText, findBest, findText, findText, get, getAutoWaitTimeout, getBottomLeft, getBottomRight, getCell, getCenter, getCol, getCol, getCols, getColW, getEvent, getEvents, getFindFailedResponse, getH, getLastMatch, getLastMatches, getLastScreenImage, getLastScreenImageFile, getLastScreenImageFile, getLastScreenImageFile, getLocationFromTarget, getObserver, getObserveScanRate, getRect, getRectangle, getRepeatWaitTime, getROI, getRow, getRow, getRowH, getRows, getScreenContaining, getTarget, getThrowException, getTopLeft, getTopRight, getW, getWaitScanRate, getX, getY, grow, grow, grow, grow, grow, grow, grow, hasEvents, hasObserver, highlight, highlight, highlight, highlight, highlight, highlight, hover, hover, initScreen, inside, intersection, isObserving, isOtherScreen, isRasterValid, isVirtual, keyDown, keyDown, keyUp, keyUp, keyUp, left, left, leftAt, leftAt, listText, morphTo, mouseDown, mouseMove, mouseMove, mouseMove, mouseUp, mouseUp, moveTo, nearby, nearby, observe, observe, observeInBackground, observeInLine, offset, offset, onAppear, onAppear, onChange, onChange, onChange, onChange, onChangeDo, onVanish, onVanish, paste, paste, regionOnScreen, resetScreens, right, right, rightAt, rightAt, rightClick, rightClick, rightClick, saveLastScreenImage, saveScreenCapture, saveScreenCapture, saveScreenCapture, setActive, setAutoWaitTimeout, setBottomLeft, setBottomRight, setCenter, setCols, setFindFailedHandler, setFindFailedResponse, setH, setImageMissingHandler, setInactive, setLocation, setObserveScanRate, setOtherScreen, setOtherScreen, setRaster, setRect, setRect, setRect, setRepeatWaitTime, setROI, setROI, setROI, setROI, setRows, setScreen, setScreen, setSize, setThrowException, setTopLeft, setTopRight, setVirtual, setW, setWaitScanRate, setX, setY, showScreens, silentHighlight, stopObserver, stopObserver, text, toGlobalCoord, toStringShort, type, type, type, type, type, type, union, updateSelf, virtual, wait, wait, wait, waitVanish, waitVanish, wheel, wheel, wheel, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getH, getLastScreenImageFile, getRect, getW, getX, getY, isOtherScreen, toStringShort
protected IRobot robot
protected OverlayCapturePrompt prompt
public boolean needsUnLock
public int waitAfterAction
public static ADBScreen start()
public static void stop()
public boolean isValid()
Region
public ADBDevice getDevice()
public String getDeviceDescription()
public void wakeUp(int seconds)
public IScreen getScreen()
public void update(EventSubject s)
update
in interface EventObserver
public ScreenImage capture()
public ScreenImage capture(int x, int y, int w, int h)
public ScreenImage capture(Region reg)
public ScreenImage capture(Rectangle rect)
public void showTarget(Location loc)
showTarget
in interface IScreen
protected void showTarget(Location loc, double secs)
public String getIDString()
Region
getIDString
in interface IScreen
getIDString
in class Region
public ScreenImage getLastScreenImageFromScreen()
getLastScreenImageFromScreen
in interface IScreen
public ScreenImage userCapture(String msg)
userCapture
in interface IScreen
public int getIdFromPoint(int srcx, int srcy)
getIdFromPoint
in interface IScreen
public Region newRegion(int _x, int _y, int width, int height)
public Location newLocation(int _x, int _y)