Package eu.europa.esig.dss.pades
Class SignatureImageParameters
java.lang.Object
eu.europa.esig.dss.pades.SignatureImageParameters
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with default parameters -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a specified background color for the signature fieldgetDpi()
Returns a defined DPI value Note: can be nullReturnsSignatureFieldParameters
getImage()
Returns aDSSDocument
image defined for displaying on the signature fieldGets the image scalingReturns text parametersReturns a horizontal alignment value of the signature fieldReturns a vertical alignment value of the signature fieldint
getZoom()
Returns the defined Zoom value in percentageint
hashCode()
boolean
isEmpty()
Checks if theSignatureImageParameters
is empty (no image or text parameters are defined)void
setAlignmentHorizontal
(VisualSignatureAlignmentHorizontal alignmentHorizontal) Sets a horizontal alignment respectively to a page of the signature fieldvoid
setAlignmentVertical
(VisualSignatureAlignmentVertical alignmentVertical) Sets a vertical alignment respectively to a page of the signature fieldvoid
setBackgroundColor
(Color backgroundColor) Sets the background color for the signature fieldvoid
Sets an expected DPI value.void
setFieldParameters
(SignatureFieldParameters fieldParameters) SetsSignatureFieldParameters
, like signature field position and dimensionsvoid
setImage
(DSSDocument image) Allows to set a custom image to display on a signature fieldvoid
setImageScaling
(ImageScaling imageScaling) Sets the parameter used to define an image scaling behavior within a signature field DEFAULT : ImageScaling.STRETCH (stretches the image in both directions in order to fill the signature field)void
setTextParameters
(SignatureImageTextParameters textParameters) Sets text parametersvoid
setZoom
(int zoom) Defines the signature field zoom in percentage (default value = 100)toString()
-
Constructor Details
-
SignatureImageParameters
public SignatureImageParameters()Default constructor instantiating object with default parameters
-
-
Method Details
-
getImage
Returns aDSSDocument
image defined for displaying on the signature field- Returns:
DSSDocument
image
-
setImage
Allows to set a custom image to display on a signature field- Parameters:
image
-DSSDocument
-
getFieldParameters
ReturnsSignatureFieldParameters
- Returns:
SignatureFieldParameters
-
setFieldParameters
SetsSignatureFieldParameters
, like signature field position and dimensions- Parameters:
fieldParameters
-SignatureFieldParameters
-
getZoom
public int getZoom()Returns the defined Zoom value in percentage- Returns:
int
zoom
-
setZoom
public void setZoom(int zoom) Defines the signature field zoom in percentage (default value = 100)- Parameters:
zoom
-int
zoom value
-
getBackgroundColor
-
setBackgroundColor
-
getDpi
-
setDpi
-
getTextParameters
Returns text parameters- Returns:
SignatureImageTextParameters
-
setTextParameters
Sets text parameters- Parameters:
textParameters
-SignatureImageTextParameters
-
getVisualSignatureAlignmentHorizontal
Returns a horizontal alignment value of the signature field- Returns:
VisualSignatureAlignmentHorizontal
-
setAlignmentHorizontal
Sets a horizontal alignment respectively to a page of the signature field- Parameters:
alignmentHorizontal
-VisualSignatureAlignmentHorizontal
-
getVisualSignatureAlignmentVertical
Returns a vertical alignment value of the signature field- Returns:
VisualSignatureAlignmentVertical
-
setAlignmentVertical
Sets a vertical alignment respectively to a page of the signature field- Parameters:
alignmentVertical
-VisualSignatureAlignmentVertical
-
getImageScaling
-
setImageScaling
Sets the parameter used to define an image scaling behavior within a signature field DEFAULT : ImageScaling.STRETCH (stretches the image in both directions in order to fill the signature field)- Parameters:
imageScaling
-ImageScaling
-
isEmpty
public boolean isEmpty()Checks if theSignatureImageParameters
is empty (no image or text parameters are defined)- Returns:
- TRUE if the parameters are empty, FALSE otherwise
-
toString
-
equals
-
hashCode
-