yu.ac.bg.etf.javaqx.qswing
Class JQDesktop

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.JQDesktop

public final class JQDesktop
extends java.lang.Object

Desktop Class.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Method Summary
static Rectangle getDesktopBounds()
          Returns desktop bounds.
static int getScreenResolution()
          Returns screen resolution.
static Dimension getScreenSize()
          Returns the size of default screen.
static Image takeScreenShot(JQComponent component)
          Takes a screenshot of the specified component.
static Image takeScreenShot(JQComponent component, java.lang.String imageFormat)
          Takes a screenshot of the specified component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getScreenSize

public static Dimension getScreenSize()
Returns the size of default screen.

Returns:
the size of default screen

getScreenResolution

public static int getScreenResolution()
Returns screen resolution.

Returns:
screen resolution

getDesktopBounds

public static Rectangle getDesktopBounds()
Returns desktop bounds.

Returns:
desktop bounds

takeScreenShot

public static Image takeScreenShot(JQComponent component)
Takes a screenshot of the specified component. If the component is null, desktop screenshot is taken.

Parameters:
component - the component
Returns:
screen shot of the specified component

takeScreenShot

public static Image takeScreenShot(JQComponent component,
                                   java.lang.String imageFormat)
Takes a screenshot of the specified component. If the component is null desktop screenshot is taken.

Parameters:
component - the component
imageFormat - the image format
Returns:
screen shot of the specified component


Copyright © 2007 ETF and contributors. All Rights Reserved.