Enum TextWrapping

java.lang.Object
java.lang.Enum<TextWrapping>
eu.europa.esig.dss.enumerations.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 Summary

    Enum Constants
    Enum Constant
    Description
    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.
    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.
    When using the value, the text is generated based on the font values provided within parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    static TextWrapping[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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. When using with a combination of image, the image block is computed at first and the rest space is filled by text.
    • 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. When using with a combination of image, the image block is computed at first and the rest space is filled by text.
    • FONT_BASED

      public static final TextWrapping FONT_BASED
      When using the value, the text is generated based on the font values provided within parameters. When using this value with combination of image, the text is computed at first and the rest space is filled by the image.
  • Method Details

    • values

      public static TextWrapping[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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