public class MultiplePolygonsView
Draws polygon
public io.scanbot.sdk.multipleobjects.MultipleObjectsFrameHandler.ResultHandler multipleObjectDetectorHandler
protected java.util.concurrent.atomic.AtomicBoolean polygonUpdating
public MultiplePolygonsView(android.content.Context context)
public MultiplePolygonsView(android.content.Context context,
android.util.AttributeSet attrs)
public void setFillColor(int fillColor)
Changes fill color of the polygon
fillColor - color (not resource!) to fill polygon with. Alpha channel is supported.public void setFillColorOK(int fillColorOK)
Changes fill color of the polygon when result is OK
fillColorOK - color (not resource!) to fill polygon with. Alpha channel is supported.public void setStrokeColor(int strokeColor)
Changes stroke color of the polygon.
strokeColor - color (not resource!) to draw lines with. Alpha channel is supported.public void setStrokeColorOK(int strokeColorOK)
Changes stroke color of the polygon when result is OK.
strokeColorOK - color (not resource!) to draw lines with. Alpha channel is supported.public void setStrokeWidth(float strokeWidth)
Changes width of the stroke of the polygon.
strokeWidth - width of the stroke in pixels.protected void onSizeChanged(int w,
int h,
int oldw,
int oldh)
protected void updatePolygon(java.util.List<io.scanbot.multipleobjectsscanner.model.Polygon> polygons)
protected void dispatchDraw(android.graphics.Canvas canvas)