Rectangle
Inheritance: java.lang.Object, com.aspose.pdf.drawing.Shape
public final class Rectangle extends Shape
Represents rectangle.
Constructors
| Constructor | Description |
|---|---|
| Rectangle() | Constructor |
| Rectangle(float left, float bottom, float width, float height) | Initializes a new instance of the Rectangle class. |
Methods
| Method | Description |
|---|---|
| getRoundedCornerRadius() | Gets float value that indicates the radius of rectangle corners. |
| setRoundedCornerRadius(double value) | Sets float value that indicates the radius of rectangle corners. |
| getLeft() | Gets float value that indicates the left position of the rectangle. |
| setLeft(double value) | Sets float value that indicates the left position of the rectangle. |
| getBottom() | Gets float value that indicates the bottom position of the rectangle. |
| setBottom(double value) | Sets float value that indicates the bottom position of the rectangle. |
| getWidth() | Gets float value that indicates the width of the rectangle. |
| setWidth(double value) | Sets float value that indicates the width of the rectangle. |
| getHeight() | Gets float value that indicates the height of the rectangle. |
| setHeight(double value) | Sets float value that indicates the height of the rectangle. |
Rectangle()
public Rectangle()
Constructor
Rectangle(float left, float bottom, float width, float height)
public Rectangle(float left, float bottom, float width, float height)
Initializes a new instance of the Rectangle class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| left | float | The left position of the rectangle. |
| bottom | float | The bottom position of the rectangle. |
| width | float | The width of the rectangle. |
| height | float | The height of the rectangle. |
getRoundedCornerRadius()
public double getRoundedCornerRadius()
Gets float value that indicates the radius of rectangle corners.
Returns: double - value that indicates the radius of rectangle corners.
setRoundedCornerRadius(double value)
public void setRoundedCornerRadius(double value)
Sets float value that indicates the radius of rectangle corners.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double | that indicates the radius of rectangle corners. |
getLeft()
public double getLeft()
Gets float value that indicates the left position of the rectangle.
Returns: double - float value that indicates the left position of the rectangle.
setLeft(double value)
public void setLeft(double value)
Sets float value that indicates the left position of the rectangle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double | float value that indicates the left position of the rectangle. |
getBottom()
public double getBottom()
Gets float value that indicates the bottom position of the rectangle.
Returns: double - value that indicates the bottom position of the rectangle.
setBottom(double value)
public void setBottom(double value)
Sets float value that indicates the bottom position of the rectangle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double | value that indicates the bottom position of the rectangle. |
getWidth()
public double getWidth()
Gets float value that indicates the width of the rectangle.
Returns: double - value that indicates the width of the rectangle.
setWidth(double value)
public void setWidth(double value)
Sets float value that indicates the width of the rectangle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double | that indicates the width of the rectangle. |
getHeight()
public double getHeight()
Gets float value that indicates the height of the rectangle.
Returns: double - value that indicates the height of the rectangle.
setHeight(double value)
public void setHeight(double value)
Sets float value that indicates the height of the rectangle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double | value that indicates the height of the rectangle. |