Rectangle¶
Definition¶
Extends¶
Extended By¶
None
Method Summary¶
Owner | Name | Return Type | Description |
---|---|---|---|
Rectangle | constructor(left, top, width, height) | Rectangle | Creates a new Rectangle. |
Object | getClassName() | String | Returns the string name of this object's class type. |
Rectangle | getHeight() | Integer | Returns the Height as an Integer. |
Rectangle | getLeft() | Integer | Returns the Left as an Integer. |
Rectangle | getTop() | Integer | Returns the Top as an Integer. |
Rectangle | getWidth() | Integer | Returns the Width as an Integer. |
Object | toJson() | String | Returns a json representation of this object. |
Method Definitions¶
constructor(left,top,width,height)¶
Rectangle rectangle = new Rectangle(Integer left, Integer top, Integer width, Integer height)
Description¶
Creates a new Rectangle.
Parameter Definition¶
Name | Type | Description |
---|---|---|
left | Integer | A measure of how far this rectangle is from the leftmost pixel. Similar to X |
top | Integer | A measure of how far this rectangle is from the topmost pixel. Similar to Y |
width | Integer | |
height | Integer |
getHeight()¶
Integer Rectangle::getHeight()
Description¶
Returns the Height as an Integer.
getLeft()¶
Description¶
Returns the Left as an Integer.
getTop()¶
Description¶
Returns the Top as an Integer.
getWidth()¶
Description¶
Returns the Width as an Integer.