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

Rectangle Class Reference

Constructors

Instance Methods

Constructors

new Rectangle(parameters)

Initalizes an instance of Rectangle.

Instance Methods

rectangle.getHeight() ⇒ Number

Get the Height

Kind: Instance method of Rectangle
Returns: Number - the KEY_HEIGHT value

rectangle.getWidth() ⇒ Number

Get the Width

Kind: Instance method of Rectangle
Returns: Number - the KEY_WIDTH value

rectangle.getX() ⇒ Number

Get the X

Kind: Instance method of Rectangle
Returns: Number - the KEY_X value

rectangle.getY() ⇒ Number

Get the Y

Kind: Instance method of Rectangle
Returns: Number - the KEY_Y value

rectangle.setHeight(height) ⇒ Rectangle

Set the Height

Kind: Instance method of Rectangle
Returns: Rectangle - The class instance for method chaining.

ParamTypeDescription
height Number The height of the rectangle - The desired Height.

rectangle.setWidth(width) ⇒ Rectangle

Set the Width

Kind: Instance method of Rectangle
Returns: Rectangle - The class instance for method chaining.

ParamTypeDescription
width Number The width of the rectangle - The desired Width.

rectangle.setX(x) ⇒ Rectangle

Set the X

Kind: Instance method of Rectangle
Returns: Rectangle - The class instance for method chaining.

ParamTypeDescription
x Number The upper left X-coordinate of the rectangle - The desired X.

rectangle.setY(y) ⇒ Rectangle

Set the Y

Kind: Instance method of Rectangle
Returns: Rectangle - The class instance for method chaining.

ParamTypeDescription
y Number The upper left Y-coordinate of the rectangle - The desired Y.
View on GitHub.com
Previous Section Next Section