Package eu.europa.esig.dss.enumerations
Enum Class TextWrapping
- All Implemented Interfaces:
Serializable
,Comparable<TextWrapping>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
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 class with the specified name.static TextWrapping[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-