Class SelectionOverlayConfiguration
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class SelectionOverlayConfiguration implements Serializable
Barcode Selection Overlay configuration
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanoverlayEnabledprivate BooleanautomaticSelectionEnabledprivate BarcodeOverlayTextFormattextFormatprivate IntegerpolygonColorprivate IntegertextColorprivate IntegertextContainerColorprivate IntegerhighlightedPolygonColorprivate IntegerhighlightedTextColorprivate IntegerhighlightedTextContainerColor
-
Constructor Summary
Constructors Constructor Description SelectionOverlayConfiguration(Boolean overlayEnabled, Boolean automaticSelectionEnabled, BarcodeOverlayTextFormat textFormat, Integer polygonColor, Integer textColor, Integer textContainerColor, Integer highlightedPolygonColor, Integer highlightedTextColor, Integer highlightedTextContainerColor)
-
Method Summary
Modifier and Type Method Description final BooleangetOverlayEnabled()Whether the barcode selection overlay is enabled or not. final UnitsetOverlayEnabled(Boolean overlayEnabled)Whether the barcode selection overlay is enabled or not. final BooleangetAutomaticSelectionEnabled()Whether the barcode is selected automatically when being scanned or not. final UnitsetAutomaticSelectionEnabled(Boolean automaticSelectionEnabled)Whether the barcode is selected automatically when being scanned or not. final BarcodeOverlayTextFormatgetTextFormat()Define the way of how to show barcode data with selection overlay. final UnitsetTextFormat(BarcodeOverlayTextFormat textFormat)Define the way of how to show barcode data with selection overlay. final IntegergetPolygonColor()The color of the polygon in the selection overlay. final UnitsetPolygonColor(Integer polygonColor)The color of the polygon in the selection overlay. final IntegergetTextColor()The color of the text in the selection overlay. final UnitsetTextColor(Integer textColor)The color of the text in the selection overlay. final IntegergetTextContainerColor()The color of the texts background in the selection overlay. final UnitsetTextContainerColor(Integer textContainerColor)The color of the texts background in the selection overlay. final IntegergetHighlightedPolygonColor()The color of the polygon in the selection overlay, when highlighted. final UnitsetHighlightedPolygonColor(Integer highlightedPolygonColor)The color of the polygon in the selection overlay, when highlighted. final IntegergetHighlightedTextColor()The color of the text in the selection overlay, when highlighted. final UnitsetHighlightedTextColor(Integer highlightedTextColor)The color of the text in the selection overlay, when highlighted. final IntegergetHighlightedTextContainerColor()The color of the texts background in the selection overlay, when highlighted. final UnitsetHighlightedTextContainerColor(Integer highlightedTextContainerColor)The color of the texts background in the selection overlay, when highlighted. -
-
Constructor Detail
-
SelectionOverlayConfiguration
SelectionOverlayConfiguration(Boolean overlayEnabled, Boolean automaticSelectionEnabled, BarcodeOverlayTextFormat textFormat, Integer polygonColor, Integer textColor, Integer textContainerColor, Integer highlightedPolygonColor, Integer highlightedTextColor, Integer highlightedTextContainerColor)
-
-
Method Detail
-
getOverlayEnabled
final Boolean getOverlayEnabled()
Whether the barcode selection overlay is enabled or not.
-
setOverlayEnabled
final Unit setOverlayEnabled(Boolean overlayEnabled)
Whether the barcode selection overlay is enabled or not.
-
getAutomaticSelectionEnabled
final Boolean getAutomaticSelectionEnabled()
Whether the barcode is selected automatically when being scanned or not. By default -
false.
-
setAutomaticSelectionEnabled
final Unit setAutomaticSelectionEnabled(Boolean automaticSelectionEnabled)
Whether the barcode is selected automatically when being scanned or not. By default -
false.
-
getTextFormat
final BarcodeOverlayTextFormat getTextFormat()
Define the way of how to show barcode data with selection overlay. By default - BarcodeOverlayTextFormat.CODE.
-
setTextFormat
final Unit setTextFormat(BarcodeOverlayTextFormat textFormat)
Define the way of how to show barcode data with selection overlay. By default - BarcodeOverlayTextFormat.CODE.
-
getPolygonColor
final Integer getPolygonColor()
The color of the polygon in the selection overlay. By default - Color.WHITE.
-
setPolygonColor
final Unit setPolygonColor(Integer polygonColor)
The color of the polygon in the selection overlay. By default - Color.WHITE.
-
getTextColor
final Integer getTextColor()
The color of the text in the selection overlay. By default - Color.BLACK.
-
setTextColor
final Unit setTextColor(Integer textColor)
The color of the text in the selection overlay. By default - Color.BLACK.
-
getTextContainerColor
final Integer getTextContainerColor()
The color of the texts background in the selection overlay. By default - Color.WHITE.
-
setTextContainerColor
final Unit setTextContainerColor(Integer textContainerColor)
The color of the texts background in the selection overlay. By default - Color.WHITE.
-
getHighlightedPolygonColor
final Integer getHighlightedPolygonColor()
The color of the polygon in the selection overlay, when highlighted. By default -
null.
-
setHighlightedPolygonColor
final Unit setHighlightedPolygonColor(Integer highlightedPolygonColor)
The color of the polygon in the selection overlay, when highlighted. By default -
null.
-
getHighlightedTextColor
final Integer getHighlightedTextColor()
The color of the text in the selection overlay, when highlighted. By default -
null.
-
setHighlightedTextColor
final Unit setHighlightedTextColor(Integer highlightedTextColor)
The color of the text in the selection overlay, when highlighted. By default -
null.
-
getHighlightedTextContainerColor
final Integer getHighlightedTextContainerColor()
The color of the texts background in the selection overlay, when highlighted. By default -
null.
-
setHighlightedTextContainerColor
final Unit setHighlightedTextContainerColor(Integer highlightedTextContainerColor)
The color of the texts background in the selection overlay, when highlighted. By default -
null.
-
-
-
-