Interface RoundCornerDecorator

  • All Implemented Interfaces:

    
    public interface RoundCornerDecorator
    
                        

    Base decorator for applying rounded corner to the View.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit setCornerRadius(Float cornerRadius) Sets the radius for each corner.
      abstract Unit setCornerRadius(Float topLeft, Float topRight, Float bottomRight, Float bottomLeft) Sets different radius for each corners.
      abstract Unit setBorderColor(Integer borderColor) Sets the color to be used for the border line.
      abstract Unit setBorderWidth(Float borderWidth) Sets the width that will be used for the border line.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • setCornerRadius

         abstract Unit setCornerRadius(Float cornerRadius)

        Sets the radius for each corner.

        Parameters:
        cornerRadius - the radius for each corner to set.
      • setCornerRadius

         abstract Unit setCornerRadius(Float topLeft, Float topRight, Float bottomRight, Float bottomLeft)

        Sets different radius for each corners.

        Parameters:
        topLeft - the radius of top-left corner
        topRight - the radius of top-right corner
        bottomRight - the radius of bottom-right corner
        bottomLeft - the radius of bottom-left corner
      • setBorderColor

         abstract Unit setBorderColor(Integer borderColor)

        Sets the color to be used for the border line. By default Color.Transparent is used.

        Parameters:
        borderColor - the color to be used for the border line.
      • setBorderWidth

         abstract Unit setBorderWidth(Float borderWidth)

        Sets the width that will be used for the border line. By default 0 is used.