public class TemplateColorScheme extends RPCStruct
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 |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_BACKGROUND_COLOR |
static String |
KEY_PRIMARY_COLOR |
static String |
KEY_SECONDARY_COLOR |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
TemplateColorScheme()
Constructs a new TemplateColorScheme object
|
TemplateColorScheme(Hashtable<String,Object> hash)
Constructs a new TemplateColorScheme object indicated by the Hashtable parameter
|
| Modifier and Type | Method and Description |
|---|---|
RGBColor |
getBackgroundColor()
Gets the backgroundColor of the scheme
|
RGBColor |
getPrimaryColor()
Gets the primaryColor of the scheme
|
RGBColor |
getSecondaryColor()
Gets the secondaryColor of the scheme
|
TemplateColorScheme |
setBackgroundColor(RGBColor color)
Sets the backgroundColor of the scheme
|
TemplateColorScheme |
setPrimaryColor(RGBColor color)
Sets the primaryColor of the scheme
|
TemplateColorScheme |
setSecondaryColor(RGBColor color)
Sets the secondaryColor of the scheme
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_PRIMARY_COLOR
public static final String KEY_SECONDARY_COLOR
public static final String KEY_BACKGROUND_COLOR
public TemplateColorScheme()
public TemplateColorScheme setPrimaryColor(RGBColor color)
color - an RGBColor object representing the primaryColorpublic RGBColor getPrimaryColor()
public TemplateColorScheme setSecondaryColor(RGBColor color)
color - an RGBColor object representing the secondaryColorpublic RGBColor getSecondaryColor()
public TemplateColorScheme setBackgroundColor(RGBColor color)
color - an RGBColor object representing the backgroundColorpublic RGBColor getBackgroundColor()