|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.robot.desktop.DesktopScreen
public class DesktopScreen
The DesktopScreen class defines methods for retrieving properties of the connected screen(s).
| Constructor Summary | |
|---|---|
DesktopScreen(int screenId)
Constructs a new DesktopScreen whose screen id is specified by the screenId argument. |
|
| Method Summary | |
|---|---|
Rectangle |
getBounds()
Returns the bounding Rectangle of this DesktopScreen. |
int |
getId()
Returns screen id of this DesktopScreen. |
static int |
getNumberScreens()
Gets the number of screens available on the desktop. |
static DesktopScreen |
getScreenAtCoord(int x,
int y)
Determines and returns the DesktopScreen of the specified (x,y) coordinates. |
int |
getScreenId()
|
BufferedImage |
getScreenshot(int x,
int y,
int width,
int height)
Creates and returns an image containing a screen capture of the specified arguments of the same name. |
Dimension |
getSize()
Gets the size of this Screen, represented by the returned Dimension. |
String |
toString()
Returns a String representation of this DesktopScreen and its values. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DesktopScreen(int screenId)
screenId - the screen id.| Method Detail |
|---|
public BufferedImage getScreenshot(int x,
int y,
int width,
int height)
Screen
getScreenshot in interface Screenx - the X location of the screen coordinate.y - the Y location of the screen coordinate.width - The width of the region to be captured.height - The height of the region to be captured.
IOException - If an input or output exception occurred.public Dimension getSize()
Screen
getSize in interface Screenpublic int getId()
public Rectangle getBounds()
public static DesktopScreen getScreenAtCoord(int x,
int y)
x - the X coordinate.y - the Y coordinate.
public String toString()
toString in class Objectpublic static int getNumberScreens()
public int getScreenId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||