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()
The primary color used for enabled elements. final Unit
setSbColorPrimary(ScanbotColor sbColorPrimary)
The primary color used for enabled elements. final ScanbotColor
getSbColorPrimaryDisabled()
The primary color used for disabled elements. final Unit
setSbColorPrimaryDisabled(ScanbotColor sbColorPrimaryDisabled)
The primary color used for disabled elements. final ScanbotColor
getSbColorNegative()
The color used to convey a negative meaning. final Unit
setSbColorNegative(ScanbotColor sbColorNegative)
The color used to convey a negative meaning. final ScanbotColor
getSbColorPositive()
The color used to convey a positive meaning. final Unit
setSbColorPositive(ScanbotColor sbColorPositive)
The color used to convey a positive meaning. final ScanbotColor
getSbColorWarning()
The color used to convey warnings. final Unit
setSbColorWarning(ScanbotColor sbColorWarning)
The color used to convey warnings. final ScanbotColor
getSbColorSecondary()
The secondary color used for enabled elements. final Unit
setSbColorSecondary(ScanbotColor sbColorSecondary)
The secondary color used for enabled elements. final ScanbotColor
getSbColorSecondaryDisabled()
The secondary color used for disabled elements. final Unit
setSbColorSecondaryDisabled(ScanbotColor sbColorSecondaryDisabled)
The secondary color used for disabled elements. final ScanbotColor
getSbColorOnPrimary()
The color used for displaying elements on top of the primary color. final Unit
setSbColorOnPrimary(ScanbotColor sbColorOnPrimary)
The color used for displaying elements on top of the primary color. final ScanbotColor
getSbColorOnSecondary()
The color used for displaying elements on top of the secondary color. final Unit
setSbColorOnSecondary(ScanbotColor sbColorOnSecondary)
The color used for displaying elements on top of the secondary color. final ScanbotColor
getSbColorSurface()
The color used for surfaces. final Unit
setSbColorSurface(ScanbotColor sbColorSurface)
The color used for surfaces. final ScanbotColor
getSbColorOutline()
The color used for outlines. final Unit
setSbColorOutline(ScanbotColor sbColorOutline)
The color used for outlines. final ScanbotColor
getSbColorOnSurfaceVariant()
The alternative color used on top of surfaces. final Unit
setSbColorOnSurfaceVariant(ScanbotColor sbColorOnSurfaceVariant)
The alternative color used on top of surfaces. final ScanbotColor
getSbColorOnSurface()
The color used on top of surfaces. final Unit
setSbColorOnSurface(ScanbotColor sbColorOnSurface)
The color used on top of surfaces. final ScanbotColor
getSbColorSurfaceLow()
The color with a low alpha (transparency) value used for certain surfaces. final Unit
setSbColorSurfaceLow(ScanbotColor sbColorSurfaceLow)
The color with a low alpha (transparency) value used for certain surfaces. final ScanbotColor
getSbColorSurfaceHigh()
The color with a high alpha (transparency) value used for certain surfaces. final Unit
setSbColorSurfaceHigh(ScanbotColor sbColorSurfaceHigh)
The color with a high alpha (transparency) value used for certain surfaces. final ScanbotColor
getSbColorModalOverlay()
The color with a very high alpha (transparency) value used to fill certain overlays. final Unit
setSbColorModalOverlay(ScanbotColor sbColorModalOverlay)
The color with a very high alpha (transparency) 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()
The primary color used for enabled elements. Default is "#C8193C"
-
setSbColorPrimary
final Unit setSbColorPrimary(ScanbotColor sbColorPrimary)
The primary color used for enabled elements. Default is "#C8193C"
-
getSbColorPrimaryDisabled
final ScanbotColor getSbColorPrimaryDisabled()
The primary color used for disabled elements. Default is "#F5F5F5"
-
setSbColorPrimaryDisabled
final Unit setSbColorPrimaryDisabled(ScanbotColor sbColorPrimaryDisabled)
The primary color used for disabled elements. Default is "#F5F5F5"
-
getSbColorNegative
final ScanbotColor getSbColorNegative()
The color used to convey a negative meaning. Default is "#FF3737"
-
setSbColorNegative
final Unit setSbColorNegative(ScanbotColor sbColorNegative)
The color used to convey a negative meaning. Default is "#FF3737"
-
getSbColorPositive
final ScanbotColor getSbColorPositive()
The color used to convey a positive meaning. Default is "#4EFFB4"
-
setSbColorPositive
final Unit setSbColorPositive(ScanbotColor sbColorPositive)
The color used to convey a positive meaning. Default is "#4EFFB4"
-
getSbColorWarning
final ScanbotColor getSbColorWarning()
The color used to convey warnings. Default is "#FFCE5C"
-
setSbColorWarning
final Unit setSbColorWarning(ScanbotColor sbColorWarning)
The color used to convey warnings. Default is "#FFCE5C"
-
getSbColorSecondary
final ScanbotColor getSbColorSecondary()
The secondary color used for enabled elements. Default is "#FFEDEE"
-
setSbColorSecondary
final Unit setSbColorSecondary(ScanbotColor sbColorSecondary)
The secondary color used for enabled elements. Default is "#FFEDEE"
-
getSbColorSecondaryDisabled
final ScanbotColor getSbColorSecondaryDisabled()
The secondary color used for disabled elements. Default is "#F5F5F5"
-
setSbColorSecondaryDisabled
final Unit setSbColorSecondaryDisabled(ScanbotColor sbColorSecondaryDisabled)
The secondary color used for disabled elements. Default is "#F5F5F5"
-
getSbColorOnPrimary
final ScanbotColor getSbColorOnPrimary()
The color used for displaying elements on top of the primary color. Default is "#FFFFFF"
-
setSbColorOnPrimary
final Unit setSbColorOnPrimary(ScanbotColor sbColorOnPrimary)
The color used for displaying elements on top of the primary color. Default is "#FFFFFF"
-
getSbColorOnSecondary
final ScanbotColor getSbColorOnSecondary()
The color used for displaying elements on top of the secondary color. Default is "#C8193C"
-
setSbColorOnSecondary
final Unit setSbColorOnSecondary(ScanbotColor sbColorOnSecondary)
The color used for displaying elements on top of the secondary color. Default is "#C8193C"
-
getSbColorSurface
final ScanbotColor getSbColorSurface()
The color used for surfaces. Default is "#FFFFFF"
-
setSbColorSurface
final Unit setSbColorSurface(ScanbotColor sbColorSurface)
The color used for surfaces. Default is "#FFFFFF"
-
getSbColorOutline
final ScanbotColor getSbColorOutline()
The color used for outlines. Default is "#EFEFEF"
-
setSbColorOutline
final Unit setSbColorOutline(ScanbotColor sbColorOutline)
The color used for outlines. Default is "#EFEFEF"
-
getSbColorOnSurfaceVariant
final ScanbotColor getSbColorOnSurfaceVariant()
The alternative color used on top of surfaces. Default is "#707070"
-
setSbColorOnSurfaceVariant
final Unit setSbColorOnSurfaceVariant(ScanbotColor sbColorOnSurfaceVariant)
The alternative color used on top of surfaces. Default is "#707070"
-
getSbColorOnSurface
final ScanbotColor getSbColorOnSurface()
The color used on top of surfaces. Default is "#000000"
-
setSbColorOnSurface
final Unit setSbColorOnSurface(ScanbotColor sbColorOnSurface)
The color used on top of surfaces. Default is "#000000"
-
getSbColorSurfaceLow
final ScanbotColor getSbColorSurfaceLow()
The color with a low alpha (transparency) value used for certain surfaces. Default is "#00000026"
-
setSbColorSurfaceLow
final Unit setSbColorSurfaceLow(ScanbotColor sbColorSurfaceLow)
The color with a low alpha (transparency) value used for certain surfaces. Default is "#00000026"
-
getSbColorSurfaceHigh
final ScanbotColor getSbColorSurfaceHigh()
The color with a high alpha (transparency) value used for certain surfaces. Default is "#0000007A"
-
setSbColorSurfaceHigh
final Unit setSbColorSurfaceHigh(ScanbotColor sbColorSurfaceHigh)
The color with a high alpha (transparency) value used for certain surfaces. Default is "#0000007A"
-
getSbColorModalOverlay
final ScanbotColor getSbColorModalOverlay()
The color with a very high alpha (transparency) value used to fill certain overlays. Default is "#000000A3"
-
setSbColorModalOverlay
final Unit setSbColorModalOverlay(ScanbotColor sbColorModalOverlay)
The color with a very high alpha (transparency) value used to fill certain overlays. Default is "#000000A3"
-
toJson
final JSONObject toJson()
-
-
-
-