DESY ACOP Beans Home

com.cosylab.gui.components.util
Class ScreenCapturer

java.lang.Object
  extended by com.cosylab.gui.components.util.ScreenCapturer

public class ScreenCapturer
extends java.lang.Object

Author:
tomo TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
ScreenCapturer()
          Creates new object
ScreenCapturer(java.awt.Component com)
          Creates new object
ScreenCapturer(java.awt.Component com, java.lang.String p)
          Creates new object
 
Method Summary
 java.lang.String getFile()
          returns file path
 java.lang.String getFormat()
          returns file type
 void saveImage()
          Saves image to file ...
 void saveImageToSysClipBoard(java.awt.Component componentToCopy)
           
 void setFile(java.lang.String path)
          set the file path
 void showScreenDialog()
          Shows JFileChooser, sets filters for supportable file types , and saves screen image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenCapturer

public ScreenCapturer(java.awt.Component com)
Creates new object

Parameters:
com - Component

ScreenCapturer

public ScreenCapturer(java.awt.Component com,
                      java.lang.String p)
Creates new object

Parameters:
com - Component to paint
p - String path , where to save file

ScreenCapturer

public ScreenCapturer()
Creates new object

Method Detail

showScreenDialog

public void showScreenDialog()
Shows JFileChooser, sets filters for supportable file types , and saves screen image


getFormat

public java.lang.String getFormat()
returns file type

Returns:
String

getFile

public java.lang.String getFile()
returns file path

Returns:
String

setFile

public void setFile(java.lang.String path)
set the file path

Parameters:
path - String

saveImage

public void saveImage()
Saves image to file ...


saveImageToSysClipBoard

public void saveImageToSysClipBoard(java.awt.Component componentToCopy)


Copyright © 2010. All Rights Reserved.