public class Page
extends java.lang.Object
implements android.os.Parcelable
SnappingDraft,
PageFactory,
Page.ImageType| Modifier and Type | Class and Description |
|---|---|
static class |
Page.ImageType
Types of images to be saved on disk
|
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Page> |
CREATOR |
static java.lang.String |
FILTERED_FOLDER |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId() |
android.graphics.Point |
getImageSize(Page.ImageType imageType) |
OptimizationType |
getOptimizationType() |
android.os.Bundle |
getParameters() |
java.util.List<android.graphics.PointF> |
getPolygon() |
RotationType |
getRotationType() |
int |
hashCode() |
boolean |
isProcessed() |
void |
setImageSize(Page.ImageType imageType,
int width,
int height)
Saves information about image size for particular
Page.ImageType |
void |
setOptimizationType(OptimizationType optimizationType) |
void |
setPolygon(java.util.List<android.graphics.PointF> polygon)
Sets polygon which crops page preview from original image.
|
void |
setProcessed(boolean processed) |
void |
setRotationType(RotationType rotationType) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final java.lang.String FILTERED_FOLDER
public static android.os.Parcelable.Creator<Page> CREATOR
public java.lang.String getId()
public OptimizationType getOptimizationType()
public void setOptimizationType(OptimizationType optimizationType)
public RotationType getRotationType()
public void setRotationType(RotationType rotationType)
public java.util.List<android.graphics.PointF> getPolygon()
public void setPolygon(java.util.List<android.graphics.PointF> polygon)
null and
polygons with the number of points different from 4 are also ignoredpublic void setImageSize(Page.ImageType imageType, int width, int height)
Page.ImageTypepublic android.graphics.Point getImageSize(Page.ImageType imageType)
Point which represents size of image for particular Page.ImageTypepublic boolean isProcessed()
true if Page original image was processed. false otherwise.public void setProcessed(boolean processed)
processed - true if Page original image was processed. false otherwise.public android.os.Bundle getParameters()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable