org.sikuli.script
Class Screen
java.lang.Object
org.sikuli.script.Region
org.sikuli.script.Screen
- All Implemented Interfaces:
- IScreen, Observer
- Direct Known Subclasses:
- UnionScreen
public class Screen
- extends Region
- implements Observer, IScreen
Fields inherited from class org.sikuli.script.Region |
_autoWaitTimeout, _defaultFindFailedResponse, _evtMgr, _lastMatch, _lastMatches, _lastScreenImage, _observing, _throwException, h, w, x, y |
Methods inherited from class org.sikuli.script.Region |
above, above, below, below, click, click, create, create, create, create, doubleClick, doubleClick, drag, dragDrop, dragDrop, dropAt, dropAt, exists, exists, find, findAll, findAllNow, findNow, getAutoWaitTimeout, getBottomLeft, getBottomRight, getCenter, getEventManager, getFindFailedResponse, getH, getLastMatch, getLastMatches, getLocationFromPSRML, getRect, getRegionFromPSRM, getROI, getScreen, getThrowException, getTopLeft, getTopRight, getW, getX, getY, highlight, highlight, highlight, hover, init, inside, keyDown, keyDown, keyUp, keyUp, keyUp, left, left, listText, morphTo, mouseDown, mouseMove, mouseUp, mouseUp, moveTo, nearby, nearby, observe, observe, observeInBackground, offset, onAppear, onChange, onChange, onVanish, paste, paste, right, right, rightClick, rightClick, setAutoWaitTimeout, setFindFailedResponse, setH, setRect, setRect, setRect, setROI, setROI, setROI, setThrowException, setW, setX, setY, stopObserver, text, toJythonRegion, type, type, type, type, updateSelf, wait, wait, wait, waitAll, waitVanish, waitVanish, wheel, wheel |
_curGD
protected GraphicsDevice _curGD
_curID
protected int _curID
_primaryScreen
protected static int _primaryScreen
_waitPrompt
protected boolean _waitPrompt
_prompt
protected CapturePrompt _prompt
_overlay
protected ScreenHighlighter _overlay
Screen
public Screen(int id)
Screen
public Screen()
newRegion
public Region newRegion(Rectangle rect)
- Specified by:
newRegion
in interface IScreen
getNumberScreens
public static int getNumberScreens()
getRobot
public static IRobot getRobot(int id)
getPrimaryId
public static int getPrimaryId()
getRobot
public IRobot getRobot()
- Specified by:
getRobot
in interface IScreen
getGraphicsDevice
public GraphicsDevice getGraphicsDevice()
getBounds
public static Rectangle getBounds(int id)
getBounds
public Rectangle getBounds()
- Specified by:
getBounds
in interface IScreen
getID
public int getID()
initBounds
protected void initBounds()
capture
public ScreenImage capture()
- Specified by:
capture
in interface IScreen
capture
public ScreenImage capture(int x,
int y,
int w,
int h)
- Specified by:
capture
in interface IScreen
capture
public ScreenImage capture(Rectangle rect)
- Specified by:
capture
in interface IScreen
capture
public ScreenImage capture(Region reg)
- Specified by:
capture
in interface IScreen
userCapture
public ScreenImage userCapture()
userCapture
public ScreenImage userCapture(String msg)
update
public void update(Subject s)
- Specified by:
update
in interface Observer
selectRegion
public Region selectRegion()
selectRegion
public Region selectRegion(String msg)
showMove
public void showMove(Location loc)
- Specified by:
showMove
in interface IScreen
showClick
public void showClick(Location loc)
- Show the click
- Specified by:
showClick
in interface IScreen
- Parameters:
loc
- the location of the click
showTarget
public void showTarget(Location loc)
- Specified by:
showTarget
in interface IScreen
showTarget
public void showTarget(Location loc,
double secs)
showDropTarget
public void showDropTarget(Location loc)
- Specified by:
showDropTarget
in interface IScreen
toString
public String toString()
- Overrides:
toString
in class Region