From: amwaterhouse Date: Mon, 3 Oct 2005 16:14:54 +0000 (+0000) Subject: Remove float width X-Git-Tag: Release_2_07~67 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=67f9ce94a4535ca980cf84a1f23ce90eae4ecac0;hp=cc8bc2c02bcb23dfb2fe8f4a45ea15bf756ceaa2;p=jalview.git Remove float width --- 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); } }