public class PadesVisualText
extends java.lang.Object
Constructor and Description |
---|
PadesVisualText() |
PadesVisualText(java.lang.String text)
Creates a Text default specification for PAdES signature visual representation
|
PadesVisualText(java.lang.String text,
boolean includeSigningTime)
Creates a Text specification for PAdES signature visual representation
|
PadesVisualText(java.lang.String text,
boolean includeSigningTime,
double fontSize)
Creates a Text specification for PAdES signature visual representation
|
PadesVisualText(java.lang.String text,
double fontSize)
Creates a Text specification for PAdES signature visual representation
|
Modifier and Type | Method and Description |
---|---|
PadesVisualRectangle |
getContainer() |
java.lang.Double |
getFontSize() |
PadesTextHorizontalAlign |
getHorizontalAlign() |
java.lang.Boolean |
getIncludeSigningTime() |
java.lang.String |
getText() |
void |
setContainer(PadesVisualRectangle container)
Sets the inner container, that will control the text's relative position inside the visual representation
|
void |
setFontSize(java.lang.Double fontSize)
Sets the text font size
|
void |
setHorizontalAlign(PadesTextHorizontalAlign horizontalAlign)
Sets the image horizontal alignment inside the signature rectangle
|
void |
setIncludeSigningTime(java.lang.Boolean includeSigningTime)
Sets whether or not to include the signing date in the signature representation
|
void |
setText(java.lang.String text)
Sets the text to be written on the signature visual representation.
|
com.lacunasoftware.restpki.PadesVisualTextModel |
toModel() |
public PadesVisualText()
public PadesVisualText(java.lang.String text)
text
- Text to be written on the signature visual representation. The text may contain tags in the format
{{tagName}} which will be substituted with according values. The supported tags are {{signerName}} and
{{signerNationalId}}.public PadesVisualText(java.lang.String text, boolean includeSigningTime)
text
- Text to be written on the signature visual representation. The text may contain tags in the format
{{tagName}} which will be substituted with according values. The supported tags are {{signerName}} and
{{signerNationalId}}.includeSigningTime
- Whether or not to include the signing date in the signature representationpublic PadesVisualText(java.lang.String text, double fontSize)
text
- Text to be written on the signature visual representation. The text may contain tags in the format
{{tagName}} which will be substituted with according values. The supported tags are {{signerName}} and
{{signerNationalId}}.fontSize
- The text font size. If not set, default is an auto adjustable font size based on the signature
rectangle dimensionspublic PadesVisualText(java.lang.String text, boolean includeSigningTime, double fontSize)
text
- Text to be written on the signature visual representation. The text may contain tags in the format
{{tagName}} which will be substituted with according values. The supported tags are {{signerName}}
and {{signerNationalId}}.includeSigningTime
- Whether or not to include the signing date in the signature representationfontSize
- The text font size. If not set, default is an auto adjustable font size based on the signature
rectangle dimensionspublic java.lang.Double getFontSize()
public void setFontSize(java.lang.Double fontSize)
fontSize
- The text font size. If not set, default is an auto adjustable font size based on the signature
rectangle dimensionspublic java.lang.String getText()
public void setText(java.lang.String text)
text
- Text to be written on the signature visual representation. The text may contain tags in the format
{{tagName}} which will be substituted with according values. The supported tags are {{signerName}}
and {{signerNationalId}}.public java.lang.Boolean getIncludeSigningTime()
public void setIncludeSigningTime(java.lang.Boolean includeSigningTime)
includeSigningTime
- Whether or not to include the signing date in the signature representationpublic PadesTextHorizontalAlign getHorizontalAlign()
public void setHorizontalAlign(PadesTextHorizontalAlign horizontalAlign)
horizontalAlign
- public PadesVisualRectangle getContainer()
public void setContainer(PadesVisualRectangle container)
container
- Container that will control the text's relative position inside the visual representationpublic com.lacunasoftware.restpki.PadesVisualTextModel toModel()