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>namedMapprivate ScanbotColorsbColorPrimaryprivate ScanbotColorsbColorPrimaryDisabledprivate ScanbotColorsbColorNegativeprivate ScanbotColorsbColorPositiveprivate ScanbotColorsbColorWarningprivate ScanbotColorsbColorSecondaryprivate ScanbotColorsbColorSecondaryDisabledprivate ScanbotColorsbColorOnPrimaryprivate ScanbotColorsbColorOnSecondaryprivate ScanbotColorsbColorSurfaceprivate ScanbotColorsbColorOutlineprivate ScanbotColorsbColorOnSurfaceVariantprivate ScanbotColorsbColorOnSurfaceprivate ScanbotColorsbColorSurfaceLowprivate ScanbotColorsbColorSurfaceHighprivate ScanbotColorsbColorModalOverlay
-
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 ScanbotColorgetSbColorPrimary()The primary color used for enabled elements. final UnitsetSbColorPrimary(ScanbotColor sbColorPrimary)The primary color used for enabled elements. final ScanbotColorgetSbColorPrimaryDisabled()The primary color used for disabled elements. final UnitsetSbColorPrimaryDisabled(ScanbotColor sbColorPrimaryDisabled)The primary color used for disabled elements. final ScanbotColorgetSbColorNegative()The color used to convey a negative meaning. final UnitsetSbColorNegative(ScanbotColor sbColorNegative)The color used to convey a negative meaning. final ScanbotColorgetSbColorPositive()The color used to convey a positive meaning. final UnitsetSbColorPositive(ScanbotColor sbColorPositive)The color used to convey a positive meaning. final ScanbotColorgetSbColorWarning()The color used to convey warnings. final UnitsetSbColorWarning(ScanbotColor sbColorWarning)The color used to convey warnings. final ScanbotColorgetSbColorSecondary()The secondary color used for enabled elements. final UnitsetSbColorSecondary(ScanbotColor sbColorSecondary)The secondary color used for enabled elements. final ScanbotColorgetSbColorSecondaryDisabled()The secondary color used for disabled elements. final UnitsetSbColorSecondaryDisabled(ScanbotColor sbColorSecondaryDisabled)The secondary color used for disabled elements. final ScanbotColorgetSbColorOnPrimary()The color used for displaying elements on top of the primary color. final UnitsetSbColorOnPrimary(ScanbotColor sbColorOnPrimary)The color used for displaying elements on top of the primary color. final ScanbotColorgetSbColorOnSecondary()The color used for displaying elements on top of the secondary color. final UnitsetSbColorOnSecondary(ScanbotColor sbColorOnSecondary)The color used for displaying elements on top of the secondary color. final ScanbotColorgetSbColorSurface()The color used for surfaces. final UnitsetSbColorSurface(ScanbotColor sbColorSurface)The color used for surfaces. final ScanbotColorgetSbColorOutline()The color used for outlines. final UnitsetSbColorOutline(ScanbotColor sbColorOutline)The color used for outlines. final ScanbotColorgetSbColorOnSurfaceVariant()The alternative color used on top of surfaces. final UnitsetSbColorOnSurfaceVariant(ScanbotColor sbColorOnSurfaceVariant)The alternative color used on top of surfaces. final ScanbotColorgetSbColorOnSurface()The color used on top of surfaces. final UnitsetSbColorOnSurface(ScanbotColor sbColorOnSurface)The color used on top of surfaces. final ScanbotColorgetSbColorSurfaceLow()The color with a low alpha (transparency) value used for certain surfaces. final UnitsetSbColorSurfaceLow(ScanbotColor sbColorSurfaceLow)The color with a low alpha (transparency) value used for certain surfaces. final ScanbotColorgetSbColorSurfaceHigh()The color with a high alpha (transparency) value used for certain surfaces. final UnitsetSbColorSurfaceHigh(ScanbotColor sbColorSurfaceHigh)The color with a high alpha (transparency) value used for certain surfaces. final ScanbotColorgetSbColorModalOverlay()The color with a very high alpha (transparency) value used to fill certain overlays. final UnitsetSbColorModalOverlay(ScanbotColor sbColorModalOverlay)The color with a very high alpha (transparency) value used to fill certain overlays. final JSONObjecttoJson(ToJsonConfiguration config)final Paletteclone()final static Palettedefault()-
-
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(ToJsonConfiguration config)
-
-
-
-