From 06e896f3578e9a527e4e80940e88342ea6dad24f Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:05:52 +0000 Subject: Cosmetic changes git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@127 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../at/asit/pdfover/gui/composites/SignaturePanel.java | 3 +-- .../at/asit/pdfover/gui/workflow/StateMachineImpl.java | 4 ++-- .../java/at/asit/pdfover/signator/SignatureParameter.java | 1 - .../asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java | 14 +++++++------- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java index e4060af5..f2c2c798 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java @@ -105,8 +105,7 @@ public class SignaturePanel extends JPanel { * Set a new document to be displayed * @param pdf the PDFFile to be displayed */ - public void setDocument(PDFFile pdf) - { + public void setDocument(PDFFile pdf) { this.pdf = pdf; this.sigPagePos = null; showPage(pdf.getNumPages()); diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java index 824611b5..3abecd39 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java @@ -59,7 +59,7 @@ public class StateMachineImpl implements StateMachine, GUIProvider { this.status.setCurrentState(new PrepareConfigurationState(this)); this.pdfSigner = new PDFSignerImpl(); this.configProvider = new ConfigProviderImpl(); - setCmdLineAargs(cmdLineArgs); + setCmdLineArgs(cmdLineArgs); } /** @@ -319,7 +319,7 @@ public class StateMachineImpl implements StateMachine, GUIProvider { * * @param cmdLineArgs */ - private void setCmdLineAargs(String[] cmdLineArgs) { + private void setCmdLineArgs(String[] cmdLineArgs) { this.cmdLineArgs = cmdLineArgs; } diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java index 5f394c1b..cc525058 100644 --- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java +++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java @@ -129,7 +129,6 @@ public abstract class SignatureParameter { */ public abstract Image getPlaceholder(); - /** * Gets the Emblem * @return the Emblem diff --git a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java index 519ebd9e..0af728a1 100644 --- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java +++ b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java @@ -57,13 +57,6 @@ public class PdfAsSignatureParameter extends SignatureParameter { private HashMap genericProperties = new HashMap(); - @Override - public SignatureDimension getPlaceholderDimension() { - // return new SignatureDimension(487, 206); - - return new SignatureDimension(262, 88); - } - /** * Gets the PDFAS Positioning * @@ -115,6 +108,13 @@ public class PdfAsSignatureParameter extends SignatureParameter { return this.genericProperties.get(key); } + @Override + public SignatureDimension getPlaceholderDimension() { + // return new SignatureDimension(487, 206); + + return new SignatureDimension(262, 88); + } + /* * (non-Javadoc) * -- cgit v1.2.3