Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
TemplateColorScheme

Class TemplateColorScheme

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct

Package
com.smartdevicelink.proxy.rpc

Overview

A color scheme for all display layout templates.

Parameter List

Name Type Description Reg. Version Available
primaryColor RGBColor The primary "accent" color N SmartDeviceLink 5.0
secondaryColor RGBColor The secondary "accent" color N SmartDeviceLink 5.0
backgroundColor RGBColor The color of the background N SmartDeviceLink 5.0

Fields

KEY_PRIMARY_COLOR

public static final java.lang.String KEY_PRIMARY_COLOR
Constant Value
"primaryColor"

KEY_SECONDARY_COLOR

public static final java.lang.String KEY_SECONDARY_COLOR
Constant Value
"secondaryColor"

KEY_BACKGROUND_COLOR

public static final java.lang.String KEY_BACKGROUND_COLOR
Constant Value
"backgroundColor"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

TemplateColorScheme()

Constructs a new TemplateColorScheme object

public TemplateColorScheme()

TemplateColorScheme( java.util.Hashtable<java.lang.String, java.lang.Object> hash )

Constructs a new TemplateColorScheme object indicated by the Hashtable parameter

public TemplateColorScheme(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Constructor Parameters

hash
The Hashtable to use

Methods

setPrimaryColor( RGBColor color )

Sets the primaryColor of the scheme

public com.smartdevicelink.proxy.rpc.TemplateColorScheme setPrimaryColor(RGBColor color)

Method Parameters

color
an RGBColor object representing the primaryColor

getPrimaryColor()

Gets the primaryColor of the scheme

public com.smartdevicelink.proxy.rpc.RGBColor getPrimaryColor()

setSecondaryColor( RGBColor color )

Sets the secondaryColor of the scheme

public com.smartdevicelink.proxy.rpc.TemplateColorScheme setSecondaryColor(RGBColor color)

Method Parameters

color
an RGBColor object representing the secondaryColor

getSecondaryColor()

Gets the secondaryColor of the scheme

public com.smartdevicelink.proxy.rpc.RGBColor getSecondaryColor()

setBackgroundColor( RGBColor color )

Sets the backgroundColor of the scheme

public com.smartdevicelink.proxy.rpc.TemplateColorScheme setBackgroundColor(RGBColor color)

Method Parameters

color
an RGBColor object representing the backgroundColor

getBackgroundColor()

Gets the backgroundColor of the scheme

public com.smartdevicelink.proxy.rpc.RGBColor getBackgroundColor()

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section