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 Summary

    Constructors
    Constructor
    Description
    Point(int x, int y)
    Creates a new point with the specified coordinates.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
     
    int
    x()
    Get the x coordinate (column).
    int
    y()
    Get the y coordinate (row).

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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