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
JavaSE Documentation
Rectangle

Class Rectangle

Hierarchy

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

Package
com.smartdevicelink.proxy.rpc

Overview

Defines Rectangle for each user control object for video streaming application

Fields

KEY_X

public static final java.lang.String KEY_X
Constant Value
"x"

KEY_Y

public static final java.lang.String KEY_Y
Constant Value
"y"

KEY_WIDTH

public static final java.lang.String KEY_WIDTH
Constant Value
"width"

KEY_HEIGHT

public static final java.lang.String KEY_HEIGHT
Constant Value
"height"

Inherited Fields

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

Constructors

Rectangle()

public Rectangle()

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

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

Constructor Parameters

hash

Rectangle( Float x, Float y, Float width, Float height )

public Rectangle(Float x,Float y,Float width,Float height)

Constructor Parameters

x
y
width
height

Methods

setX( Float x )

Set the X-coordinate pixel in of the user control that starts in the upper left corner

public com.smartdevicelink.proxy.rpc.Rectangle setX(Float x)

Method Parameters

x

getX()

public java.lang.Float getX()

setY( Float y )

Set the Y-coordinate pixel of the user control that starts in the upper left corner

public com.smartdevicelink.proxy.rpc.Rectangle setY(Float y)

Method Parameters

y

getY()

public java.lang.Float getY()

setWidth( Float width )

Set the width in pixels of the user control's bounding rectangle in pixels

public com.smartdevicelink.proxy.rpc.Rectangle setWidth(Float width)

Method Parameters

width

getWidth()

public java.lang.Float getWidth()

setHeight( Float height )

The height in pixels of the user control's bounding rectangle

public com.smartdevicelink.proxy.rpc.Rectangle setHeight(Float height)

Method Parameters

height

getHeight()

public java.lang.Float getHeight()

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