@@ -190,8 +190,9 @@ public int getPageNumber() {
190
190
* @param pageNumber The page number of the signature field which
191
191
* this signature appearance is associated with.
192
192
*/
193
- public void setPageNumber (int pageNumber ) {
193
+ public PdfSignatureAppearance setPageNumber (int pageNumber ) {
194
194
this .page = pageNumber ;
195
+ return this ;
195
196
}
196
197
197
198
/**
@@ -212,9 +213,10 @@ public Rectangle getPageRect() {
212
213
* @param pageRect The rectangle that represents the position and
213
214
* dimension of the signature field in the page.
214
215
*/
215
- public void setPageRect (Rectangle pageRect ) {
216
+ public PdfSignatureAppearance setPageRect (Rectangle pageRect ) {
216
217
this .pageRect = new Rectangle (pageRect );
217
218
this .rect = new Rectangle (pageRect .getWidth (), pageRect .getHeight ());
219
+ return this ;
218
220
}
219
221
220
222
/**
@@ -259,8 +261,9 @@ public RenderingMode getRenderingMode() {
259
261
*
260
262
* @param renderingMode the rendering mode
261
263
*/
262
- public void setRenderingMode (RenderingMode renderingMode ) {
264
+ public PdfSignatureAppearance setRenderingMode (RenderingMode renderingMode ) {
263
265
this .renderingMode = renderingMode ;
266
+ return this ;
264
267
}
265
268
266
269
/**
@@ -277,17 +280,19 @@ public String getReason() {
277
280
*
278
281
* @param reason signing reason.
279
282
*/
280
- public void setReason (String reason ) {
283
+ public PdfSignatureAppearance setReason (String reason ) {
281
284
this .reason = reason ;
285
+ return this ;
282
286
}
283
287
284
288
/**
285
289
* Sets the caption for the signing reason.
286
290
*
287
291
* @param reasonCaption A new signing reason caption
288
292
*/
289
- public void setReasonCaption (String reasonCaption ) {
293
+ public PdfSignatureAppearance setReasonCaption (String reasonCaption ) {
290
294
this .reasonCaption = reasonCaption ;
295
+ return this ;
291
296
}
292
297
293
298
/**
@@ -304,17 +309,19 @@ public String getLocation() {
304
309
*
305
310
* @param location A new signing location
306
311
*/
307
- public void setLocation (String location ) {
312
+ public PdfSignatureAppearance setLocation (String location ) {
308
313
this .location = location ;
314
+ return this ;
309
315
}
310
316
311
317
/**
312
318
* Sets the caption for the signing location.
313
319
*
314
320
* @param locationCaption A new signing location caption
315
321
*/
316
- public void setLocationCaption (String locationCaption ) {
322
+ public PdfSignatureAppearance setLocationCaption (String locationCaption ) {
317
323
this .locationCaption = locationCaption ;
324
+ return this ;
318
325
}
319
326
320
327
/**
@@ -331,8 +338,9 @@ public String getSignatureCreator(){
331
338
*
332
339
* @param signatureCreator A new name of the application signing a document
333
340
*/
334
- public void setSignatureCreator (String signatureCreator ){
341
+ public PdfSignatureAppearance setSignatureCreator (String signatureCreator ){
335
342
this .signatureCreator = signatureCreator ;
343
+ return this ;
336
344
}
337
345
338
346
/**
@@ -349,8 +357,9 @@ public String getContact() {
349
357
*
350
358
* @param contact A new signing contact
351
359
*/
352
- public void setContact (String contact ) {
360
+ public PdfSignatureAppearance setContact (String contact ) {
353
361
this .contact = contact ;
362
+ return this ;
354
363
}
355
364
356
365
/**
@@ -359,8 +368,9 @@ public void setContact(String contact) {
359
368
*
360
369
* @param signCertificate the certificate
361
370
*/
362
- public void setCertificate (Certificate signCertificate ) {
371
+ public PdfSignatureAppearance setCertificate (Certificate signCertificate ) {
363
372
this .signCertificate = signCertificate ;
373
+ return this ;
364
374
}
365
375
366
376
/**
@@ -386,15 +396,17 @@ public Image getSignatureGraphic() {
386
396
*
387
397
* @param signatureGraphic image rendered. If null the mode is defaulted to RenderingMode.DESCRIPTION
388
398
*/
389
- public void setSignatureGraphic (Image signatureGraphic ) {
399
+ public PdfSignatureAppearance setSignatureGraphic (Image signatureGraphic ) {
390
400
this .signatureGraphic = signatureGraphic ;
401
+ return this ;
391
402
}
392
403
393
404
/**
394
405
* Indicates that the existing appearances needs to be reused as layer 0.
395
406
*/
396
- public void setReuseAppearance (boolean reuseAppearance ) {
407
+ public PdfSignatureAppearance setReuseAppearance (boolean reuseAppearance ) {
397
408
this .reuseAppearance = reuseAppearance ;
409
+ return this ;
398
410
}
399
411
400
412
// layer 2
@@ -413,8 +425,9 @@ public Image getImage() {
413
425
*
414
426
* @param image the background image for the layer 2
415
427
*/
416
- public void setImage (Image image ) {
428
+ public PdfSignatureAppearance setImage (Image image ) {
417
429
this .image = image ;
430
+ return this ;
418
431
}
419
432
420
433
/**
@@ -434,8 +447,9 @@ public float getImageScale() {
434
447
*
435
448
* @param imageScale the scaling to be applied to the background image
436
449
*/
437
- public void setImageScale (float imageScale ) {
450
+ public PdfSignatureAppearance setImageScale (float imageScale ) {
438
451
this .imageScale = imageScale ;
452
+ return this ;
439
453
}
440
454
441
455
/**
@@ -444,8 +458,9 @@ public void setImageScale(float imageScale) {
444
458
* @param text the signature text identifying the signer. If null or not set
445
459
* a standard description will be used
446
460
*/
447
- public void setLayer2Text (String text ) {
461
+ public PdfSignatureAppearance setLayer2Text (String text ) {
448
462
layer2Text = text ;
463
+ return this ;
449
464
}
450
465
451
466
/**
@@ -471,17 +486,19 @@ public PdfFont getLayer2Font() {
471
486
*
472
487
* @param layer2Font the n2 and n4 font
473
488
*/
474
- public void setLayer2Font (PdfFont layer2Font ) {
489
+ public PdfSignatureAppearance setLayer2Font (PdfFont layer2Font ) {
475
490
this .layer2Font = layer2Font ;
491
+ return this ;
476
492
}
477
493
478
494
/**
479
495
* Sets the n2 and n4 layer font size.
480
496
*
481
497
* @param fontSize font size
482
498
*/
483
- public void setLayer2FontSize (float fontSize ) {
499
+ public PdfSignatureAppearance setLayer2FontSize (float fontSize ) {
484
500
this .layer2FontSize = fontSize ;
501
+ return this ;
485
502
}
486
503
487
504
/**
@@ -779,17 +796,19 @@ protected java.util.Calendar getSignDate() {
779
796
*
780
797
* @param signDate A new signature date
781
798
*/
782
- protected void setSignDate (java .util .Calendar signDate ) {
799
+ protected PdfSignatureAppearance setSignDate (java .util .Calendar signDate ) {
783
800
this .signDate = signDate ;
801
+ return this ;
784
802
}
785
803
786
804
/**
787
805
* Set the field name of the appearance.
788
806
*
789
807
* @param fieldName name of the field
790
808
*/
791
- protected void setFieldName (String fieldName ) {
809
+ protected PdfSignatureAppearance setFieldName (String fieldName ) {
792
810
this .fieldName = fieldName ;
811
+ return this ;
793
812
}
794
813
795
814
private void createBlankN0 () {
0 commit comments