Class CroppingScreenConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class CroppingScreenConfiguration implements Parcelable
Configuration of the screen for cropping the scanned pages.
-
-
Field Summary
Fields Modifier and Type Field Description private ButtonConfigurationtopBarBackButtonprivate StyledTexttopBarTitleprivate ButtonConfigurationtopBarConfirmButtonprivate ScanbotColorbackgroundColorprivate ScanbotColorcroppingHandlerColorprivate ScanbotColorcroppingPolygonColorprivate ScanbotColorcroppingPolygonMagneticLineColorprivate CroppingBottomBarbottomBar
-
Constructor Summary
Constructors Constructor Description CroppingScreenConfiguration(Map<String, Object> source)CroppingScreenConfiguration(JSONObject json)CroppingScreenConfiguration(ButtonConfiguration topBarBackButton, StyledText topBarTitle, ButtonConfiguration topBarConfirmButton, ScanbotColor backgroundColor, ScanbotColor croppingHandlerColor, ScanbotColor croppingPolygonColor, ScanbotColor croppingPolygonMagneticLineColor, CroppingBottomBar bottomBar)
-
Method Summary
Modifier and Type Method Description final ButtonConfigurationgetTopBarBackButton()Configuration of the 'cancel' button, located in the top bar. final UnitsetTopBarBackButton(ButtonConfiguration topBarBackButton)Configuration of the 'cancel' button, located in the top bar. final StyledTextgetTopBarTitle()Configuration of the title, located in the top bar. final UnitsetTopBarTitle(StyledText topBarTitle)Configuration of the title, located in the top bar. final ButtonConfigurationgetTopBarConfirmButton()Configuration of the 'confirm' button, located in the top bar. final UnitsetTopBarConfirmButton(ButtonConfiguration topBarConfirmButton)Configuration of the 'confirm' button, located in the top bar. final ScanbotColorgetBackgroundColor()The background color of the cropping screen. final UnitsetBackgroundColor(ScanbotColor backgroundColor)The background color of the cropping screen. final ScanbotColorgetCroppingHandlerColor()The color of the cropping handles. final UnitsetCroppingHandlerColor(ScanbotColor croppingHandlerColor)The color of the cropping handles. final ScanbotColorgetCroppingPolygonColor()The color of the cropping polygon. final UnitsetCroppingPolygonColor(ScanbotColor croppingPolygonColor)The color of the cropping polygon. final ScanbotColorgetCroppingPolygonMagneticLineColor()The color of the magnetic lines on the cropping polygon. final UnitsetCroppingPolygonMagneticLineColor(ScanbotColor croppingPolygonMagneticLineColor)The color of the magnetic lines on the cropping polygon. final CroppingBottomBargetBottomBar()Configuration of the bottom bar for the cropping screen. final UnitsetBottomBar(CroppingBottomBar bottomBar)Configuration of the bottom bar for the cropping screen. final JSONObjecttoJson(ToJsonConfiguration config)final CroppingScreenConfigurationclone()final static CroppingScreenConfigurationdefault()-
-
Constructor Detail
-
CroppingScreenConfiguration
CroppingScreenConfiguration(JSONObject json)
-
CroppingScreenConfiguration
CroppingScreenConfiguration(ButtonConfiguration topBarBackButton, StyledText topBarTitle, ButtonConfiguration topBarConfirmButton, ScanbotColor backgroundColor, ScanbotColor croppingHandlerColor, ScanbotColor croppingPolygonColor, ScanbotColor croppingPolygonMagneticLineColor, CroppingBottomBar bottomBar)
-
-
Method Detail
-
getTopBarBackButton
final ButtonConfiguration getTopBarBackButton()
Configuration of the 'cancel' button, located in the top bar.
-
setTopBarBackButton
final Unit setTopBarBackButton(ButtonConfiguration topBarBackButton)
Configuration of the 'cancel' button, located in the top bar.
-
getTopBarTitle
final StyledText getTopBarTitle()
Configuration of the title, located in the top bar.
-
setTopBarTitle
final Unit setTopBarTitle(StyledText topBarTitle)
Configuration of the title, located in the top bar.
-
getTopBarConfirmButton
final ButtonConfiguration getTopBarConfirmButton()
Configuration of the 'confirm' button, located in the top bar.
-
setTopBarConfirmButton
final Unit setTopBarConfirmButton(ButtonConfiguration topBarConfirmButton)
Configuration of the 'confirm' button, located in the top bar.
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
The background color of the cropping screen.
Default is "?sbColorOutline"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
The background color of the cropping screen.
Default is "?sbColorOutline"
-
getCroppingHandlerColor
final ScanbotColor getCroppingHandlerColor()
The color of the cropping handles.
Default is "?sbColorSurface"
-
setCroppingHandlerColor
final Unit setCroppingHandlerColor(ScanbotColor croppingHandlerColor)
The color of the cropping handles.
Default is "?sbColorSurface"
-
getCroppingPolygonColor
final ScanbotColor getCroppingPolygonColor()
The color of the cropping polygon.
Default is "?sbColorSurface"
-
setCroppingPolygonColor
final Unit setCroppingPolygonColor(ScanbotColor croppingPolygonColor)
The color of the cropping polygon.
Default is "?sbColorSurface"
-
getCroppingPolygonMagneticLineColor
final ScanbotColor getCroppingPolygonMagneticLineColor()
The color of the magnetic lines on the cropping polygon.
Default is "?sbColorSurface"
-
setCroppingPolygonMagneticLineColor
final Unit setCroppingPolygonMagneticLineColor(ScanbotColor croppingPolygonMagneticLineColor)
The color of the magnetic lines on the cropping polygon.
Default is "?sbColorSurface"
-
getBottomBar
final CroppingBottomBar getBottomBar()
Configuration of the bottom bar for the cropping screen.
-
setBottomBar
final Unit setBottomBar(CroppingBottomBar bottomBar)
Configuration of the bottom bar for the cropping screen.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final CroppingScreenConfiguration clone()
-
default
final static CroppingScreenConfiguration default()
-
-
-
-