From 67f9ce94a4535ca980cf84a1f23ce90eae4ecac0 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 3 Oct 2005 16:14:54 +0000 Subject: [PATCH] Remove float width --- src/jalview/gui/SequenceRenderer.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/jalview/gui/SequenceRenderer.java b/src/jalview/gui/SequenceRenderer.java index 8e8b066..6bf4d40 100755 --- a/src/jalview/gui/SequenceRenderer.java +++ b/src/jalview/gui/SequenceRenderer.java @@ -116,10 +116,10 @@ public class SequenceRenderer graphics = g; - drawBoxes(seq, start, end, x1, y1, (int) width, height); + drawBoxes(seq, start, end, x1, y1, width, height); fm = g.getFontMetrics(); - drawText(seq, start, end, x1, y1, (int) width, height); + drawText(seq, start, end, x1, y1, width, height); } /** @@ -208,14 +208,6 @@ public class SequenceRenderer int charOffset = 0; char s; - float fwidth = width + ((float)av.charWidth/(float)width)/width; - - - if(av.charWidth != (av.charWidth/width)*width) - { - - } - // Need to find the sequence position here. String sequence = seq.getSequence(); @@ -270,7 +262,7 @@ public class SequenceRenderer charOffset = (width - fm.charWidth(s)) / 2; graphics.drawString(String.valueOf(s), - charOffset + x1 + (int)(fwidth * (i - start)), (y1 + height) - pady); + charOffset + x1 + (int)(width * (i - start)), (y1 + height) - pady); } } -- 1.7.10.2