com.aspose.pdf.drawing

Class Rectangle



  • public final class Rectangle
    extends Shape

    Represents rectangle.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Rectangle()
      Constructor
      Rectangle(float left, float bottom, float width, float height)
      Initializes a new instance of the Rectangle class.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      double getBottom()
      Gets float value that indicates the bottom position of the rectangle.
      double getHeight()
      Gets float value that indicates the height of the rectangle.
      double getLeft()
      Gets float value that indicates the left position of the rectangle.
      double getRoundedCornerRadius()
      Gets float value that indicates the radius of rectangle corners.
      double getWidth()
      Gets float value that indicates the width of the rectangle.
      void setBottom(double value)
      Sets float value that indicates the bottom position of the rectangle.
      void setHeight(double value)
      Sets float value that indicates the height of the rectangle.
      void setLeft(double value)
      Sets float value that indicates the left position of the rectangle.
      void setRoundedCornerRadius(double value)
      Sets float value that indicates the radius of rectangle corners.
      void setWidth(double value)
      Sets float value that indicates the width of the rectangle.
    • Constructor Detail

      • Rectangle

        public Rectangle()
        Constructor
      • Rectangle

        public Rectangle(float left,
                 float bottom,
                 float width,
                 float height)

        Initializes a new instance of the Rectangle class.

        Parameters:
        left - The left position of the rectangle.
        bottom - The bottom position of the rectangle.
        width - The width of the rectangle.
        height - The height of the rectangle.
    • Method Detail

      • getRoundedCornerRadius

        public double getRoundedCornerRadius()

        Gets float value that indicates the radius of rectangle corners.

        Returns:
        value that indicates the radius of rectangle corners.
      • setRoundedCornerRadius

        public void setRoundedCornerRadius(double value)

        Sets float value that indicates the radius of rectangle corners.

        Parameters:
        value - that indicates the radius of rectangle corners.
      • getLeft

        public double getLeft()

        Gets float value that indicates the left position of the rectangle.

        Returns:
        float value that indicates the left position of the rectangle.
      • setLeft

        public void setLeft(double value)

        Sets float value that indicates the left position of the rectangle.

        Parameters:
        value - 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:
        value that indicates the bottom position of the rectangle.
      • setBottom

        public void setBottom(double value)

        Sets float value that indicates the bottom position of the rectangle.

        Parameters:
        value - value that indicates the bottom position of the rectangle.
      • getWidth

        public double getWidth()

        Gets float value that indicates the width of the rectangle.

        Returns:
        value that indicates the width of the rectangle.
      • setWidth

        public void setWidth(double value)

        Sets float value that indicates the width of the rectangle.

        Parameters:
        value - that indicates the width of the rectangle.
      • getHeight

        public double getHeight()

        Gets float value that indicates the height of the rectangle.

        Returns:
        value that indicates the height of the rectangle.
      • setHeight

        public void setHeight(double value)

        Sets float value that indicates the height of the rectangle.

        Parameters:
        value - value that indicates the height of the rectangle.