|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.DefaultScreenLocation
public class DefaultScreenLocation
This class provides manipulation methods that can be used for the default screen location.
| Constructor Summary | |
|---|---|
DefaultScreenLocation(Screen screenRef,
int x,
int y)
Constructs a new screen location whose screen is the specified screen (screenRef), and whose (x,y) coordinates are specified by the arguments of the same name. |
|
DefaultScreenLocation(ScreenLocation loc)
Constructs a new screen location whose screen and (x,y) coordinates are specified by the ScreenLocation argument. |
|
| Method Summary | |
|---|---|
ScreenLocation |
getRelativeScreenLocation(int xoffset,
int yoffset)
Returns a new ScreenLocation relative to the specified offsets. |
Screen |
getScreen()
Returns the screen associated with this screen location. |
int |
getX()
Returns the X location of the screen coordinate. |
int |
getY()
the Y location of the screen coordinate. |
void |
setScreen(Screen screen)
Sets the screen associated with this screen location. |
void |
setX(int x)
Sets the X location of the screen coordinate. |
void |
setY(int y)
Sets the Y location of the screen coordinate. |
String |
toString()
Returns a String representation of this DefaultScreenLocation and its values. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultScreenLocation(Screen screenRef,
int x,
int y)
screenRef - the specified screen or monitor.x - the X location of the screen coordinate.y - the Y location of the screen coordinate.public DefaultScreenLocation(ScreenLocation loc)
loc - a ScreenLocation, specifying screen and (x,y) coordinates.| Method Detail |
|---|
public ScreenLocation getRelativeScreenLocation(int xoffset,
int yoffset)
ScreenLocation
getRelativeScreenLocation in interface ScreenLocationxoffset - the horizontal offset.yoffset - the vertical offset.
public String toString()
toString in class Objectpublic Screen getScreen()
ScreenLocation
getScreen in interface ScreenLocationpublic void setScreen(Screen screen)
ScreenLocation
setScreen in interface ScreenLocationscreen - the specified screen of this screen location.public int getX()
Location
getX in interface Locationpublic void setX(int x)
Location
setX in interface Locationx - the X location of the screen coordinate.public int getY()
Location
getY in interface Locationpublic void setY(int y)
Location
setY in interface Locationy - the Y location of the screen coordinate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||