Class Point

java.lang.Object
org.aesh.terminal.tty.Point

public final class Point extends Object
Represents a 2D point with x and y coordinates, typically used for cursor positions.
Author:
Ståle W. Pedersen
  • Constructor Details

    • Point

      public Point(int x, int y)
      Creates a new point with the specified coordinates.
      Parameters:
      x - the x coordinate (column)
      y - the y coordinate (row)
  • Method Details

    • x

      public int x()
      Get the x coordinate (column).
      Returns:
      the x coordinate
    • y

      public int y()
      Get the y coordinate (row).
      Returns:
      the y coordinate
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object