Package eu.europa.esig.dss.enumerations
Enum TextWrapping
- All Implemented Interfaces:
Serializable
,Comparable<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 ConstantDescriptionWhen 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 TypeMethodDescriptionstatic TextWrapping
Returns the enum constant of this type with the specified name.static TextWrapping[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException
- if the argument is null
-