Package com.itextpdf.layout.properties
Class BorderRadius
- java.lang.Object
-
- com.itextpdf.layout.properties.BorderRadius
-
public class BorderRadius extends java.lang.Object
Represents a border radius.
-
-
Field Summary
Fields Modifier and Type Field Description private UnitValue
horizontalRadius
The horizontal semi-major axis of the ellipse to use for the border in that corner.private UnitValue
verticalRadius
The vertical semi-major axis of the ellipse to use for the border in that corner.
-
Constructor Summary
Constructors Constructor Description BorderRadius(float radius)
Creates aborder radius
with a given point value.BorderRadius(float horizontalRadius, float verticalRadius)
Creates aborder radius
with given horizontal and vertical point values.BorderRadius(UnitValue radius)
Creates aborder radius
with given value.BorderRadius(UnitValue horizontalRadius, UnitValue verticalRadius)
Creates aborder radius
with given horizontal and vertical values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnitValue
getHorizontalRadius()
Gets the horizontal radius of theborder's
corner.UnitValue
getVerticalRadius()
Gets the vertical radius of theborder's
corner.
-
-
-
Constructor Detail
-
BorderRadius
public BorderRadius(UnitValue radius)
Creates aborder radius
with given value.- Parameters:
radius
- the radius
-
BorderRadius
public BorderRadius(float radius)
Creates aborder radius
with a given point value.- Parameters:
radius
- the radius
-
BorderRadius
public BorderRadius(UnitValue horizontalRadius, UnitValue verticalRadius)
Creates aborder radius
with given horizontal and vertical values.- Parameters:
horizontalRadius
- the horizontal radius of the cornerverticalRadius
- the vertical radius of the corner
-
BorderRadius
public BorderRadius(float horizontalRadius, float verticalRadius)
Creates aborder radius
with given horizontal and vertical point values.- Parameters:
horizontalRadius
- the horizontal radius of the cornerverticalRadius
- the vertical radius of the corner
-
-