|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.uicapture.v1.javamaker.JavaMaker
Creates a Java playback sourcefile. The Java file will quit with an error code of 1 if the playback did not go perfectly.
Constructor Summary | |
JavaMaker(java.io.File outFile,
java.lang.String packageName,
java.lang.String className)
|
|
JavaMaker(java.io.Writer w,
java.lang.String packageName,
java.lang.String className)
|
Method Summary | |
protected void |
assertActive()
|
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 modifier)
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. |
protected void |
handleException(java.lang.Throwable t)
|
void |
start()
Starts the script generation. |
protected void |
step(java.lang.String msg)
|
protected void |
wr(java.lang.String text)
|
protected void |
wrln()
|
protected void |
wrln(java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaMaker(java.io.File outFile, java.lang.String packageName, java.lang.String className) throws java.io.IOException
public JavaMaker(java.io.Writer w, java.lang.String packageName, java.lang.String className)
Method Detail |
public void start()
start
in interface IScriptMaker
public void end()
end
in interface IScriptMaker
public void generateDelay(long milliseconds)
generateDelay
in interface IScriptMaker
milliseconds
- the number of milliseconds in the delay.public void generateMoveMouseWheel(int rotate)
generateMoveMouseWheel
in interface IScriptMaker
rotate
- the number of rotations the mouse wheel generated.MouseWheelEvent
public void generateMoveMouse(int x, int y)
generateMoveMouse
in interface IScriptMaker
x
- the x-coordinate that the mouse moved toy
- the y-coordinate that the mouse moved topublic void generatePressMouse(int modifier)
generatePressMouse
in interface IScriptMaker
MouseEvent
public void generateReleaseMouse(int modifier)
generateReleaseMouse
in interface IScriptMaker
modifier
- the modifier code for the mouse button released.MouseEvent
public void generatePressKey(int keyCode)
generatePressKey
in interface IScriptMaker
keyCode
- code for the pressed key.KeyEvent
public void generateReleaseKey(int keyCode)
generateReleaseKey
in interface IScriptMaker
keyCode
- code for the released key.KeyEvent
public void generateScreenCapture(java.io.File originalImage, int x, int y, int width, int height)
generateScreenCapture
in interface IScriptMaker
x
- screen image bounds.y
- screen image bounds.width
- screen image bounds.height
- screen image bounds.originalImage
- file containing the original image for the screen
capture that the generated script will compare against when the
test is run.protected void handleException(java.lang.Throwable t)
protected void assertActive()
protected void wr(java.lang.String text)
protected void wrln(java.lang.String text)
protected void wrln()
protected void step(java.lang.String msg)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |