Class BorderRadius

java.lang.Object
com.itextpdf.layout.properties.BorderRadius

public class BorderRadius extends Object
Represents a border radius.
  • Constructor Details

    • BorderRadius

      public BorderRadius (UnitValue radius)
      Creates a border radius with given value.
      Parameters:
      radius - the radius
    • BorderRadius

      public BorderRadius (float radius)
      Creates a border radius with a given point value.
      Parameters:
      radius - the radius
    • BorderRadius

      public BorderRadius (UnitValue horizontalRadius, UnitValue verticalRadius)
      Creates a border radius with given horizontal and vertical values.
      Parameters:
      horizontalRadius - the horizontal radius of the corner
      verticalRadius - the vertical radius of the corner
    • BorderRadius

      public BorderRadius (float horizontalRadius, float verticalRadius)
      Creates a border radius with given horizontal and vertical point values.
      Parameters:
      horizontalRadius - the horizontal radius of the corner
      verticalRadius - the vertical radius of the corner
  • Method Details

    • getHorizontalRadius

      public UnitValue getHorizontalRadius()
      Gets the horizontal radius of the border's corner.
      Returns:
      the horizontal radius
    • getVerticalRadius

      public UnitValue getVerticalRadius()
      Gets the vertical radius of the border's corner.
      Returns:
      the vertical radius