teamdev.jxdesktop
Class CaptureUtilities

java.lang.Object
  extended byteamdev.jxdesktop.CaptureUtilities
Direct Known Subclasses:
WindowsCaptureUtilities

public abstract class CaptureUtilities
extends java.lang.Object

A collection of utility methods for desktop.


Constructor Summary
protected CaptureUtilities()
           
 
Method Summary
abstract  java.awt.image.BufferedImage createScreenCapture(java.awt.Rectangle screenRect)
          Creates an image containing pixels read from the screen.
static CaptureUtilities getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptureUtilities

protected CaptureUtilities()
Method Detail

getInstance

public static CaptureUtilities getInstance()

createScreenCapture

public abstract java.awt.image.BufferedImage createScreenCapture(java.awt.Rectangle screenRect)
Creates an image containing pixels read from the screen.

Parameters:
screenRect - rect to capture in screen coordinates
Returns:
The captured image
Throws:
java.lang.IllegalArgumentException - if screenRect width and height are not greater than zero or more than screen size