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

NameTypeAccessDescription
lLXdoubleReadReturns the lower-left x coordinate.
lLYdoubleReadReturns the lower-left y coordinate.
uRXdoubleReadReturns the upper-right x coordinate.
uRYdoubleReadReturns the upper-right y coordinate.
widthdoubleReadReturns the width of this rectangle (urx - llx).
heightdoubleReadReturns the height of this rectangle (ury - lly).

Methods

SignatureDescription
Rectangle(llx: double, lly: double, urx: double, ury: double)Creates a rectangle from its four corner coordinates.
getLLX()doubleReturns the lower-left x coordinate.
getLLY()doubleReturns the lower-left y coordinate.
getURX()doubleReturns the upper-right x coordinate.
getURY()doubleReturns the upper-right y coordinate.
getWidth()doubleReturns the width of this rectangle (urx - llx).
getHeight()doubleReturns the height of this rectangle (ury - lly).
fromCOSArray(array: COSArray)RectangleCreates a Rectangle from a COS array of four numbers.
toCOSArray()COSArrayConverts this rectangle to a COS array of four numbers.
isIntersect(other: Rectangle)booleanDetermines whether this rectangle intersects with the specified rectangle.
equals(o: Object)boolean
hashCode()int
toString()String

See Also