Package eu.europa.esig.dss.pades
Class SignatureImageTextParameters
java.lang.Object
eu.europa.esig.dss.pades.SignatureImageTextParameters
- All Implemented Interfaces:
Serializable
public class SignatureImageTextParameters extends Object implements Serializable
This class allows to custom text generation in the PAdES visible signature
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SignatureImageTextParameters() -
Method Summary
Modifier and Type Method Description ColorgetBackgroundColor()Returns background color for the text's areaDSSFontgetFont()Returns specified text font If not defined, returns a Default Font instance (PTSerifRegular)floatgetPadding()Returns padding between text and its areaSignerTextHorizontalAlignmentgetSignerTextHorizontalAlignment()Returns a signer text horizontal alignment valueSignerTextPositiongetSignerTextPosition()Returns a signer text position respectively to an imageSignerTextVerticalAlignmentgetSignerTextVerticalAlignment()Returns a signer text vertical alignment valueStringgetText()Returns defines text contentColorgetTextColor()Returns text color parametervoidsetBackgroundColor(Color backgroundColor)Sets the provided background color for a test's areavoidsetFont(DSSFont dssFont)Sets a text fontvoidsetPadding(float padding)Sets a padding between text and its areavoidsetSignerTextHorizontalAlignment(SignerTextHorizontalAlignment signerTextHorizontalAlignment)Allows a horizontal alignment of a text with respect to its areavoidsetSignerTextPosition(SignerTextPosition signerTextPosition)Specifies a text position respectively to an image inside the signature field areavoidsetSignerTextVerticalAlignment(SignerTextVerticalAlignment signerTextVerticalAlignment)Defines a vertical alignment (positioning) of signer text inside the signature fieldvoidsetText(String text)Sets a text content parametervoidsetTextColor(Color textColor)Sets color for the text
-
Constructor Details
-
SignatureImageTextParameters
public SignatureImageTextParameters()
-
-
Method Details
-
getSignerTextPosition
Returns a signer text position respectively to an image- Returns:
SignerTextPosition
-
setSignerTextPosition
Specifies a text position respectively to an image inside the signature field area- Parameters:
signerTextPosition-SignerTextPosition(TOP, BOTTOM, RIGHT, LEFT)
-
getSignerTextVerticalAlignment
Returns a signer text vertical alignment value- Returns:
SignerTextVerticalAlignment
-
setSignerTextVerticalAlignment
public void setSignerTextVerticalAlignment(SignerTextVerticalAlignment signerTextVerticalAlignment)Defines a vertical alignment (positioning) of signer text inside the signature field- Parameters:
signerTextVerticalAlignment-SignerTextVerticalAlignment(TOP, MIDDLE, BOTTOM)
-
getSignerTextHorizontalAlignment
Returns a signer text horizontal alignment value- Returns:
SignerTextHorizontalAlignment
-
setSignerTextHorizontalAlignment
public void setSignerTextHorizontalAlignment(SignerTextHorizontalAlignment signerTextHorizontalAlignment)Allows a horizontal alignment of a text with respect to its area- Parameters:
signerTextHorizontalAlignment-SignerTextHorizontalAlignment(LEFT, CENTER, RIGHT)
-
getFont
Returns specified text font If not defined, returns a Default Font instance (PTSerifRegular)- Returns:
DSSFont
-
setFont
Sets a text font- Parameters:
dssFont-DSSFont
-
getPadding
public float getPadding()Returns padding between text and its area- Returns:
floatpadding value
-
setPadding
public void setPadding(float padding)Sets a padding between text and its area- Parameters:
padding-floatpadding value
-
getTextColor
Returns text color parameter- Returns:
Color
-
setTextColor
Sets color for the text- Parameters:
textColor-Colorto set
-
getBackgroundColor
Returns background color for the text's area- Returns:
Colorof the text area background
-
setBackgroundColor
Sets the provided background color for a test's area- Parameters:
backgroundColor-Colorto set
-
getText
Returns defines text content- Returns:
Stringtext
-
setText
Sets a text content parameter- Parameters:
text-Stringtext to display
-