org.sikuli.api
Class DefaultLocation

java.lang.Object
  extended by org.sikuli.api.DefaultLocation
All Implemented Interfaces:
Location

public class DefaultLocation
extends Object
implements Location

The DefaultLocation class is used to describe a location on the screen coordinate.


Constructor Summary
DefaultLocation(int x, int y)
          Constructs a default location at the given screen coordinates.
 
Method Summary
 int getX()
          Returns the X location of the screen coordinate.
 int getY()
          the Y location of the screen coordinate.
 void setX(int x)
          Sets the X location of the screen coordinate.
 void setY(int y)
          Sets the Y location of the screen coordinate.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLocation

public DefaultLocation(int x,
                       int y)
Constructs a default location at the given screen coordinates.

Parameters:
x - the X location of the screen coordinate.
y - the Y location of the screen coordinate.
Method Detail

getX

public int getX()
Description copied from interface: Location
Returns the X location of the screen coordinate.

Specified by:
getX in interface Location
Returns:
the X location of the screen coordinate.

setX

public void setX(int x)
Description copied from interface: Location
Sets the X location of the screen coordinate.

Specified by:
setX in interface Location
Parameters:
x - the X location of the screen coordinate.

getY

public int getY()
Description copied from interface: Location
the Y location of the screen coordinate.

Specified by:
getY in interface Location
Returns:
the Y location of the screen coordinate.

setY

public void setY(int y)
Description copied from interface: Location
Sets the Y location of the screen coordinate.

Specified by:
setY in interface Location
Parameters:
y - the Y location of the screen coordinate.


Copyright © 2014. All rights reserved.