public class RGBColor extends RPCStruct
Parameter List
| Name | Type | Reg. | Notes | Version Available |
|---|---|---|---|---|
| red | Integer | Y |
|
SmartDeviceLink 5.0 |
| green | Integer | Y |
|
SmartDeviceLink 5.0 |
| blue | Integer | Y |
|
SmartDeviceLink 5.0 |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_BLUE |
static String |
KEY_GREEN |
static String |
KEY_RED |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
RGBColor()
Constructs a new RGBColor object
|
RGBColor(Hashtable<String,Object> hash)
Constructs a new RGBColor object indicated by the Hashtable parameter
|
RGBColor(Integer red,
Integer green,
Integer blue)
Constructs a new RGB object
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getBlue()
Gets the green value of the color
|
Integer |
getGreen()
Gets the green value of the color
|
Integer |
getRed()
Gets the red value of the color
|
RGBColor |
setBlue(Integer color)
Sets the blue value of the color object
|
RGBColor |
setGreen(Integer color)
Sets the green value of the color object
|
RGBColor |
setRed(Integer color)
Sets the red value of the color object
|
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_RED
public static final String KEY_GREEN
public static final String KEY_BLUE
public RGBColor()
public RGBColor(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic RGBColor setRed(Integer color)
color - red value - min: 0; max: 255public Integer getRed()
public RGBColor setGreen(Integer color)
color - green value - min: 0; max: 255public Integer getGreen()
public RGBColor setBlue(Integer color)
color - blue value - min: 0; max: 255public Integer getBlue()