com.supermap.data

Class Point

  • java.lang.Object
    • com.supermap.data.Point


  • public class Point
    extends java.lang.Object
    The pixel point class. It is used to mark the pixel points of the mobile screen.

    The coordinates of this point is in pixels.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Point()
      The default pixel coordinates is (0,0)
      Point(int x, int y)
      The pixel coordinates (x,y) of the input point.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getX()
      Gets the x of the pixel coordinate.
      int getY()
      Gets the y of the pixel coordinate.
      void setX(int x)
      Sets the x of the pixel coordinate.
      void setY(int y)
      Sets the y of the pixel coordinate.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Point

        public Point(int x,
                     int y)
        The pixel coordinates (x,y) of the input point.
        Parameters:
        x - The x of the pixel coordinate.
        y - The y of the pixel coordinate.
      • Point

        public Point()
        The default pixel coordinates is (0,0)
    • Method Detail

      • getX

        public int getX()
        Gets the x of the pixel coordinate.
        Returns:
        The x of the pixel coordinate.
      • setX

        public void setX(int x)
        Sets the x of the pixel coordinate.
        Parameters:
        x - The x of the pixel coordinate.
      • getY

        public int getY()
        Gets the y of the pixel coordinate.
        Returns:
        The y of the pixel coordinate.
      • setY

        public void setY(int y)
        Sets the y of the pixel coordinate.
        Parameters:
        y - The y of the pixel coordinate.