Package io.scanbot.sdk.ui_v2.common
Class BackgroundStyle
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BackgroundStyle implements Parcelable
Appearance of the polygon used for buttons and hint backgrounds.
-
-
Field Summary
Fields Modifier and Type Field Description private ScanbotColor
strokeColor
private ScanbotColor
fillColor
private Double
strokeWidth
-
Constructor Summary
Constructors Constructor Description BackgroundStyle(Map<String, Object> json)
BackgroundStyle()
BackgroundStyle(ScanbotColor strokeColor, ScanbotColor fillColor, Double strokeWidth)
-
Method Summary
Modifier and Type Method Description final ScanbotColor
getStrokeColor()
Color of the polygon outline. final Unit
setStrokeColor(ScanbotColor strokeColor)
Color of the polygon outline. final ScanbotColor
getFillColor()
Polygon color. final Unit
setFillColor(ScanbotColor fillColor)
Polygon color. final Double
getStrokeWidth()
Width of the polygon outline in dp. final Unit
setStrokeWidth(Double strokeWidth)
Width of the polygon outline in dp. -
-
Constructor Detail
-
BackgroundStyle
BackgroundStyle()
-
BackgroundStyle
BackgroundStyle(ScanbotColor strokeColor, ScanbotColor fillColor, Double strokeWidth)
-
-
Method Detail
-
getStrokeColor
final ScanbotColor getStrokeColor()
Color of the polygon outline.
-
setStrokeColor
final Unit setStrokeColor(ScanbotColor strokeColor)
Color of the polygon outline.
-
getFillColor
final ScanbotColor getFillColor()
Polygon color.
-
setFillColor
final Unit setFillColor(ScanbotColor fillColor)
Polygon color.
-
getStrokeWidth
final Double getStrokeWidth()
Width of the polygon outline in dp.
-
setStrokeWidth
final Unit setStrokeWidth(Double strokeWidth)
Width of the polygon outline in dp.
-
-
-
-