Package io.scanbot.sdk.ui_v2.common
Class PolygonStyle
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class PolygonStyle implements Parcelable
Configuration of the polygon appearance.
-
-
Field Summary
Fields Modifier and Type Field Description private ScanbotColor
strokeColor
private ScanbotColor
fillColor
private Double
strokeWidth
private Double
cornerRadius
-
Constructor Summary
Constructors Constructor Description PolygonStyle(Map<String, Object> json)
PolygonStyle()
PolygonStyle(ScanbotColor strokeColor, ScanbotColor fillColor, Double strokeWidth, Double cornerRadius)
-
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 Double
getCornerRadius()
Polygon corner radius in dp. final Unit
setCornerRadius(Double cornerRadius)
Polygon corner radius in dp. -
-
Constructor Detail
-
PolygonStyle
PolygonStyle()
-
PolygonStyle
PolygonStyle(ScanbotColor strokeColor, ScanbotColor fillColor, Double strokeWidth, Double cornerRadius)
-
-
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.
-
getCornerRadius
final Double getCornerRadius()
Polygon corner radius in dp.
-
setCornerRadius
final Unit setCornerRadius(Double cornerRadius)
Polygon corner radius in dp.
-
-
-
-