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
RGBColor

Class RGBColor

Hierarchy

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

Package
com.smartdevicelink.proxy.rpc

Overview

A color class that stores RGB values

Parameter List

Name Type Reg. Notes Version Available
red Integer Y
  • minvalue="0"
  • maxvalue="255"
SmartDeviceLink 5.0
green Integer Y
  • minvalue="0"
  • maxvalue="255"
SmartDeviceLink 5.0
blue Integer Y
  • minvalue="0"
  • maxvalue="255"
SmartDeviceLink 5.0

Fields

KEY_RED

public static final java.lang.String KEY_RED
Constant Value
"red"

KEY_GREEN

public static final java.lang.String KEY_GREEN
Constant Value
"green"

KEY_BLUE

public static final java.lang.String KEY_BLUE
Constant Value
"blue"

Inherited Fields

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

Constructors

RGBColor()

Constructs a new RGBColor object

public RGBColor()

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

Constructs a new RGBColor object indicated by the Hashtable parameter

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

Constructor Parameters

hash
The Hashtable to use

RGBColor( Integer red, Integer green, Integer blue )

Constructs a new RGB object

public RGBColor(Integer red,Integer green,Integer blue)

Constructor Parameters

red
red value - min: 0; max: 255
green
green value - min: 0; max: 255
blue
blue value - min: 0; max: 255

Methods

setRed( Integer color )

Sets the red value of the color object

public com.smartdevicelink.proxy.rpc.RGBColor setRed(Integer color)

Method Parameters

color
red value - min: 0; max: 255

getRed()

Gets the red value of the color

public java.lang.Integer getRed()

setGreen( Integer color )

Sets the green value of the color object

public com.smartdevicelink.proxy.rpc.RGBColor setGreen(Integer color)

Method Parameters

color
green value - min: 0; max: 255

getGreen()

Gets the green value of the color

public java.lang.Integer getGreen()

setBlue( Integer color )

Sets the blue value of the color object

public com.smartdevicelink.proxy.rpc.RGBColor setBlue(Integer color)

Method Parameters

color
blue value - min: 0; max: 255

getBlue()

Gets the green value of the color

public java.lang.Integer getBlue()

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