JAL-1889 more debug logging
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 22 Mar 2019 14:38:08 +0000 (14:38 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 22 Mar 2019 14:38:08 +0000 (14:38 +0000)
src/jalview/gui/SeqCanvas.java
src/jalview/gui/SeqPanel.java

index b3fcc54..795faff 100755 (executable)
@@ -500,6 +500,9 @@ public class SeqCanvas extends JComponent implements ViewportListenerI
 
     labelWidthWest = av.getScaleLeftWrapped() ? labelWidth : 0;
 
+    System.out.println(Thread.currentThread().getName()
+            + " " + System.currentTimeMillis() + " labelWidthWest: "
+            + labelWidthWest);
     return (canvasWidth - labelWidthEast - labelWidthWest) / charWidth;
   }
 
index 11ee700..6bc1ad8 100644 (file)
@@ -371,8 +371,10 @@ public class SeqPanel extends JPanel
       if (debug != null)
       {
         System.out.println(
-                String.format("%s: x %d labelWest %d charWidth %d ", debug,
-                x, seqCanvas.getLabelWidthWest(), charWidth));
+                String.format("%s: %s %d x %d labelWest %d charWidth %d ",
+                        debug, Thread.currentThread().getName(),
+                        System.currentTimeMillis(), x,
+                        seqCanvas.getLabelWidthWest(), charWidth));
       }
       if (x < 0)
       {