|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
start()
method
must be called before any other method, and no other method, besides
toString(), may be called after invoking the end()
method.
Method Summary | |
void |
end()
Terminates the script generation. |
void |
generateDelay(long milliseconds)
Cause the script to delay for the given number of milliseconds. |
void |
generateMoveMouse(int x,
int y)
Cause the script to move the mouse. |
void |
generateMoveMouseWheel(int rotate)
Cause the script to rotate the mouse wheel. |
void |
generatePressKey(int keyCode)
Cause the script to press a key. |
void |
generatePressMouse(int modifer)
Cause the script to press a mouse button. |
void |
generateReleaseKey(int keyCode)
Cause the script to release a key. |
void |
generateReleaseMouse(int modifier)
Cause the script to release a mouse button. |
void |
generateScreenCapture(java.io.File originalImage,
int x,
int y,
int width,
int height)
Cause the script to capture a screen shot. |
void |
start()
Starts the script generation. |
Method Detail |
public void start()
java.lang.IllegalStateException
- if start() has already been
called.public void end()
java.lang.IllegalStateException
- if start() has not been called,
or if end() has already been called.public void generateDelay(long milliseconds)
milliseconds
- the number of milliseconds in the delay.
java.lang.IllegalStateException
- if start() has not been called,
or if end() has already been called.public void generateMoveMouseWheel(int rotate)
rotate
- the number of rotations the mouse wheel generated.
java.lang.IllegalStateException
- if start() has not been called,
or if end() has already been called.MouseWheelEvent
public void generateMoveMouse(int x, int y)
x
- the x-coordinate that the mouse moved toy
- the y-coordinate that the mouse moved to
java.lang.IllegalStateException
- if start() has not been called,
or if end() has already been called.public void generatePressMouse(int modifer)
java.lang.IllegalStateException
- if start() has not been called,
or if end() has already been called.MouseEvent
public void generateReleaseMouse(int modifier)
modifier
- the modifier code for the mouse button released.
java.lang.IllegalStateException
- if start() has not been called,
or if end() has already been called.MouseEvent
public void generatePressKey(int keyCode)
keyCode
- code for the pressed key.
java.lang.IllegalStateException
- if start() has not been called,
or if end() has already been called.KeyEvent
public void generateReleaseKey(int keyCode)
keyCode
- code for the released key.
java.lang.IllegalStateException
- if start() has not been called,
or if end() has already been called.KeyEvent
public void generateScreenCapture(java.io.File originalImage, int x, int y, int width, int height)
originalImage
- file containing the original image for the screen
capture that the generated script will compare against when the
test is run.x
- screen image bounds.y
- screen image bounds.width
- screen image bounds.height
- screen image bounds.
java.lang.IllegalStateException
- if start() has not been called,
or if end() has already been called.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |