Rectangle
Overview
Rectangle is a class in Aspose.PDF FOSS for Java.
Inherits from: Shape.
Represents a rectangle drawing shape.
This class provides 12 methods for working with Rectangle objects in Java programs.
Available methods include: Rectangle, checkBounds, getBottom, getHeight, getLeft, getRoundedCornerRadius, getWidth, setBottom, setHeight, setLeft, setRoundedCornerRadius, setWidth.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: bottom, height, left, roundedCornerRadius, width.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
left | float | Read | Gets the x-coordinate of the lower-left corner. |
bottom | float | Read | Gets the y-coordinate of the lower-left corner. |
width | float | Read | Gets the width of the rectangle. |
height | float | Read | Gets the height of the rectangle. |
roundedCornerRadius | float | Read | Gets the corner radius for rounded rectangles. |
Methods
| Signature | Description |
|---|---|
Rectangle(left: float, bottom: float, width: float, height: float) | Creates a new rectangle with the specified position and dimensions. |
getLeft() → float | Gets the x-coordinate of the lower-left corner. |
setLeft(left: float) | Sets the x-coordinate of the lower-left corner. |
getBottom() → float | Gets the y-coordinate of the lower-left corner. |
setBottom(bottom: float) | Sets the y-coordinate of the lower-left corner. |
getWidth() → float | Gets the width of the rectangle. |
setWidth(width: float) | Sets the width of the rectangle. |
getHeight() → float | Gets the height of the rectangle. |
setHeight(height: float) | Sets the height of the rectangle. |
getRoundedCornerRadius() → float | Gets the corner radius for rounded rectangles. |
setRoundedCornerRadius(roundedCornerRadius: float) | Sets the corner radius for rounded rectangles. |
checkBounds(containerWidth: double, containerHeight: double) | {@inheritDoc} |
| / |