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 value as an Integer. |
Rectangle | getLeft() | Integer | Returns the Left value as an Integer. |
Rectangle | getTop() | Integer | Returns the Top value as an Integer. |
Rectangle | getWidth() | Integer | Returns the Width value as an Integer. |
Object | toJson() | String | Returns a string of 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 | width of rectangle |
height | Integer | height of rectangle |
Example 1¶
getClassName()¶
Description¶
Returns the string name of this object's class type.
Example 15¶
getHeight()¶
Integer Rectangle::getHeight()
Description¶
Returns the Height value as an Integer.
Example 1¶
getLeft()¶
Description¶
Returns the Left value as an Integer.
Example 1¶
getTop()¶
Description¶
Returns the Top value as an Integer.
Example 1¶
getWidth()¶
Description¶
Returns the Width value as an Integer.
Example 1¶
toJson()¶
Description¶
Returns a string of a json representation of this object.