Package eu.europa.esig.dss.enumerations
Enum Class ImageScaling
- All Implemented Interfaces:
Serializable
,Comparable<ImageScaling>
,Constable
This class defines an enumeration that can be used to define the image scaling behavior
for signature fields with a fixed size
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionKeeps the original image size and centers the image in both directionsStretches the image in both directions in order to fill the signature field boxZooms the image to the closest dimension without stretching and centers the image in other direction -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageScaling
Returns the enum constant of this class with the specified name.static ImageScaling[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRETCH
Stretches the image in both directions in order to fill the signature field box -
ZOOM_AND_CENTER
Zooms the image to the closest dimension without stretching and centers the image in other direction -
CENTER
Keeps the original image size and centers the image in both directions
-
-
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
-