Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

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)

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)

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 void setRed(Integer color)

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 void setGreen(Integer color)

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 void setBlue(Integer color)

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, deserializeJSONObject, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section