-
- All Implemented Interfaces:
-
android.os.Parcelable
public class GiniCaptureBox implements Parcelable
Contains a bounding box for a Gini API extraction. The bounding box describes the page and the position where the extraction originates.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<GiniCaptureBox>CREATOR
-
Constructor Summary
Constructors Constructor Description GiniCaptureBox(int pageNumber, double left, double top, double width, double height)Create a new bounding box for an extraction.
-
Method Summary
Modifier and Type Method Description intdescribeContents()voidwriteToParcel(Parcel dest, int flags)intgetPageNumber()doublegetLeft()doublegetTop()doublegetWidth()doublegetHeight()StringtoString()-
-
Constructor Detail
-
GiniCaptureBox
GiniCaptureBox(int pageNumber, double left, double top, double width, double height)
Create a new bounding box for an extraction.- Parameters:
pageNumber- page on which the box can be found, starting with 1left- distance from the left edge of the page.top- distance from the top edge of the pagewidth- horizontal dimension of the boxheight- vertical dimension of the box
-
-
Method Detail
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
getPageNumber
int getPageNumber()
-
getLeft
double getLeft()
-
getTop
double getTop()
-
getWidth
double getWidth()
-
getHeight
double getHeight()
-
-
-
-