Package io.scanbot.sdk.document.ui
Interface IPolygonViewController
-
- All Implemented Interfaces:
public interface IPolygonViewControllerBase interface to control the polygon view configuration inside the Classical component View
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetPolygonViewVisible(Boolean isVisible)Controls the visibility of the contour of the detected document abstract UnitsetPolygonStrokeColor(Integer color)Changes stroke color of the polygon. abstract UnitsetPolygonStrokeColorOK(Integer color)Changes stroke color of the polygon when result is OK. abstract UnitsetPolygonStrokeWidth(Integer width)Changes width of the stroke of the polygon. abstract UnitsetPolygonCornerRadius(Integer radius)Changes the radius of corners of the polygon abstract UnitsetPolygonFillColor(Integer color)Changes fill color of the polygon abstract UnitsetPolygonFillColorOK(Integer color)Changes fill color of the polygon when result is OK abstract UnitsetPolygonAutoSnappingProgressStrokeColor(Integer color)Changes stroke color of the polygon animated progress line. abstract UnitsetPolygonAutoSnappingProgressStrokeWidth(Integer width)Changes width of the stroke of the autosnapping animated polygon. abstract UnitsetPolygonAutoSnapProgressEnabled(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 UnitsetPolygonDrawShadows(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
-
-
-
-