Class Palette
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class Palette 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 Palette(Map<String, Object> source)
Palette(JSONObject json)
Palette(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. final JSONObject
toJson()
final static Palette
default()
-
-
Constructor Detail
-
Palette
Palette(JSONObject json)
-
Palette
Palette(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. Default is "#C8193C"
-
setSbColorPrimary
final Unit setSbColorPrimary(ScanbotColor sbColorPrimary)
Primary color used for enabled elements. Default is "#C8193C"
-
getSbColorPrimaryDisabled
final ScanbotColor getSbColorPrimaryDisabled()
Primary color used for disabled elements. Default is "#F5F5F5"
-
setSbColorPrimaryDisabled
final Unit setSbColorPrimaryDisabled(ScanbotColor sbColorPrimaryDisabled)
Primary color used for disabled elements. Default is "#F5F5F5"
-
getSbColorNegative
final ScanbotColor getSbColorNegative()
Color used to convey a negative meaning. Default is "#FF3737"
-
setSbColorNegative
final Unit setSbColorNegative(ScanbotColor sbColorNegative)
Color used to convey a negative meaning. Default is "#FF3737"
-
getSbColorPositive
final ScanbotColor getSbColorPositive()
Color used to convey a positive meaning. Default is "#4EFFB4"
-
setSbColorPositive
final Unit setSbColorPositive(ScanbotColor sbColorPositive)
Color used to convey a positive meaning. Default is "#4EFFB4"
-
getSbColorWarning
final ScanbotColor getSbColorWarning()
Color used to convey warnings. Default is "#FFCE5C"
-
setSbColorWarning
final Unit setSbColorWarning(ScanbotColor sbColorWarning)
Color used to convey warnings. Default is "#FFCE5C"
-
getSbColorSecondary
final ScanbotColor getSbColorSecondary()
Secondary color used for enabled elements. Default is "#FFEDEE"
-
setSbColorSecondary
final Unit setSbColorSecondary(ScanbotColor sbColorSecondary)
Secondary color used for enabled elements. Default is "#FFEDEE"
-
getSbColorSecondaryDisabled
final ScanbotColor getSbColorSecondaryDisabled()
Secondary color used for disabled elements. Default is "#F5F5F5"
-
setSbColorSecondaryDisabled
final Unit setSbColorSecondaryDisabled(ScanbotColor sbColorSecondaryDisabled)
Secondary color used for disabled elements. Default is "#F5F5F5"
-
getSbColorOnPrimary
final ScanbotColor getSbColorOnPrimary()
Color used for displaying elements on top of the primary color. Default is "#FFFFFF"
-
setSbColorOnPrimary
final Unit setSbColorOnPrimary(ScanbotColor sbColorOnPrimary)
Color used for displaying elements on top of the primary color. Default is "#FFFFFF"
-
getSbColorOnSecondary
final ScanbotColor getSbColorOnSecondary()
Color used for displaying elements on top of the secondary color. Default is "#C8193C"
-
setSbColorOnSecondary
final Unit setSbColorOnSecondary(ScanbotColor sbColorOnSecondary)
Color used for displaying elements on top of the secondary color. Default is "#C8193C"
-
getSbColorSurface
final ScanbotColor getSbColorSurface()
Color used for surfaces. Default is "#FFFFFF"
-
setSbColorSurface
final Unit setSbColorSurface(ScanbotColor sbColorSurface)
Color used for surfaces. Default is "#FFFFFF"
-
getSbColorOutline
final ScanbotColor getSbColorOutline()
Color used for outlines. Default is "#EFEFEF"
-
setSbColorOutline
final Unit setSbColorOutline(ScanbotColor sbColorOutline)
Color used for outlines. Default is "#EFEFEF"
-
getSbColorOnSurfaceVariant
final ScanbotColor getSbColorOnSurfaceVariant()
Alternative color used on top of surfaces. Default is "#707070"
-
setSbColorOnSurfaceVariant
final Unit setSbColorOnSurfaceVariant(ScanbotColor sbColorOnSurfaceVariant)
Alternative color used on top of surfaces. Default is "#707070"
-
getSbColorOnSurface
final ScanbotColor getSbColorOnSurface()
Color used on top of surfaces. Default is "#000000"
-
setSbColorOnSurface
final Unit setSbColorOnSurface(ScanbotColor sbColorOnSurface)
Color used on top of surfaces. Default is "#000000"
-
getSbColorSurfaceLow
final ScanbotColor getSbColorSurfaceLow()
Transparent color with a low alpha value used for certain surfaces. Default is "#00000026"
-
setSbColorSurfaceLow
final Unit setSbColorSurfaceLow(ScanbotColor sbColorSurfaceLow)
Transparent color with a low alpha value used for certain surfaces. Default is "#00000026"
-
getSbColorSurfaceHigh
final ScanbotColor getSbColorSurfaceHigh()
Transparent color with a high alpha value used for certain surfaces. Default is "#0000007A"
-
setSbColorSurfaceHigh
final Unit setSbColorSurfaceHigh(ScanbotColor sbColorSurfaceHigh)
Transparent color with a high alpha value used for certain surfaces. Default is "#0000007A"
-
getSbColorModalOverlay
final ScanbotColor getSbColorModalOverlay()
Transparent color with a very high alpha value used to fill certain overlays. Default is "#000000A3"
-
setSbColorModalOverlay
final Unit setSbColorModalOverlay(ScanbotColor sbColorModalOverlay)
Transparent color with a very high alpha value used to fill certain overlays. Default is "#000000A3"
-
toJson
final JSONObject toJson()
-
-
-
-