com.groupdocs.comparison.options.style

Class StyleSettings.Builder

  • Enclosing class:
    StyleSettings


    public static class StyleSettings.Builder
    extends Object
    A little sugar
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new Builder.
    • Method Detail

      • build

        public final StyleSettings build()
        Build style settings.
        Returns:
        the style settings
      • setBold

        public StyleSettings.Builder setBold(boolean value)
        Sets bold.
        Parameters:
        value - the value
        Returns:
        the bold
      • setEndStringSeparator

        public StyleSettings.Builder setEndStringSeparator(String value)
        Sets end string separator.
        Parameters:
        value - the value
        Returns:
        the end string separator
      • setFontColor

        public StyleSettings.Builder setFontColor(Color value)
        Sets font color.
        Parameters:
        value - the value
        Returns:
        the font color
      • setHighlightColor

        public StyleSettings.Builder setHighlightColor(Color value)
        Sets highlight color.
        Parameters:
        value - the value
        Returns:
        the highlight color
      • setItalic

        public StyleSettings.Builder setItalic(boolean value)
        Sets italic.
        Parameters:
        value - the value
        Returns:
        the italic
      • setOriginalSize

        public StyleSettings.Builder setOriginalSize(Size value)
        Sets original size.
        Parameters:
        value - the value
        Returns:
        the original size
      • setStartStringSeparator

        public StyleSettings.Builder setStartStringSeparator(String value)
        Sets start string separator.
        Parameters:
        value - the value
        Returns:
        the start string separator
      • setStrikethrough

        public StyleSettings.Builder setStrikethrough(boolean value)
        Sets strikethrough.
        Parameters:
        value - the value
        Returns:
        the strikethrough
      • setUnderline

        public StyleSettings.Builder setUnderline(boolean value)
        Sets underline.
        Parameters:
        value - the value
        Returns:
        the underline
      • setWordsSeparators

        public StyleSettings.Builder setWordsSeparators(char[] value)
        Sets words separators.
        Parameters:
        value - the value
        Returns:
        the words separators