Class Point

  • Direct Known Subclasses:
    PixelPoint

    public class Point
    extends java.lang.Object
    The class contains the x,y coordinates of a point in the Cartesian coordinate system.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected double x  
      protected double y  
    • Constructor Summary

      Constructors 
      Constructor Description
      Point​(double x, double y)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getX()  
      double getY()  
      void setPoint​(double x, double y)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • x

        protected double x
      • y

        protected double y
    • Constructor Detail

      • Point

        public Point​(double x,
                     double y)
    • Method Detail

      • setPoint

        public void setPoint​(double x,
                             double y)
      • getX

        public double getX()
      • getY

        public double getY()