org.sikuli.script
Class DesktopRobot

java.lang.Object
  extended by java.awt.Robot
      extended by org.sikuli.script.DesktopRobot
All Implemented Interfaces:
IRobot

public class DesktopRobot
extends Robot
implements IRobot


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sikuli.script.IRobot
IRobot.KeyMode
 
Constructor Summary
DesktopRobot(GraphicsDevice screen)
           
 
Method Summary
 ScreenImage captureScreen(Rectangle rect)
           
 void delay(int ms)
           
protected  void doType(IRobot.KeyMode mode, int... keyCodes)
           
 void dragDrop(Location start, Location end, int steps, long ms, int buttons)
           
 Object getDevice()
          Return the underlying device object (if any).
 void pressModifiers(int modifiers)
           
 void releaseModifiers(int modifiers)
           
 void smoothMove(Location dest)
           
 void smoothMove(Location src, Location dest, long ms)
           
 void typeChar(char character, IRobot.KeyMode mode)
           
 
Methods inherited from class java.awt.Robot
createScreenCapture, getAutoDelay, getPixelColor, isAutoWaitForIdle, keyPress, keyRelease, mouseMove, mousePress, mouseRelease, mouseWheel, setAutoDelay, setAutoWaitForIdle, toString, waitForIdle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sikuli.script.IRobot
keyPress, keyRelease, mouseMove, mousePress, mouseRelease, mouseWheel, setAutoDelay, waitForIdle
 

Constructor Detail

DesktopRobot

public DesktopRobot(GraphicsDevice screen)
             throws AWTException
Throws:
AWTException
Method Detail

smoothMove

public void smoothMove(Location dest)
Specified by:
smoothMove in interface IRobot

smoothMove

public void smoothMove(Location src,
                       Location dest,
                       long ms)
Specified by:
smoothMove in interface IRobot

dragDrop

public void dragDrop(Location start,
                     Location end,
                     int steps,
                     long ms,
                     int buttons)
Specified by:
dragDrop in interface IRobot

delay

public void delay(int ms)
Specified by:
delay in interface IRobot
Overrides:
delay in class Robot

captureScreen

public ScreenImage captureScreen(Rectangle rect)
Specified by:
captureScreen in interface IRobot

pressModifiers

public void pressModifiers(int modifiers)
Specified by:
pressModifiers in interface IRobot

releaseModifiers

public void releaseModifiers(int modifiers)
Specified by:
releaseModifiers in interface IRobot

doType

protected void doType(IRobot.KeyMode mode,
                      int... keyCodes)

typeChar

public void typeChar(char character,
                     IRobot.KeyMode mode)
Specified by:
typeChar in interface IRobot

getDevice

public Object getDevice()
Description copied from interface: IRobot
Return the underlying device object (if any).

Specified by:
getDevice in interface IRobot