diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-08 15:00:02 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-08 15:00:02 +0200 |
commit | edcabbd3f6b9fc7d4697257d4f9c2e18dc7c9534 (patch) | |
tree | c4411b5c4af5703b529aefabc24ca8abfd922664 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow | |
parent | 6c13dd46eabee023b9b852fa9e7897658017e4b8 (diff) | |
download | pdf-over-edcabbd3f6b9fc7d4697257d4f9c2e18dc7c9534.tar.gz pdf-over-edcabbd3f6b9fc7d4697257d4f9c2e18dc7c9534.tar.bz2 pdf-over-edcabbd3f6b9fc7d4697257d4f9c2e18dc7c9534.zip |
remove placeholder transparency from config
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow')
3 files changed, 1 insertions, 28 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationDataInMemory.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationDataInMemory.java index 39d557c5..51b48c09 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationDataInMemory.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationDataInMemory.java @@ -111,9 +111,6 @@ public class ConfigurationDataInMemory { /** Holds the proxy password */ public String proxyPass = null; - /** Holds the transparency of the signature placeholder */ - public int placeholderTransparency = Constants.DEFAULT_SIGNATURE_PLACEHOLDER_TRANSPARENCY; - /** Holds the default BKU to use */ public BKUs defaultBKU = BKUs.NONE; diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationManager.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationManager.java index 25353ac4..f9981878 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationManager.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationManager.java @@ -186,19 +186,6 @@ public class ConfigurationManager { } setDefaultBKUPersistent(defaultBKU); - // Set Signature placeholder transparency - int transparency = Constants.DEFAULT_SIGNATURE_PLACEHOLDER_TRANSPARENCY; - String trans = diskConfig.getProperty(Constants.CFG_SIGNATURE_PLACEHOLDER_TRANSPARENCY); - if (trans != null) { - try { - transparency = Integer.parseInt(trans); - } catch (NumberFormatException e) { - log.debug("Couldn't parse placeholder transparency", e); - // ignore parsing exception - } - } - setPlaceholderTransparency(transparency); - // Set MainWindow size int width = Constants.DEFAULT_MAINWINDOW_WIDTH; int height = Constants.DEFAULT_MAINWINDOW_HEIGHT; @@ -289,8 +276,6 @@ public class ConfigurationManager { props.setProperty(Constants.CFG_MOBILE_PASSWORD_REMEMBER, Constants.TRUE); props.setProperty(Constants.CFG_OUTPUT_FOLDER, getDefaultOutputFolderPersistent()); props.setProperty(Constants.CFG_POSTFIX, getSaveFilePostFix()); - props.setProperty(Constants.CFG_SIGNATURE_PLACEHOLDER_TRANSPARENCY, - Integer.toString(getPlaceholderTransparency())); Point size = this.configuration.mainWindowSize; props.setProperty(Constants.CFG_MAINWINDOW_SIZE, size.x + "," + size.y); @@ -428,14 +413,6 @@ public class ConfigurationManager { return this.configuration.autoPositionSignature; } - public void setPlaceholderTransparency(int transparency) { - this.configuration.placeholderTransparency = transparency; - } - - public int getPlaceholderTransparency() { - return this.configuration.placeholderTransparency; - } - public void setDefaultMobileNumberPersistent(String number) { if (number == null || number.trim().isEmpty()) { this.configuration.setMobileNumber(STRING_EMPTY); diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java index 1a4767dd..1f23f0ba 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java @@ -120,8 +120,7 @@ public class PositioningState extends State { PdfAs4SignaturePlaceholder.For(param, (p) -> { this.positionComposite.setPlaceholder( - p.getAWTImage(), - config.getPlaceholderTransparency()); + p.getAWTImage()); }); if (this.previousPosition != null && !this.previousPosition.useAutoPositioning()) |