git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a18ba9
)
JAL-247 comment to clarify wrapped print algorithm
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 27 Aug 2018 09:19:28 +0000
(10:19 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Tue, 28 Aug 2018 15:23:16 +0000
(16:23 +0100)
src/jalview/gui/AlignmentPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AlignmentPanel.java
b/src/jalview/gui/AlignmentPanel.java
index
9cf01fa
..
c46a2ab
100644
(file)
--- a/
src/jalview/gui/AlignmentPanel.java
+++ b/
src/jalview/gui/AlignmentPanel.java
@@
-1124,6
+1124,12
@@
public class AlignmentPanel extends GAlignmentPanel implements
g.setFont(av.getFont());
g.setColor(Color.black);
+ /*
+ * method: print the whole wrapped alignment, but with a clip region that
+ * is restricted to the requested page; this supports selective print of
+ * single pages or ranges, (at the cost of some repeated processing in
+ * the 'normal' case, when all pages are printed)
+ */
g.translate(0, -pageNumber * pageHeight);
g.setClip(0, pageNumber * pageHeight, pageWidth, pageHeight);