From 53da6d9ba4fa9e60ecbc823600f88c5d57d860f2 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 27 Apr 2016 16:35:19 +0100 Subject: [PATCH] JAL-1366 JAL-2086 reinstate bolding of reference sequence --- src/jalview/appletgui/IdCanvas.java | 4 +++- src/jalview/gui/IdCanvas.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/jalview/appletgui/IdCanvas.java b/src/jalview/appletgui/IdCanvas.java index 16bba0b..d72e91f 100755 --- a/src/jalview/appletgui/IdCanvas.java +++ b/src/jalview/appletgui/IdCanvas.java @@ -138,11 +138,13 @@ public class IdCanvas extends Panel repaint(); } + @Override public void update(Graphics g) { paint(g); } + @Override public void paint(Graphics g) { if (getSize().height < 0 || getSize().width < 0) @@ -378,7 +380,7 @@ public class IdCanvas extends Panel Font bold = new Font(av.getFont().getName(), Font.BOLD, av.getFont() .getSize()); - if (av.isHiddenRepSequence(seq)) + if (av.isReferenceSeq(seq) || av.isHiddenRepSequence(seq)) { gg.setFont(bold); return true; diff --git a/src/jalview/gui/IdCanvas.java b/src/jalview/gui/IdCanvas.java index c89a9d5..37be8bc 100755 --- a/src/jalview/gui/IdCanvas.java +++ b/src/jalview/gui/IdCanvas.java @@ -204,6 +204,7 @@ public class IdCanvas extends JPanel * @param g * DOCUMENT ME! */ + @Override public void paintComponent(Graphics g) { g.setColor(Color.white); @@ -479,7 +480,7 @@ public class IdCanvas extends JPanel Font bold = new Font(av.getFont().getName(), Font.BOLD, av.getFont() .getSize()); - if (av.isHiddenRepSequence(seq)) + if (av.isReferenceSeq(seq) || av.isHiddenRepSequence(seq)) { gg.setFont(bold); } -- 1.7.10.2