Class Index | File Index

Classes


Class Rectangle

Represents a rectangle with origin xy position, width and height
Defined in: <..\..\src\teechart.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Rectangle(x, y, width, width)
Rectangle object.
Method Summary
Method Attributes Method Name and Description
 
 
 
 
setBottom(value)
 
setLeft(value)
 
setRight(value)
 
setTop(value)
Class Detail
Rectangle(x, y, width, width)
Rectangle object.
Parameters:
{Number} x
The position of left side of rectangle.
{Number} y
The position of top side of rectangle.
{Number} width
Amount of rectangle width.
{Number} width
Amount of rectangle height.
Method Detail
{Boolean} contains(p)
Parameters:
{Point} p
XY position to test.
Returns:
{Boolean} Returns if point p is inside the rectangle.

{Number} getBottom()
Returns:
{Number} Returns the position in pixels of the bottom side of the rectangle.

{Number} getRight()
Returns:
{Number} Returns the position in pixels of the right side of the rectangle.

setBottom(value)
Parameters:
{Number} value
Defines the position of bottom side of rectangle.

setLeft(value)
Parameters:
{Number} value
Defines the position of left side of rectangle.

setRight(value)
Parameters:
{Number} value
Defines the position of right side of rectangle.

setTop(value)
Parameters:
{Number} value
Defines the position of top side of rectangle.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Feb 29 2012 19:36:56 GMT+0100 (CET)