Class Box

  • All Implemented Interfaces:
    android.os.Parcelable

    public class Box
    extends java.lang.Object
    implements android.os.Parcelable
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<Box> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      Box​(int pageNumber, double left, double top, double width, double height)  
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<Box> CREATOR
    • Constructor Detail

      • Box

        public Box​(int pageNumber,
                   double left,
                   double top,
                   double width,
                   double height)
    • Method Detail

      • getPageNumber

        public int getPageNumber()
      • getLeft

        public double getLeft()
      • getTop

        public double getTop()
      • getWidth

        public double getWidth()
      • getHeight

        public double getHeight()
      • fromApiResponse

        public static Box fromApiResponse​(org.json.JSONObject responseData)
                                   throws org.json.JSONException
        Throws:
        org.json.JSONException
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable