Rectangle
Overview
Rectangle is a class in Aspose.Pdf FOSS for Java.
Represents a rectangle defined by lower-left and upper-right corners (ISO 32000-1:2008, §7.9.5).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
lLX | double | Read | Returns the lower-left x coordinate. |
lLY | double | Read | Returns the lower-left y coordinate. |
uRX | double | Read | Returns the upper-right x coordinate. |
uRY | double | Read | Returns the upper-right y coordinate. |
width | double | Read | Returns the width of this rectangle (urx - llx). |
height | double | Read | Returns the height of this rectangle (ury - lly). |
Methods
| Signature | Description |
|---|---|
Rectangle(llx: double, lly: double, urx: double, ury: double) | Creates a rectangle from its four corner coordinates. |
getLLX() → double | Returns the lower-left x coordinate. |
getLLY() → double | Returns the lower-left y coordinate. |
getURX() → double | Returns the upper-right x coordinate. |
getURY() → double | Returns the upper-right y coordinate. |
getWidth() → double | Returns the width of this rectangle (urx - llx). |
getHeight() → double | Returns the height of this rectangle (ury - lly). |
fromCOSArray(array: COSArray) → Rectangle | Creates a Rectangle from a COS array of four numbers. |
toCOSArray() → COSArray | Converts this rectangle to a COS array of four numbers. |
isIntersect(other: Rectangle) → boolean | Determines whether this rectangle intersects with the specified rectangle. |
equals(o: Object) → boolean | |
hashCode() → int | |
toString() → String |