Class LineProperties.Builder

  • Enclosing class:
    LineProperties

    public static final class LineProperties.Builder
    extends Object
    Provides a builder of line properties.
    • Constructor Detail

      • Builder

        public Builder()
        Creates a new empty builder.
    • Method Detail

      • suppressHyphenation

        public LineProperties.Builder suppressHyphenation​(boolean value)
        Suppresses hyphenation on a line.
        Parameters:
        value - true if hyphenation should be suppressed, false otherwise.
        Returns:
        this builder
      • reservedWidth

        public LineProperties.Builder reservedWidth​(int value)
        Reserves a number of characters on a line.
        Parameters:
        value - the number of characters to reserve.
        Returns:
        this builder