Zimlet JavaScript API Reference - DwtRectangle

Class DwtRectangle


This class represents a rectangle. A point has an x-coordinate, y-coordinate, height and width.

Defined in: DwtRectangle.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
DwtRectangle(x, y, width, height)
Creates a rectangle.
Field Summary
Field Attributes Field Name and Description
 
The height.
 
The width.
 
x
The x-coordinate.
 
y
The y-coordinate.
Method Summary
Method Attributes Method Name and Description
 
set(x, y, width, height)
Sets the values of the rectangle.
 
Returns a string representation of the object.
Class Detail
DwtRectangle(x, y, width, height)
Creates a rectangle.
Author: Ross Dargahi.
Parameters:
{number} x
the x coordinate
{number} y
the y coordinate
{number} width
the width
{number} height
the height
Field Detail
{number} height
The height.

{number} width
The width.

{number} x
The x-coordinate.

{number} y
The y-coordinate.
Method Detail
set(x, y, width, height)
Sets the values of the rectangle.
Parameters:
{number} x
the x coordinate
{number} y
the y coordinate
{number} width
the width
{number} height
the height

{string} toString()
Returns a string representation of the object.
Returns:
{string} a string representation of the object

Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:26 GMT-0400 (EDT)