Package io.scanbot.sdk.docdetection.ui
Interface IPolygonViewController
-
- All Implemented Interfaces:
public interface IPolygonViewController
Base interface to control the polygon view configuration inside the Classical component View
-
-
Method Summary
Modifier and Type Method Description abstract Unit
setPolygonViewVisible(Boolean isVisible)
Controls the visibility of the contour of the detected document abstract Unit
setPolygonStrokeColor(Integer color)
Changes stroke color of the polygon. abstract Unit
setPolygonStrokeColorOK(Integer color)
Changes stroke color of the polygon when result is OK. abstract Unit
setPolygonStrokeWidth(Integer width)
Changes width of the stroke of the polygon. abstract Unit
setPolygonCornerRadius(Integer radius)
Changes the radius of corners of the polygon abstract Unit
setPolygonFillColor(Integer color)
Changes fill color of the polygon abstract Unit
setPolygonFillColorOK(Integer color)
Changes fill color of the polygon when result is OK abstract Unit
setPolygonAutoSnappingProgressStrokeColor(Integer color)
Changes stroke color of the polygon animated progress line. abstract Unit
setPolygonAutoSnappingProgressStrokeWidth(Integer width)
Changes width of the stroke of the autosnapping animated polygon. abstract Unit
setPolygonAutoSnapProgressEnabled(Boolean enabled)
Changes if there is an animation should be played during the time when the user need to wait after the document was detected abstract Unit
setPolygonDrawShadows(Boolean enabled)
Enable shadows under the polygon stroke if poly fill is transparent. -
-
Method Detail
-
setPolygonViewVisible
abstract Unit setPolygonViewVisible(Boolean isVisible)
Controls the visibility of the contour of the detected document
-
setPolygonStrokeColor
abstract Unit setPolygonStrokeColor(Integer color)
Changes stroke color of the polygon.
- Parameters:
color
- color to draw lines with.
-
setPolygonStrokeColorOK
abstract Unit setPolygonStrokeColorOK(Integer color)
Changes stroke color of the polygon when result is OK.
- Parameters:
color
- color to draw lines with.
-
setPolygonStrokeWidth
abstract Unit setPolygonStrokeWidth(Integer width)
Changes width of the stroke of the polygon.
- Parameters:
width
- width of the stroke in pixels.
-
setPolygonCornerRadius
abstract Unit setPolygonCornerRadius(Integer radius)
Changes the radius of corners of the polygon
- Parameters:
radius
- radius of corners in pixels.
-
setPolygonFillColor
abstract Unit setPolygonFillColor(Integer color)
Changes fill color of the polygon
- Parameters:
color
- color to fill polygon with.
-
setPolygonFillColorOK
abstract Unit setPolygonFillColorOK(Integer color)
Changes fill color of the polygon when result is OK
- Parameters:
color
- color to fill polygon with.
-
setPolygonAutoSnappingProgressStrokeColor
abstract Unit setPolygonAutoSnappingProgressStrokeColor(Integer color)
Changes stroke color of the polygon animated progress line.
- Parameters:
color
- color to draw lines with.
-
setPolygonAutoSnappingProgressStrokeWidth
abstract Unit setPolygonAutoSnappingProgressStrokeWidth(Integer width)
Changes width of the stroke of the autosnapping animated polygon.
- Parameters:
width
- width of the stroke in pixels.
-
setPolygonAutoSnapProgressEnabled
abstract Unit setPolygonAutoSnapProgressEnabled(Boolean enabled)
Changes if there is an animation should be played during the time when the user need to wait after the document was detected
- Parameters:
enabled
- if the animation is enabled
-
setPolygonDrawShadows
abstract Unit setPolygonDrawShadows(Boolean enabled)
Enable shadows under the polygon stroke if poly fill is transparent.
- Parameters:
enabled
- enable shadow if true, disable otherwise
-
-
-
-