Class ScanbotPalette
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ScanbotPalette implements Parcelable
Value palette describing the colors of the scanner screens.
-
-
Field Summary
Fields Modifier and Type Field Description private final Map<String, ScanbotColor>
namedMap
private ScanbotColor
sbColorPrimary
private ScanbotColor
sbColorPrimaryDisabled
private ScanbotColor
sbColorNegative
private ScanbotColor
sbColorPositive
private ScanbotColor
sbColorWarning
private ScanbotColor
sbColorSecondary
private ScanbotColor
sbColorSecondaryDisabled
private ScanbotColor
sbColorOnPrimary
private ScanbotColor
sbColorOnSecondary
private ScanbotColor
sbColorSurface
private ScanbotColor
sbColorOutline
private ScanbotColor
sbColorOnSurfaceVariant
private ScanbotColor
sbColorOnSurface
private ScanbotColor
sbColorSurfaceLow
private ScanbotColor
sbColorSurfaceHigh
private ScanbotColor
sbColorModalOverlay
-
Constructor Summary
Constructors Constructor Description ScanbotPalette(Map<String, Object> json)
ScanbotPalette()
ScanbotPalette(ScanbotColor sbColorPrimary, ScanbotColor sbColorPrimaryDisabled, ScanbotColor sbColorNegative, ScanbotColor sbColorPositive, ScanbotColor sbColorWarning, ScanbotColor sbColorSecondary, ScanbotColor sbColorSecondaryDisabled, ScanbotColor sbColorOnPrimary, ScanbotColor sbColorOnSecondary, ScanbotColor sbColorSurface, ScanbotColor sbColorOutline, ScanbotColor sbColorOnSurfaceVariant, ScanbotColor sbColorOnSurface, ScanbotColor sbColorSurfaceLow, ScanbotColor sbColorSurfaceHigh, ScanbotColor sbColorModalOverlay)
-
Method Summary
Modifier and Type Method Description final Map<String, ScanbotColor>
getNamedMap()
final ScanbotColor
getSbColorPrimary()
Primary color used for enabled elements. final Unit
setSbColorPrimary(ScanbotColor sbColorPrimary)
Primary color used for enabled elements. final ScanbotColor
getSbColorPrimaryDisabled()
Primary color used for disabled elements. final Unit
setSbColorPrimaryDisabled(ScanbotColor sbColorPrimaryDisabled)
Primary color used for disabled elements. final ScanbotColor
getSbColorNegative()
Color used to convey a negative meaning. final Unit
setSbColorNegative(ScanbotColor sbColorNegative)
Color used to convey a negative meaning. final ScanbotColor
getSbColorPositive()
Color used to convey a positive meaning. final Unit
setSbColorPositive(ScanbotColor sbColorPositive)
Color used to convey a positive meaning. final ScanbotColor
getSbColorWarning()
Color used to convey warnings. final Unit
setSbColorWarning(ScanbotColor sbColorWarning)
Color used to convey warnings. final ScanbotColor
getSbColorSecondary()
Secondary color used for enabled elements. final Unit
setSbColorSecondary(ScanbotColor sbColorSecondary)
Secondary color used for enabled elements. final ScanbotColor
getSbColorSecondaryDisabled()
Secondary color used for disabled elements. final Unit
setSbColorSecondaryDisabled(ScanbotColor sbColorSecondaryDisabled)
Secondary color used for disabled elements. final ScanbotColor
getSbColorOnPrimary()
Color used for displaying elements on top of the primary color. final Unit
setSbColorOnPrimary(ScanbotColor sbColorOnPrimary)
Color used for displaying elements on top of the primary color. final ScanbotColor
getSbColorOnSecondary()
Color used for displaying elements on top of the secondary color. final Unit
setSbColorOnSecondary(ScanbotColor sbColorOnSecondary)
Color used for displaying elements on top of the secondary color. final ScanbotColor
getSbColorSurface()
Color used for surfaces. final Unit
setSbColorSurface(ScanbotColor sbColorSurface)
Color used for surfaces. final ScanbotColor
getSbColorOutline()
Color used for outlines. final Unit
setSbColorOutline(ScanbotColor sbColorOutline)
Color used for outlines. final ScanbotColor
getSbColorOnSurfaceVariant()
Alternative color used on top of surfaces. final Unit
setSbColorOnSurfaceVariant(ScanbotColor sbColorOnSurfaceVariant)
Alternative color used on top of surfaces. final ScanbotColor
getSbColorOnSurface()
Color used on top of surfaces. final Unit
setSbColorOnSurface(ScanbotColor sbColorOnSurface)
Color used on top of surfaces. final ScanbotColor
getSbColorSurfaceLow()
Transparent color with a low alpha value used for certain surfaces. final Unit
setSbColorSurfaceLow(ScanbotColor sbColorSurfaceLow)
Transparent color with a low alpha value used for certain surfaces. final ScanbotColor
getSbColorSurfaceHigh()
Transparent color with a high alpha value used for certain surfaces. final Unit
setSbColorSurfaceHigh(ScanbotColor sbColorSurfaceHigh)
Transparent color with a high alpha value used for certain surfaces. final ScanbotColor
getSbColorModalOverlay()
Transparent color with a very high alpha value used to fill certain overlays. final Unit
setSbColorModalOverlay(ScanbotColor sbColorModalOverlay)
Transparent color with a very high alpha value used to fill certain overlays. -
-
Constructor Detail
-
ScanbotPalette
ScanbotPalette()
-
ScanbotPalette
ScanbotPalette(ScanbotColor sbColorPrimary, ScanbotColor sbColorPrimaryDisabled, ScanbotColor sbColorNegative, ScanbotColor sbColorPositive, ScanbotColor sbColorWarning, ScanbotColor sbColorSecondary, ScanbotColor sbColorSecondaryDisabled, ScanbotColor sbColorOnPrimary, ScanbotColor sbColorOnSecondary, ScanbotColor sbColorSurface, ScanbotColor sbColorOutline, ScanbotColor sbColorOnSurfaceVariant, ScanbotColor sbColorOnSurface, ScanbotColor sbColorSurfaceLow, ScanbotColor sbColorSurfaceHigh, ScanbotColor sbColorModalOverlay)
-
-
Method Detail
-
getNamedMap
final Map<String, ScanbotColor> getNamedMap()
-
getSbColorPrimary
final ScanbotColor getSbColorPrimary()
Primary color used for enabled elements.
-
setSbColorPrimary
final Unit setSbColorPrimary(ScanbotColor sbColorPrimary)
Primary color used for enabled elements.
-
getSbColorPrimaryDisabled
final ScanbotColor getSbColorPrimaryDisabled()
Primary color used for disabled elements.
-
setSbColorPrimaryDisabled
final Unit setSbColorPrimaryDisabled(ScanbotColor sbColorPrimaryDisabled)
Primary color used for disabled elements.
-
getSbColorNegative
final ScanbotColor getSbColorNegative()
Color used to convey a negative meaning.
-
setSbColorNegative
final Unit setSbColorNegative(ScanbotColor sbColorNegative)
Color used to convey a negative meaning.
-
getSbColorPositive
final ScanbotColor getSbColorPositive()
Color used to convey a positive meaning.
-
setSbColorPositive
final Unit setSbColorPositive(ScanbotColor sbColorPositive)
Color used to convey a positive meaning.
-
getSbColorWarning
final ScanbotColor getSbColorWarning()
Color used to convey warnings.
-
setSbColorWarning
final Unit setSbColorWarning(ScanbotColor sbColorWarning)
Color used to convey warnings.
-
getSbColorSecondary
final ScanbotColor getSbColorSecondary()
Secondary color used for enabled elements.
-
setSbColorSecondary
final Unit setSbColorSecondary(ScanbotColor sbColorSecondary)
Secondary color used for enabled elements.
-
getSbColorSecondaryDisabled
final ScanbotColor getSbColorSecondaryDisabled()
Secondary color used for disabled elements.
-
setSbColorSecondaryDisabled
final Unit setSbColorSecondaryDisabled(ScanbotColor sbColorSecondaryDisabled)
Secondary color used for disabled elements.
-
getSbColorOnPrimary
final ScanbotColor getSbColorOnPrimary()
Color used for displaying elements on top of the primary color.
-
setSbColorOnPrimary
final Unit setSbColorOnPrimary(ScanbotColor sbColorOnPrimary)
Color used for displaying elements on top of the primary color.
-
getSbColorOnSecondary
final ScanbotColor getSbColorOnSecondary()
Color used for displaying elements on top of the secondary color.
-
setSbColorOnSecondary
final Unit setSbColorOnSecondary(ScanbotColor sbColorOnSecondary)
Color used for displaying elements on top of the secondary color.
-
getSbColorSurface
final ScanbotColor getSbColorSurface()
Color used for surfaces.
-
setSbColorSurface
final Unit setSbColorSurface(ScanbotColor sbColorSurface)
Color used for surfaces.
-
getSbColorOutline
final ScanbotColor getSbColorOutline()
Color used for outlines.
-
setSbColorOutline
final Unit setSbColorOutline(ScanbotColor sbColorOutline)
Color used for outlines.
-
getSbColorOnSurfaceVariant
final ScanbotColor getSbColorOnSurfaceVariant()
Alternative color used on top of surfaces.
-
setSbColorOnSurfaceVariant
final Unit setSbColorOnSurfaceVariant(ScanbotColor sbColorOnSurfaceVariant)
Alternative color used on top of surfaces.
-
getSbColorOnSurface
final ScanbotColor getSbColorOnSurface()
Color used on top of surfaces.
-
setSbColorOnSurface
final Unit setSbColorOnSurface(ScanbotColor sbColorOnSurface)
Color used on top of surfaces.
-
getSbColorSurfaceLow
final ScanbotColor getSbColorSurfaceLow()
Transparent color with a low alpha value used for certain surfaces.
-
setSbColorSurfaceLow
final Unit setSbColorSurfaceLow(ScanbotColor sbColorSurfaceLow)
Transparent color with a low alpha value used for certain surfaces.
-
getSbColorSurfaceHigh
final ScanbotColor getSbColorSurfaceHigh()
Transparent color with a high alpha value used for certain surfaces.
-
setSbColorSurfaceHigh
final Unit setSbColorSurfaceHigh(ScanbotColor sbColorSurfaceHigh)
Transparent color with a high alpha value used for certain surfaces.
-
getSbColorModalOverlay
final ScanbotColor getSbColorModalOverlay()
Transparent color with a very high alpha value used to fill certain overlays.
-
setSbColorModalOverlay
final Unit setSbColorModalOverlay(ScanbotColor sbColorModalOverlay)
Transparent color with a very high alpha value used to fill certain overlays.
-
-
-
-