From: amwaterhouse Date: Fri, 28 Apr 2006 13:26:22 +0000 (+0000) Subject: Annoying little line at end of wrapped alignment X-Git-Tag: Release_2_08_1~26 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8dea1b9fa230ed6570f38a756b38c21af0e874c2;p=jalview.git Annoying little line at end of wrapped alignment --- diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 3b0127d..232a60c 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -636,13 +636,14 @@ public class AnnotationPanel extends JPanel implements MouseListener, */ public void drawComponent(Graphics g, int startRes, int endRes) { - validCharWidth = fm.charWidth('M') <= av.charWidth; + g.setFont(av.getFont()); if (fm == null) fm = g.getFontMetrics(); + validCharWidth = fm.charWidth('M') <= av.charWidth; g.setColor(Color.white); g.fillRect(0, 0, (endRes - startRes) * av.charWidth, getHeight()); @@ -902,8 +903,9 @@ public class AnnotationPanel extends JPanel implements MouseListener, default: - g.setColor(Color.gray); - g.fillRect(lastSSX, y + 6 + iconOffset, x - lastSSX, 2); + g.setColor(Color.ORANGE); + if(!av.wrapAlignment || endRes==av.endRes) + g.fillRect(lastSSX, y + 6 + iconOffset, x - lastSSX, 2); break; }