summaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:36 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:36 +0000
commit7ef866788508618ef3a60a366e629f599f744367 (patch)
tree173dffc1cd35b04887c4000c732e746aa5a09085 /trunk
parent264939c60ed1fa2ca299e95616004dff3e9c1078 (diff)
downloadpdf-over-7ef866788508618ef3a60a366e629f599f744367.tar.gz
pdf-over-7ef866788508618ef3a60a366e629f599f744367.tar.bz2
pdf-over-7ef866788508618ef3a60a366e629f599f744367.zip
SignaturePanel doesn't need to track PageNr
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12697 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java2
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java11
2 files changed, 1 insertions, 12 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
index 71e4149a..7d461772 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
@@ -182,7 +182,7 @@ public class PositioningComposite extends StateComposite {
*/
void setFinalPosition() {
// TODO: check if this is the real position
- this.position = new SignaturePosition(this.viewer.getSignaturePositionX(), this.viewer.getSignaturePositionY(), this.viewer.getCurrentPage());
+ this.position = new SignaturePosition(this.viewer.getSignaturePositionX(), this.viewer.getSignaturePositionY(), this.currentPage);
PositioningComposite.this.state.updateStateMachine();
}
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java
index 4d3ba584..6d88460b 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java
@@ -56,8 +56,6 @@ public class SignaturePanel extends JPanel {
private PDFPage currentPage;
/** The current transform from screen to page space */
AffineTransform currentXform;
- /** The current page number */
- private int currentPageNr;
/** The horizontal offset of the image from the left edge of the panel */
int offx;
/** The vertical offset of the image from the top of the panel */
@@ -100,7 +98,6 @@ public class SignaturePanel extends JPanel {
*/
public void showPage(int page) {
//sigPagePos = null;
- this.currentPageNr = page;
showPage(this.pdf.getPage(page));
}
@@ -121,14 +118,6 @@ public class SignaturePanel extends JPanel {
}
/**
- * return the currently displayed page
- * @return current page number
- */
- public int getCurrentPage() {
- return this.currentPageNr;
- }
-
- /**
* Stop the generation of any previous page, and draw the new one.
*
* @param page the PDFPage to draw.