Class Coordinate


  • public class Coordinate
    extends java.lang.Object
    structure describing point coordinate
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int x
      x axis value
      int y
      y axis value
    • Constructor Summary

      Constructors 
      Constructor Description
      Coordinate()  
      Coordinate​(int x, int y)  
    • Field Detail

      • x

        public int x
        x axis value
      • y

        public int y
        y axis value
    • Constructor Detail

      • Coordinate

        public Coordinate()
      • Coordinate

        public Coordinate​(int x,
                          int y)
    • Method Detail

      • toJsonObject

        public JSONObject toJsonObject()
      • toJson

        public java.lang.String toJson()
        Method convert object to string in json format
        Returns:
        string in json format
      • fromJson

        public static Coordinate fromJson​(java.lang.String json)
      • fromJson

        public static Coordinate fromJson​(JSONObject object)