Class CroppingState
-
- All Implemented Interfaces:
public final class CroppingState
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
CroppingState.PolygonType
Defines possible sources of getting given polygon.
-
Field Summary
Fields Modifier and Type Field Description private final <Error class: unknown class><List<PointF>>
polygon
private final <Error class: unknown class><DocumentDetectionStatus>
documentDetectionStatus
private final <Error class: unknown class><List<Line2D>>
verticalLines
private final <Error class: unknown class><List<Line2D>>
horizontalLines
private final <Error class: unknown class><Integer>
rotation
private final <Error class: unknown class><CroppingState.PolygonType>
polygonType
-
Constructor Summary
Constructors Constructor Description CroppingState(Page page)
CroppingState(List<PointF> initialPolygon, Integer defaultRotation)
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class><List<PointF>>
getPolygon()
final <Error class: unknown class><DocumentDetectionStatus>
getDocumentDetectionStatus()
final <Error class: unknown class><List<Line2D>>
getVerticalLines()
final <Error class: unknown class><List<Line2D>>
getHorizontalLines()
final <Error class: unknown class><Integer>
getRotation()
final <Error class: unknown class><CroppingState.PolygonType>
getPolygonType()
final Unit
onPolygonChanged(List<PointF> polygon, DocumentDetectionStatus documentDetectionStatus, CroppingState.PolygonType changeType)
final Unit
rotateCW()
final Unit
reset()
-
-
Method Detail
-
getPolygon
final <Error class: unknown class><List<PointF>> getPolygon()
-
getDocumentDetectionStatus
final <Error class: unknown class><DocumentDetectionStatus> getDocumentDetectionStatus()
-
getVerticalLines
final <Error class: unknown class><List<Line2D>> getVerticalLines()
-
getHorizontalLines
final <Error class: unknown class><List<Line2D>> getHorizontalLines()
-
getRotation
final <Error class: unknown class><Integer> getRotation()
-
getPolygonType
final <Error class: unknown class><CroppingState.PolygonType> getPolygonType()
-
onPolygonChanged
final Unit onPolygonChanged(List<PointF> polygon, DocumentDetectionStatus documentDetectionStatus, CroppingState.PolygonType changeType)
-
-
-
-