Class Coordinate

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

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

      Constructor Description
      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
        string in json format
      • fromJson

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

        public static Coordinate fromJson​(JSONObject object)