Class BorderRadius


  • public class BorderRadius
    extends java.lang.Object
    Represents a border radius.
    • Field Detail

      • horizontalRadius

        private UnitValue horizontalRadius
        The horizontal semi-major axis of the ellipse to use for the border in that corner.
      • verticalRadius

        private UnitValue verticalRadius
        The vertical semi-major axis of the ellipse to use for the border in that corner.
    • Constructor Detail

      • 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 Detail

      • 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