Class Offset

java.lang.Object
org.sikuli.script.Offset

public class Offset
extends Object
  • Field Details

    • x

      public int x
      x value
    • y

      public int y
      y value
  • Constructor Details

    • Offset

      public Offset()
    • Offset

      public Offset​(int x, int y)
      a new offset with given x and y distances
      Parameters:
      x - column
      y - row
    • Offset

      public Offset​(RMILO whatEver)
  • Method Details

    • getDefaultInstance4py

      public static Offset getDefaultInstance4py()
    • make4py

      public static Offset make4py​(ArrayList args)
    • setX

      public Offset setX​(int x)
      sets x to the given value
      Parameters:
      x - new x
      Returns:
      this
    • setX

      public Offset setX​(double x)
      sets x to the given value
      Parameters:
      x - new x
      Returns:
      this
    • getX

      public int getX()
      Returns:
      x value
    • setY

      public Offset setY​(int y)
      sets y to the given value
      Parameters:
      y - new y
      Returns:
      this
    • setY

      public Offset setY​(double y)
      sets y to the given value
      Parameters:
      y - new y
      Returns:
      this
    • getY

      public int getY()
      Returns:
      y value
    • set

      public Offset set​(int x, int y)
      sets to the given values
      Parameters:
      x - new x might be non-int
      y - new y might be non-int
      Returns:
      this
    • set

      public Offset set​(double x, double y)
      sets the given values
      Parameters:
      x - new x double
      y - new y double
      Returns:
      this
    • modify

      public <RMILO> Offset modify​(RMILO whatever)