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> source)
BackgroundStyle(JSONObject json)
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. final JSONObject
toJson()
final static BackgroundStyle
default()
-
-
Constructor Detail
-
BackgroundStyle
BackgroundStyle(JSONObject json)
-
BackgroundStyle
BackgroundStyle(ScanbotColor strokeColor, ScanbotColor fillColor, Double strokeWidth)
-
-
Method Detail
-
getStrokeColor
final ScanbotColor getStrokeColor()
Color of the polygon outline. Default is "#FFFFFFFF"
-
setStrokeColor
final Unit setStrokeColor(ScanbotColor strokeColor)
Color of the polygon outline. Default is "#FFFFFFFF"
-
getFillColor
final ScanbotColor getFillColor()
Polygon color. Default is "#FFFFFF30"
-
setFillColor
final Unit setFillColor(ScanbotColor fillColor)
Polygon color. Default is "#FFFFFF30"
-
getStrokeWidth
final Double getStrokeWidth()
Width of the polygon outline in dp. Default is 2.0
-
setStrokeWidth
final Unit setStrokeWidth(Double strokeWidth)
Width of the polygon outline in dp. Default is 2.0
-
toJson
final JSONObject toJson()
-
default
final static BackgroundStyle default()
-
-
-
-