All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.deque.axe.android.wrappers.AxePoint Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package com.deque.axe.android.wrappers;

public class AxePoint {

  public final int valueY;
  public final int valueX;

  /**
   * Constructor for AxePoint.
   * @param x The x value or column.
   * @param y The y value or row.
   */
  public AxePoint(final int x, final int y) {

    this.valueY = y;
    this.valueX = x;
  }

  public boolean isTrailingEdge(final AxeRect frame) {
    return frame.isTrailingEdge(this);
  }

  public boolean isLeadingEdge(final AxeRect frame) {
    return frame.isLeadingEdge(this);
  }

  @Override public String toString() {
    return "Row: " + valueY + " Col: " + valueX;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy