public class CroppingConfiguration
Class which is used to configure class CroppingActivity
Contains settings indicating views Behaviour, Texts and Appearance
class CroppingActivity| Constructor and Description |
|---|
CroppingConfiguration()
Class which is used to configure
class CroppingActivity
Contains settings indicating views Behaviour, Texts and Appearance |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.io.Serializable> |
getEditPolygonConfiguration() |
void |
setBackgroundColor(int color)
Background color of the main screen.
|
void |
setBottomBarBackgroundColor(int color)
Background color of the bottom toolbar.
|
void |
setBottomBarButtonsColor(int color)
Color of the titles of all buttons in the bottom toolbar (Rotate button).
|
void |
setCancelButtonTitle(java.lang.String text)
Title of the cancel button.
|
void |
setDoneButtonTitle(java.lang.String text)
Title of the Done button.
|
void |
setPage(io.scanbot.sdk.persistence.Page page)
The Page to be opened. This is a required parameter.
|
void |
setPolygonColor(int color)
Default color of the cropping outline.
|
void |
setPolygonColorMagnetic(int color)
Outline color of magnetically snapped edges.
|
void |
setPolygonLineWidth(int color)
Width of the cropping outline.
|
void |
setRotateButtonHidden(boolean rotateButtonHidden)
Changes the visibility of the Rotate button.
|
void |
setRotateButtonTitle(java.lang.String text)
Title of the Rotate button.
|
void |
setTopBarBackgroundColor(int color)
Background color of the top toolbar.
|
void |
setTopBarButtonsColor(int color)
Color of the titles of all buttons in the top toolbar (Cancel and Done buttons).
|
public CroppingConfiguration()
Class which is used to configure class CroppingActivity
Contains settings indicating views Behaviour, Texts and Appearance
class CroppingActivitypublic java.util.Map<java.lang.String,java.io.Serializable> getEditPolygonConfiguration()
public void setPage(io.scanbot.sdk.persistence.Page page)
The Page to be opened. This is a required parameter.
public void setPolygonColor(int color)
Default color of the cropping outline.
public void setPolygonColorMagnetic(int color)
Outline color of magnetically snapped edges.
public void setPolygonLineWidth(int color)
Width of the cropping outline.
public void setTopBarBackgroundColor(int color)
Background color of the top toolbar.
public void setTopBarButtonsColor(int color)
Color of the titles of all buttons in the top toolbar (Cancel and Done buttons).
public void setBottomBarBackgroundColor(int color)
Background color of the bottom toolbar.
public void setBottomBarButtonsColor(int color)
Color of the titles of all buttons in the bottom toolbar (Rotate button).
public void setBackgroundColor(int color)
Background color of the main screen.
public void setCancelButtonTitle(java.lang.String text)
Title of the cancel button.
public void setRotateButtonTitle(java.lang.String text)
Title of the Rotate button.
public void setRotateButtonHidden(boolean rotateButtonHidden)
Changes the visibility of the Rotate button.
public void setDoneButtonTitle(java.lang.String text)
Title of the Done button.