Class TextBorderStyle.Builder

  • Enclosing class:
    TextBorderStyle

    public static class TextBorderStyle.Builder
    extends Object
    Provides a builder for text borders.
    • Constructor Detail

      • Builder

        public Builder()
        Creates a new text border style builder.
    • Method Detail

      • topLeftCorner

        public TextBorderStyle.Builder topLeftCorner​(String pattern)
        Sets the top left corner for the border
        Parameters:
        pattern - top left corner pattern
        Returns:
        returns this Builder
      • topBorder

        public TextBorderStyle.Builder topBorder​(String pattern)
        Sets the top of the border
        Parameters:
        pattern - the top border pattern
        Returns:
        returns this Builder
      • topRightCorner

        public TextBorderStyle.Builder topRightCorner​(String pattern)
        Sets the top right corner for the border
        Parameters:
        pattern - top right corner pattern
        Returns:
        returns this Builder
      • leftBorder

        public TextBorderStyle.Builder leftBorder​(String pattern)
        Sets the left border pattern
        Parameters:
        pattern - the left border pattern
        Returns:
        returns this Builder
      • rightBorder

        public TextBorderStyle.Builder rightBorder​(String pattern)
        Sets the right border pattern
        Parameters:
        pattern - the right border pattern
        Returns:
        returns this Builder
      • bottomLeftCorner

        public TextBorderStyle.Builder bottomLeftCorner​(String pattern)
        Sets the bottom left corner
        Parameters:
        pattern - bottom left corner pattern
        Returns:
        returns this Builder
      • bottomBorder

        public TextBorderStyle.Builder bottomBorder​(String pattern)
        Sets the bottom of the border
        Parameters:
        pattern - bottom border pattern
        Returns:
        returns this Builder
      • bottomRightCorner

        public TextBorderStyle.Builder bottomRightCorner​(String pattern)
        Sets the bottom right corner
        Parameters:
        pattern - bottom right corner pattern
        Returns:
        returns this Builder
      • build

        public TextBorderStyle build()
        Creates a new text border style using the current state of the builder.
        Returns:
        returns a new text border style