Class Rectangle
Represents a rectangle with origin xy position, width and height
Defined in: <..\..\src\teechart.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Rectangle(x, y, width, width)
Rectangle object.
|
Method Attributes | Method Name and Description |
---|---|
contains(p)
|
|
getRight()
|
|
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.