Compiere 3.1

org.compiere.apps
Class ScreenShot

java.lang.Object
  extended by org.compiere.apps.ScreenShot

public class ScreenShot
extends Object

JPEG File Utility

Version:
$Id: ScreenShot.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
Author:
Jorg Janke

Constructor Summary
ScreenShot()
           
 
Method Summary
static boolean createJPEG(Window window, String fileName)
          Create JPEG file from window
protected static BufferedImage getImage(Window window)
          Get Image of Window
protected static File getJPGFile(Component parent)
          Get JPEG File
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenShot

public ScreenShot()
Method Detail

createJPEG

public static boolean createJPEG(Window window,
                                 String fileName)
Create JPEG file from window

Parameters:
window - window
fileName - optional file name
Returns:
true if created

getJPGFile

protected static File getJPGFile(Component parent)
Get JPEG File

Parameters:
parent - parent
Returns:
file

getImage

protected static BufferedImage getImage(Window window)
Get Image of Window

Parameters:
window - window
Returns:
image

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.