From 3cdfc5e46776dbb8127f0a5b64df3545b988e3d9 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 22 Mar 2019 14:38:08 +0000 Subject: [PATCH] JAL-1889 more debug logging --- src/jalview/gui/SeqCanvas.java | 3 +++ src/jalview/gui/SeqPanel.java | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index b3fcc54..795faff 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -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; } diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 11ee700..6bc1ad8 100644 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -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) { -- 1.7.10.2