Java Doc for VirtualWindowController.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.VirtualWindowController

VirtualWindowController
public class VirtualWindowController (Code)
A window which covers the whole screen, and does not paint in the background. It captures keyboard and mouse events, and sends them to both all registered listeners, and to the underlying GUI as well. WARNING: if the screen size is to resize, then this will not work correctly.
author:
   Matt Albrecht groboclown@users.sourceforge.net
version:
   Jan 4, 2002



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

Method Summary
protected  voidassertActive()
    
protected  voidassertInactive()
    
public  voidbegin()
     Begin the reinactment process.
public  booleancompareFiles(File one, File two)
     Compares the two files for identity.
public  voidend()
     Complete the reinactment process.
public  RectanglegetBounds()
     Retrieves the size and position of the capture area of the screen.
public  StringgetImageExtension()
    
public  voidmoveMouse(int x, int y)
     Simulate a mouse movement.
public  voidpressKey(int keyCode)
     Simulate a key press.
public  voidpressMouse(int modifiers)
     Simulate a mouse button press.
public  voidreleaseKey(int keyCode)
     Simulate a key release.
public  voidreleaseMouse(int modifiers)
     Simulate a mouse button release.
public  voidrotateMouseWheel(int rotation)
     Simulate a mouse wheel rotation.
public  voidsaveFocusedWindow(String filename)
     Saves a picture of the underlying UI's focused window to a file.
public  voidsaveScreen(String filename)
     Saves the entire screen to a file.
public  voidsaveScreenImage(String filename, int x, int y, int w, int h)
     Saves the selected screen part to a file.
public  voidsaveScreenImage(String filename, Rectangle bounds)
     Saves the selected screen part to a file.
public  voidsleep(long milliseconds)
     Pause for a period of milliseconds.
public  voidwaitForIdle()
     Waits until all events currently on the event queue have been processed.


Constructor Detail
VirtualWindowController
public VirtualWindowController()(Code)
Uses the Default version for the IScreenScraper and IFocusedWindowFinder.



VirtualWindowController
public VirtualWindowController(IScreenScraper ss, IFocusedWindowFinder fwf)(Code)
Create using the given arguments to build the framework.




Method Detail
assertActive
protected void assertActive()(Code)



assertInactive
protected void assertInactive()(Code)



begin
public void begin() throws java.awt.AWTException(Code)
Begin the reinactment process.
exception:
  java.awt.AWTException - thrown if a Robot is not supportedin the current JDK implementation.



compareFiles
public boolean compareFiles(File one, File two) throws IOException(Code)
Compares the two files for identity. true if the files are identical, else false.



end
public void end()(Code)
Complete the reinactment process.



getBounds
public Rectangle getBounds()(Code)
Retrieves the size and position of the capture area of the screen. the screen size.



getImageExtension
public String getImageExtension()(Code)



moveMouse
public void moveMouse(int x, int y)(Code)
Simulate a mouse movement.
Parameters:
  x - the x position (aboslute) to move the mouse to.
Parameters:
  y - the y position (aboslute) to move the mouse to.



pressKey
public void pressKey(int keyCode)(Code)
Simulate a key press.
Parameters:
  keyCode - the key code of the key.



pressMouse
public void pressMouse(int modifiers)(Code)
Simulate a mouse button press.
Parameters:
  modifiers - the mouse button modifiers.



releaseKey
public void releaseKey(int keyCode)(Code)
Simulate a key release.
Parameters:
  keyCode - the key code of the key.



releaseMouse
public void releaseMouse(int modifiers)(Code)
Simulate a mouse button release.
Parameters:
  modifiers - the mouse button modifiers.



rotateMouseWheel
public void rotateMouseWheel(int rotation)(Code)
Simulate a mouse wheel rotation.
Parameters:
  rotation - the number of 'clicks' to rotate the mouse wheel.



saveFocusedWindow
public void saveFocusedWindow(String filename) throws IOException(Code)
Saves a picture of the underlying UI's focused window to a file.
Parameters:
  filename - the file to save the image as.
exception:
  IOException - thrown if there was a problem writing the file.



saveScreen
public void saveScreen(String filename) throws IOException(Code)
Saves the entire screen to a file.
Parameters:
  filename - the file to save the image as.
exception:
  IOException - thrown if there was a problem writing the file.



saveScreenImage
public void saveScreenImage(String filename, int x, int y, int w, int h) throws IOException(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.
exception:
  IOException - thrown if there was a problem writing the file.



saveScreenImage
public void saveScreenImage(String filename, Rectangle bounds) throws IOException(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.
exception:
  IOException - thrown if there was a problem writing the file.



sleep
public void sleep(long milliseconds)(Code)
Pause for a period of milliseconds. Since Robot can only delay for 60 seconds at a time, this will first sleep using the Robot, then will use Thread for the remainder of the time.
Parameters:
  milliseconds - Time in milliseconds to sleep.



waitForIdle
public void waitForIdle()(Code)
Waits until all events currently on the event queue have been processed.



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.