StiGisRect Class
Namespace: Stimulsoft.Report.Maps.Gis
Constructors
| Constructor | Description |
|---|---|
| constructor(number x, number y, number width, number height, StiGisPoint location, StiGisSize size) |
constructor(x: number, y: number, width: number, height: number, location: StiGisPoint, size: StiGisSize)
Parameters
- x (number)
- y (number)
- width (number)
- height (number)
- location (StiGisPoint)
- size (StiGisSize)
Properties
| Property | Type | Description |
|---|---|---|
| bottom | number | |
empty static |
StiGisRect | |
| left | number | |
| right | number | |
| top | number |
Methods
| Method | Returns | Description |
|---|---|---|
| contains | boolean | |
| contains2 | boolean | |
| contains3 | boolean | |
| equals | boolean | |
| getLeftBottom | StiGisPoint | |
| getLocation | StiGisPoint | |
| getRightBottom | StiGisPoint | |
| getRightTop | StiGisPoint | |
| getSize | StiGisSize | |
| inflate | void | |
| isEmpty | boolean | |
| offset | void | |
| offsetNegative | void | |
opEquals static |
boolean | |
opNotEquals static |
boolean | |
| setLocation | void | |
| setSize | void | |
| toString | string |
Method Details
contains
contains(x: number, y: number): boolean
Parameters
- x (number)
- y (number)
Returns boolean
contains2
contains2(pt: StiGisPoint): boolean
Parameters
- pt (StiGisPoint)
Returns boolean
contains3
contains3(rect: StiGisRect): boolean
Parameters
- rect (StiGisRect)
Returns boolean
equals
equals(obj: any): boolean
Parameters
- obj (any)
Returns boolean
getLeftBottom
getLeftBottom(): StiGisPoint
Returns StiGisPoint
getLocation
getLocation(): StiGisPoint
Returns StiGisPoint
getRightBottom
getRightBottom(): StiGisPoint
Returns StiGisPoint
getRightTop
getRightTop(): StiGisPoint
Returns StiGisPoint
getSize
getSize(): StiGisSize
Returns StiGisSize
inflate
inflate(width: number, height: number): void
Parameters
- width (number)
- height (number)
isEmpty
isEmpty(): boolean
Returns boolean
offset
offset(x: number, y: number): void
Parameters
- x (number)
- y (number)
offsetNegative
offsetNegative(pos: StiGisPoint): void
Parameters
- pos (StiGisPoint)
opEquals static
opEquals(left: StiGisRect, right: StiGisRect): boolean
Parameters
- left (StiGisRect)
- right (StiGisRect)
Returns boolean
opNotEquals static
opNotEquals(left: StiGisRect, right: StiGisRect): boolean
Parameters
- left (StiGisRect)
- right (StiGisRect)
Returns boolean
setLocation
setLocation(value: StiGisPoint): void
Parameters
- value (StiGisPoint)
setSize
setSize(value: StiGisSize): void
Parameters
- value (StiGisSize)
toString
toString(): string
Returns string
Fields
| Field | Type | Description |
|---|---|---|
| height | number | |
| width | number | |
| x | number | |
| y | number |