Class Point


  • public class Point
    extends java.lang.Object
    Represents two x and y coordinates
    • Constructor Summary

      Constructors 
      Constructor Description
      Point​(int X, int Y)
      Public constructor
    • Constructor Detail

      • Point

        public Point​(int X,
                     int Y)
        Public constructor
        Parameters:
        X - X-coordinate of the point
        Y - Y-coordinate of the point
    • Method Detail

      • getX

        public int getX()
        Returns:
        X coordinate of the point
      • getY

        public int getY()
        Returns:
        Y coordinate of the point
      • getPointF

        public android.graphics.PointF getPointF()
        Returns:
        android platform point object PointF which holds x and y coordinates
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object