int charOffset=0;\r
char s;\r
// Need to find the sequence position here.\r
+\r
+ graphics.setColor(Color.black);\r
+ String sequence = seq.getSequence();\r
for (int i = start; i <= end; i++)\r
{\r
- if(i<seq.getLength())\r
- s = seq.getSequence().charAt(i);\r
+ if(i<sequence.length())\r
+ s = sequence.charAt(i);\r
else\r
s = ' ';\r
\r
if(!renderGaps && jalview.util.Comparison.isGap(s))\r
continue;\r
\r
- graphics.setColor(Color.black);\r
\r
if (inCurrentSequenceGroup(i))\r
{\r
}\r
}\r
\r
- charOffset = (width - fm.charWidth(s))/2;\r
- graphics.drawString(String.valueOf(s), charOffset + x1 + width * (i - start), y1 + height - pady);\r
- }\r
+ charOffset = (width - fm.charWidth(s))/2;\r
+ graphics.drawString(String.valueOf(s),\r
+ charOffset + x1 + width * (i - start),\r
+ y1 + height - pady);\r
+ }\r
\r
\r
}\r
if(i<seq.getLength())\r
s = seq.getSequence().charAt(i);\r
\r
- charOffset = (width - fm.charWidth(s))/2;\r
+ charOffset = (width - fm.charWidth(s))/2;\r
graphics.drawString(String.valueOf(s), charOffset + x1 + width * (i - start), y1 + height - pady);\r
}\r
}\r