|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.pageelements.forms.SignaturePanel
public class SignaturePanel
Represents a panel in the visible signature. Visible signature area will be divides in to three panels. Left or Top panel, Right or Bottom Panel and Full panel.
Method Summary | |
---|---|
java.lang.String |
getCustomMessage()
Gets a string for the custom message. |
boolean |
getFitImage()
Gets a value for resizing the given image to get fit with the panel area. |
int |
getFontSize()
Gets a int indicating the font size. |
ImageData |
getImageData()
Gets imaging.ImageData . |
boolean |
getKeepImageProportional()
Gets a value for maintaining image proportion when FitImage is set to true. |
boolean |
getKeepImagePropotional()
Deprecated. as of DynamicPDF v8.0.0 replaced by getKeepImageProportional() |
boolean |
getShowDate()
Gets a value indicating if the full date of signing should be displayed. |
boolean |
getShowDigitallySignedBy()
Gets a value indicating if 'Digitally Signed By {Subject name}' should be displayed. |
boolean |
getShowDistinguishedName()
Gets a value indicating if the distinguished name (Certificate Subject) should be displayed. |
boolean |
getShowLabels()
Gets a value indicating if the signature information should include a label. |
boolean |
getShowLocation()
Gets a value indicating display of location. |
boolean |
getShowReason()
Gets a value indicating if the reason should be displayed. |
boolean |
getShowSubjectName()
Gets a value indicating if the Subject Name from the certificate should be displayed. |
TextAlign |
getTextAlign()
Gets the TextAlign enum that specifies the text align inside the panel. |
Color |
getTextColor()
Gets text color. |
boolean |
getTextRightToLeft()
Gets a value indicating if text should be displayed right to left. |
void |
hideAllText()
Hides all text visibility for the panel. |
void |
setCustomMessage(java.lang.String value)
Sets a string for the custom message. |
void |
setFitImage(boolean value)
Sets a value for resizing the given image to get fit with the panel area. |
void |
setFontSize(int value)
Sets a int indicating the font size. |
void |
setImage(byte[] data)
Sets the image to the panel. |
void |
setImage(ImageData imageData)
Sets the image to the panel. |
void |
setImage(java.lang.String filePath)
Sets the image to the panel. |
void |
setImageData(ImageData value)
Sets imaging.ImageData . |
void |
setKeepImageProportional(boolean value)
Sets a value for maintaining image proportion when setFitImage(String value) is set to true. |
void |
setKeepImagePropotional(boolean value)
Deprecated. as of DynamicPDF v8.0.0 replaced by setKeepImageProportional(boolean) |
void |
setShowDate(boolean value)
Sets a value indicating if the full date of signing should be displayed. |
void |
setShowDigitallySignedBy(boolean value)
Sets a value indicating if 'Digitally Signed By {Subject name}' should be displayed. |
void |
setShowDistinguishedName(boolean value)
Sets a value indicating if the distinguished name (Certificate Subject) should be displayed. |
void |
setShowLabels(boolean value)
Sets a value indicating if the signature information should include a label. |
void |
setShowLocation(boolean value)
Sets a value indicating display of location. |
void |
setShowReason(boolean value)
Sets a value indicating if the reason should be displayed. |
void |
setShowSubjectName(boolean value)
Sets a value indicating if the Subject Name from the certificate should be displayed. |
void |
setTextAlign(TextAlign value)
Sets the TextAlign enum that specifies the text align inside the panel. |
void |
setTextColor(Color value)
Sets text color. |
void |
setTextRightToLeft(boolean value)
Sets a value indicating if text should be displayed right to left. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void hideAllText()
Signature.hideAllText()
for hiding all the text in all the panels.
Custom message string will also set to null.
Signature.hideAllText()
public void setImage(java.lang.String filePath) throws java.io.FileNotFoundException
java.io.FileNotFoundException
- if the file is not present.filePath
- Full path of the image file.public void setImage(byte[] data)
data
- Byte array containing a valid image data.public void setImage(ImageData imageData)
imageData
- Instance of ImageData.public boolean getShowLabels()
public void setShowLabels(boolean value)
value
- A boolean value specifying if the signature information should include a label.
Default is true. Disabling this option will cause a new line for each information item.public boolean getTextRightToLeft()
public void setTextRightToLeft(boolean value)
value
- A boolean value specifying if text should be displayed right to left.
Default is false.public boolean getShowDistinguishedName()
public void setShowDistinguishedName(boolean value)
value
- A boolean value specifying if the distinguished name (Certificate Subject) should be displayed.
Default - true[only for Right or Bottom]. Label for this information is DN.public boolean getShowSubjectName()
public void setShowSubjectName(boolean value)
value
- A boolean value specifying if the Subject Name from the certificate should be displayed.
Default - true[only for Left or Top]. There is no label for this.public boolean getShowDate()
public void setShowDate(boolean value)
value
- A boolean value specifying if the full date of signing should be displayed.
Default - true[only for the right or bottom panel].public boolean getShowDigitallySignedBy()
public void setShowDigitallySignedBy(boolean value)
value
- A boolean value specifying if 'Digitally Signed By {Subject name}' should be displayed.
Default - true[only for the right or bottom panel].public boolean getShowReason()
Signature.setReason(String value)
should be set.
Signature.setReason(String value)
public void setShowReason(boolean value)
value
- A boolean value specifying if the reason should be displayed.
Default - true[only for the right or bottom panel]. It also requires Signature.setReason(String value)
should be set.Signature.setReason(String value)
public boolean getShowLocation()
Signature.setLocation(String value)
should be set.
Signature.setLocation(String value)
public void setShowLocation(boolean value)
value
- A boolean value specifying display of location.
Default - true[only for the right or bottom panel]. It also requires Signature.setLocation(String value)
should be set.Signature.setLocation(String value)
public boolean getKeepImagePropotional()
getKeepImageProportional()
FitImage
is set to true.
Default is true.
setFitImage(boolean value)
public void setKeepImagePropotional(boolean value)
setKeepImageProportional(boolean)
setFitImage(String value)
is set to true.
value
- A boolean value specifying for maintaining image proportion.
Default is true.setFitImage(boolean value)
public boolean getKeepImageProportional()
FitImage
is set to true.
Default is true.
setFitImage(boolean value)
public void setKeepImageProportional(boolean value)
setFitImage(String value)
is set to true.
value
- A boolean value specifying for maintaining image proportion.
Default is true.setFitImage(boolean value)
public boolean getFitImage()
public void setFitImage(boolean value)
value
- A boolean value specifying for resizing the given image to get fit with the panel area.
Default is true.public int getFontSize()
public void setFontSize(int value)
value
- A boolean value specifying the font size.
By assiging a value more than zero, will override automatic font size adjustment to make the best fit of text in the panel.public java.lang.String getCustomMessage()
public void setCustomMessage(java.lang.String value)
value
- A string value specifying for the custom message.
Will be get append at the end of the message relavent to the panel.public TextAlign getTextAlign()
TextAlign
enum that specifies the text align inside the panel.
Default will be left align.
TextAlign
public void setTextAlign(TextAlign value)
TextAlign
enum that specifies the text align inside the panel.
value
- instance of TextAlign.
Default will be left align.TextAlign
public ImageData getImageData()
imaging.ImageData
.
ImageData
public void setImageData(ImageData value)
imaging.ImageData
.
value
- instance of ImageData.ImageData
public Color getTextColor()
public void setTextColor(Color value)
value
- instance of Color.
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |