org.sikuli.api
Interface ScreenLocation

All Superinterfaces:
Location
All Known Implementing Classes:
DefaultScreenLocation, DesktopScreenLocation

public interface ScreenLocation
extends Location

The ScreenLocation interface provides definitions for the objects that represent a location on any screen coordinate.


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.
 void setScreen(Screen screen)
          Sets the screen associated with this screen location.
 
Methods inherited from interface org.sikuli.api.Location
getX, getY, setX, setY
 

Method Detail

getScreen

Screen getScreen()
Returns the screen associated with this screen location.

Returns:
the screen of this screen location.

setScreen

void setScreen(Screen screen)
Sets the screen associated with this screen location.

Parameters:
screen - the specified screen of this screen location.

getRelativeScreenLocation

ScreenLocation getRelativeScreenLocation(int xoffset,
                                         int yoffset)
Returns a new ScreenLocation relative to the specified offsets.

Parameters:
xoffset - the horizontal offset.
yoffset - the vertical offset.
Returns:
a new ScreenLocation.


Copyright © 2014. All rights reserved.