Rectangle

Inheritance: java.lang.Object, com.aspose.pdf.drawing.Shape

public final class Rectangle extends Shape

Represents rectangle.

Constructors

ConstructorDescription
Rectangle()Constructor
Rectangle(float left, float bottom, float width, float height)Initializes a new instance of the Rectangle class.

Methods

MethodDescription
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:

ParameterTypeDescription
leftfloatThe left position of the rectangle.
bottomfloatThe bottom position of the rectangle.
widthfloatThe width of the rectangle.
heightfloatThe 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:

ParameterTypeDescription
valuedoublethat 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:

ParameterTypeDescription
valuedoublefloat 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:

ParameterTypeDescription
valuedoublevalue 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:

ParameterTypeDescription
valuedoublethat 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:

ParameterTypeDescription
valuedoublevalue that indicates the height of the rectangle.