Enum TextWrapping

  • All Implemented Interfaces:
    Serializable, Comparable<TextWrapping>

    public enum TextWrapping
    extends Enum<TextWrapping>
    This enumeration defines a set of possibilities for text wrapping within a signature field with a fixed width and height for a PDF visual signature creation
    • Enum Constant Detail

      • FILL_BOX

        public static final TextWrapping FILL_BOX
        When using the value, a font size is adapted in order to fill the whole signature field's space, by keeping the defined whitespaces in new lines by user
      • FILL_BOX_AND_LINEBREAK

        public static final TextWrapping FILL_BOX_AND_LINEBREAK
        The text is formatted, by separating the provided text to multiple lines in order to find the biggest font size in order to wrap the text to the defined signature field's box
      • FONT_BASED

        public static final TextWrapping FONT_BASED
        When using the value, the text is generated based on the font values provided within parameters
    • Method Detail

      • values

        public static TextWrapping[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TextWrapping c : TextWrapping.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TextWrapping valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null