Java Doc for ScriptGenerator.java in  » Test-Coverage » GroboUtils » net » sourceforge » groboutils » uicapture » v1 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Test Coverage » GroboUtils » net.sourceforge.groboutils.uicapture.v1 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.groboutils.uicapture.v1.ScriptGenerator

ScriptGenerator
public class ScriptGenerator implements ICaptureListener,IAllowCapturePassThroughListener(Code)
Listens to CaptureEvents, and converts these into script commands to the IScriptMaker. It allows for easy subclassing through having a "Meta-Mode". All events will be swallowed (not passed to the UI or IScriptMaker) while in this meta-mode.
author:
   Matt Albrecht groboclown@users.sourceforge.net
version:
   Jan 7, 2002



Constructor Summary
public  ScriptGenerator(IScriptMaker maker, String baseImageName)
     Uses the Default version for the IScreenScraper and IFocusedWindowFinder.
public  ScriptGenerator(IScreenScraper ss, IFocusedWindowFinder fwf, IScriptMaker maker, String baseImageName)
     Create using the given arguments to build the framework.

Method Summary
final public  booleanallowKeyPressed(KeyPressedCaptureEvent ce)
    
final public  booleanallowKeyReleased(KeyReleasedCaptureEvent ce)
    
final public  booleanallowMouseMoved(MouseMovedCaptureEvent ce)
     Not part of the allow interface.
final public  booleanallowMousePressed(MousePressedCaptureEvent ce)
    
final public  booleanallowMouseReleased(MouseReleasedCaptureEvent ce)
    
final public  booleanallowMouseWheelMoved(MouseWheelCaptureEvent ce)
    
public  voidbegin()
    
protected synchronized  FilecreateFile()
    
protected  voidencounteredError(Throwable t)
    
public  voidend()
    
protected synchronized  voidfireKeyPressed(KeyCaptureEvent ce)
    
protected synchronized  voidfireKeyReleased(KeyCaptureEvent ce)
    
protected synchronized  voidfireMouseMoved(MouseMovedCaptureEvent ce)
    
protected synchronized  voidfireMousePressed(MouseButtonCaptureEvent ce)
    
protected synchronized  voidfireMouseReleased(MouseButtonCaptureEvent ce)
    
protected synchronized  voidfireMouseWheelMoved(MouseWheelCaptureEvent ce)
    
protected synchronized  voidfireSaveFocusedWindow()
     Saves a picture of the underlying UI's focused window to a file.
protected synchronized  voidfireSaveScreen()
     Saves the entire screen to a file.
protected synchronized  voidfireSaveScreenImage(int x, int y, int w, int h)
     Saves the selected screen part to a file.
protected synchronized  voidfireSaveScreenImage(Rectangle bounds)
     Saves the selected screen part to a file.
protected synchronized  voidfireStop()
    
protected  voidgenerateDelay(CaptureEvent ce)
     Create a delay event in the script maker.
protected synchronized  longgetDelayTime(CaptureEvent ce)
     Calculate the amount of time between the last event and the given event.
public  booleanisInMetaMode()
    
public  booleanisRunning()
    
public  voidkeyPressed(KeyPressedCaptureEvent ce)
     If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).
public  voidkeyReleased(KeyReleasedCaptureEvent ce)
     If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).
protected  voidmetaKeyPressed(KeyPressedCaptureEvent ce)
     Performs a meta-mode action when this event is caught and the generator is in meta-mode.
protected  voidmetaKeyReleased(KeyReleasedCaptureEvent ce)
     Performs a meta-mode action when this event is caught and the generator is in meta-mode.
protected  voidmetaMouseMoved(MouseMovedCaptureEvent ce)
     Performs a meta-mode action when this event is caught and the generator is in meta-mode.
protected  voidmetaMousePressed(MousePressedCaptureEvent ce)
     Performs a meta-mode action when this event is caught and the generator is in meta-mode.
protected  voidmetaMouseReleased(MouseReleasedCaptureEvent ce)
     Performs a meta-mode action when this event is caught and the generator is in meta-mode.
protected  voidmetaMouseWheelMoved(MouseWheelCaptureEvent ce)
     Performs a meta-mode action when this event is caught and the generator is in meta-mode.
public  voidmouseMoved(MouseMovedCaptureEvent ce)
     If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).
public  voidmousePressed(MousePressedCaptureEvent ce)
     If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).
public  voidmouseReleased(MouseReleasedCaptureEvent ce)
     If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).
public  voidmouseWheelMoved(MouseWheelCaptureEvent ce)
     If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).
public  voidsetInMetaMode(boolean set)
    


Constructor Detail
ScriptGenerator
public ScriptGenerator(IScriptMaker maker, String baseImageName)(Code)
Uses the Default version for the IScreenScraper and IFocusedWindowFinder.



ScriptGenerator
public ScriptGenerator(IScreenScraper ss, IFocusedWindowFinder fwf, IScriptMaker maker, String baseImageName)(Code)
Create using the given arguments to build the framework.




Method Detail
allowKeyPressed
final public boolean allowKeyPressed(KeyPressedCaptureEvent ce)(Code)

See Also:   java.awt.event.KeyListener true to allow the event to passed to the underlyingUI, or false to 'swallow' the event.



allowKeyReleased
final public boolean allowKeyReleased(KeyReleasedCaptureEvent ce)(Code)

See Also:   java.awt.event.KeyListener true to allow the event to passed to the underlyingUI, or false to 'swallow' the event.



allowMouseMoved
final public boolean allowMouseMoved(MouseMovedCaptureEvent ce)(Code)
Not part of the allow interface. true to allow the event to passed to the underlyingUI, or false to 'swallow' the event.



allowMousePressed
final public boolean allowMousePressed(MousePressedCaptureEvent ce)(Code)

See Also:   java.awt.event.MouseListener true to allow the event to passed to the underlyingUI, or false to 'swallow' the event.



allowMouseReleased
final public boolean allowMouseReleased(MouseReleasedCaptureEvent ce)(Code)

See Also:   java.awt.event.MouseListener true to allow the event to passed to the underlyingUI, or false to 'swallow' the event.



allowMouseWheelMoved
final public boolean allowMouseWheelMoved(MouseWheelCaptureEvent ce)(Code)

See Also:   java.awt.event.MouseWheelListener true to allow the event to passed to the underlyingUI, or false to 'swallow' the event.



begin
public void begin() throws java.awt.AWTException(Code)

exception:
  java.awt.AWTException - Robot isn't supported.



createFile
protected synchronized File createFile()(Code)



encounteredError
protected void encounteredError(Throwable t)(Code)



end
public void end()(Code)



fireKeyPressed
protected synchronized void fireKeyPressed(KeyCaptureEvent ce)(Code)



fireKeyReleased
protected synchronized void fireKeyReleased(KeyCaptureEvent ce)(Code)



fireMouseMoved
protected synchronized void fireMouseMoved(MouseMovedCaptureEvent ce)(Code)



fireMousePressed
protected synchronized void fireMousePressed(MouseButtonCaptureEvent ce)(Code)



fireMouseReleased
protected synchronized void fireMouseReleased(MouseButtonCaptureEvent ce)(Code)



fireMouseWheelMoved
protected synchronized void fireMouseWheelMoved(MouseWheelCaptureEvent ce)(Code)



fireSaveFocusedWindow
protected synchronized void fireSaveFocusedWindow()(Code)
Saves a picture of the underlying UI's focused window to a file.
Parameters:
  filename - the file to save the image as.



fireSaveScreen
protected synchronized void fireSaveScreen()(Code)
Saves the entire screen to a file.
Parameters:
  filename - the file to save the image as.



fireSaveScreenImage
protected synchronized void fireSaveScreenImage(int x, int y, int w, int h)(Code)
Saves the selected screen part to a file.
Parameters:
  filename - the file to save the image as.
Parameters:
  x - the x position of the part of the screen to grab.
Parameters:
  y - the y position of the part of the screen to grab.
Parameters:
  w - the width of the part of the screen to grab.
Parameters:
  h - the height of the part of the screen to grab.



fireSaveScreenImage
protected synchronized void fireSaveScreenImage(Rectangle bounds)(Code)
Saves the selected screen part to a file.
Parameters:
  filename - the file to save the image as.
Parameters:
  bounds - the part of the screen to grab.



fireStop
protected synchronized void fireStop()(Code)



generateDelay
protected void generateDelay(CaptureEvent ce)(Code)
Create a delay event in the script maker.



getDelayTime
protected synchronized long getDelayTime(CaptureEvent ce)(Code)
Calculate the amount of time between the last event and the given event. the delay time in milliseconds.



isInMetaMode
public boolean isInMetaMode()(Code)



isRunning
public boolean isRunning()(Code)



keyPressed
public void keyPressed(KeyPressedCaptureEvent ce)(Code)
If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).



keyReleased
public void keyReleased(KeyReleasedCaptureEvent ce)(Code)
If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).



metaKeyPressed
protected void metaKeyPressed(KeyPressedCaptureEvent ce)(Code)
Performs a meta-mode action when this event is caught and the generator is in meta-mode. Default action does nothing.



metaKeyReleased
protected void metaKeyReleased(KeyReleasedCaptureEvent ce)(Code)
Performs a meta-mode action when this event is caught and the generator is in meta-mode. Default action does nothing.



metaMouseMoved
protected void metaMouseMoved(MouseMovedCaptureEvent ce)(Code)
Performs a meta-mode action when this event is caught and the generator is in meta-mode. Default action does nothing.



metaMousePressed
protected void metaMousePressed(MousePressedCaptureEvent ce)(Code)
Performs a meta-mode action when this event is caught and the generator is in meta-mode. Default action does nothing.



metaMouseReleased
protected void metaMouseReleased(MouseReleasedCaptureEvent ce)(Code)
Performs a meta-mode action when this event is caught and the generator is in meta-mode. Default action does nothing.



metaMouseWheelMoved
protected void metaMouseWheelMoved(MouseWheelCaptureEvent ce)(Code)
Performs a meta-mode action when this event is caught and the generator is in meta-mode. Default action does nothing.



mouseMoved
public void mouseMoved(MouseMovedCaptureEvent ce)(Code)
If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).



mousePressed
public void mousePressed(MousePressedCaptureEvent ce)(Code)
If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).



mouseReleased
public void mouseReleased(MouseReleasedCaptureEvent ce)(Code)
If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).



mouseWheelMoved
public void mouseWheelMoved(MouseWheelCaptureEvent ce)(Code)
If a subclass overrides this method, it must first check if meta-mode is enabled, and invoke the super's version of this method at the very end (right before leaving the method).



setInMetaMode
public void setInMetaMode(boolean set)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.