Package eu.europa.esig.dss.enumerations
Enum ImageScaling
- All Implemented Interfaces:
Serializable
,Comparable<ImageScaling>
This class defines an enumeration that can be used to define the image scaling behavior
for signature fields with a fixed size
-
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 type with the specified name.static ImageScaling[]
values()
Returns an array containing the constants of this enum type, 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 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
-