| net.sourceforge.groboutils.uicapture.v1.IScriptMaker
All known Subclasses: net.sourceforge.groboutils.uicapture.v1.javamaker.JavaMaker,
IScriptMaker | public interface IScriptMaker (Code) | | Implementors of this interface accept a collection of UI captured
events as they relate to creating a play-back script. This interface
dictates that the contract for all IScriptMaker instances, the
IScriptMaker.start() method
must be called before any other method, and no other method, besides
toString(), may be called after invoking the
IScriptMaker.end() method.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/02/10 22:52:31 $ since: Jan 7, 2002 |
Method Summary | |
public void | end() Terminates the script generation. | public void | generateDelay(long milliseconds) Cause the script to delay for the given number of milliseconds. | public void | generateMoveMouse(int x, int y) Cause the script to move the mouse. | public void | generateMoveMouseWheel(int rotate) Cause the script to rotate the mouse wheel. | public void | generatePressKey(int keyCode) Cause the script to press a key. | public void | generatePressMouse(int modifer) Cause the script to press a mouse button. | public void | generateReleaseKey(int keyCode) Cause the script to release a key. | public void | generateReleaseMouse(int modifier) Cause the script to release a mouse button. | public void | generateScreenCapture(File originalImage, int x, int y, int width, int height) Cause the script to capture a screen shot. | public void | start() Starts the script generation. |
end | public void end()(Code) | | Terminates the script generation.
exception: IllegalStateException - if start() has not been called,or if end() has already been called. |
generateDelay | public void generateDelay(long milliseconds)(Code) | | Cause the script to delay for the given number of milliseconds.
Parameters: milliseconds - the number of milliseconds in the delay. exception: IllegalStateException - if start() has not been called,or if end() has already been called. |
generateMoveMouse | public void generateMoveMouse(int x, int y)(Code) | | Cause the script to move the mouse.
Parameters: x - the x-coordinate that the mouse moved to Parameters: y - the y-coordinate that the mouse moved to exception: IllegalStateException - if start() has not been called,or if end() has already been called. |
generateMoveMouseWheel | public void generateMoveMouseWheel(int rotate)(Code) | | Cause the script to rotate the mouse wheel.
Parameters: rotate - the number of rotations the mouse wheel generated. exception: IllegalStateException - if start() has not been called,or if end() has already been called. See Also: java.awt.event.MouseWheelEvent |
generatePressKey | public void generatePressKey(int keyCode)(Code) | | Cause the script to press a key.
Parameters: keyCode - code for the pressed key. exception: IllegalStateException - if start() has not been called,or if end() has already been called. See Also: java.awt.event.KeyEvent |
generatePressMouse | public void generatePressMouse(int modifer)(Code) | | Cause the script to press a mouse button.
Parameters: modifier - the modifier code for the mouse button pressed. exception: IllegalStateException - if start() has not been called,or if end() has already been called. See Also: java.awt.event.MouseEvent |
generateReleaseKey | public void generateReleaseKey(int keyCode)(Code) | | Cause the script to release a key.
Parameters: keyCode - code for the released key. exception: IllegalStateException - if start() has not been called,or if end() has already been called. See Also: java.awt.event.KeyEvent |
generateReleaseMouse | public void generateReleaseMouse(int modifier)(Code) | | Cause the script to release a mouse button.
Parameters: modifier - the modifier code for the mouse button released. exception: IllegalStateException - if start() has not been called,or if end() has already been called. See Also: java.awt.event.MouseEvent |
generateScreenCapture | public void generateScreenCapture(File originalImage, int x, int y, int width, int height)(Code) | | Cause the script to capture a screen shot. Probably, it should compare
the captured image against the original saved image.
Parameters: originalImage - file containing the original image for the screencapture that the generated script will compare against when thetest is run. Parameters: x - screen image bounds. Parameters: y - screen image bounds. Parameters: width - screen image bounds. Parameters: height - screen image bounds. exception: IllegalStateException - if start() has not been called,or if end() has already been called. |
|
|