Package io.scanbot.sdk.textpattern.ui
Class WordboxPreviewView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.accessibility.AccessibilityEventSource,io.scanbot.sdk.ui.BasePolygonView
public final class WordboxPreviewView extends View implements BasePolygonView
Allows to highlight the words which were scanned by TextPatternScanner.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerframeWidthprivate IntegerframeHeightprivate IntegerframeOrientationprivate RectfinderRect
-
Constructor Summary
Constructors Constructor Description WordboxPreviewView(Context context)WordboxPreviewView(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description final IntegergetFrameWidth()final UnitsetFrameWidth(Integer frameWidth)final IntegergetFrameHeight()final UnitsetFrameHeight(Integer frameHeight)final IntegergetFrameOrientation()final UnitsetFrameOrientation(Integer frameOrientation)final RectgetFinderRect()final UnitsetFinderRect(Rect finderRect)final UnitsetColor(Integer strokeColor)Changes stroke color of the polygon. final UnitupdateCharacters(List<WordBox> list)Sets the list of words to highlight -
-
Constructor Detail
-
WordboxPreviewView
WordboxPreviewView(Context context)
-
WordboxPreviewView
WordboxPreviewView(Context context, AttributeSet attrs)
-
-
Method Detail
-
getFrameWidth
final Integer getFrameWidth()
-
setFrameWidth
final Unit setFrameWidth(Integer frameWidth)
-
getFrameHeight
final Integer getFrameHeight()
-
setFrameHeight
final Unit setFrameHeight(Integer frameHeight)
-
getFrameOrientation
final Integer getFrameOrientation()
-
setFrameOrientation
final Unit setFrameOrientation(Integer frameOrientation)
-
getFinderRect
final Rect getFinderRect()
-
setFinderRect
final Unit setFinderRect(Rect finderRect)
-
setColor
final Unit setColor(Integer strokeColor)
Changes stroke color of the polygon.
- Parameters:
strokeColor- color (not resource!) to draw lines with.
-
updateCharacters
final Unit updateCharacters(List<WordBox> list)
Sets the list of words to highlight
- Parameters:
list- of words
-
-
-
-