\r
String string = ds.getName() + "/" + ds.getStart() + "-" + ds.getEnd();\r
\r
- gg.drawString(string,0,AlignmentUtil.getPixelHeight(starty,i,charHeight) + ypos + charHeight/2);\r
+ gg.drawString(string,0,AlignmentUtil.getPixelHeight(starty,i,charHeight) + ypos + charHeight- (charHeight/5));\r
\r
}\r
\r
public void paintComponent(Graphics g) {\r
AlignmentI da = av.getAlignment();\r
- int charWidth = (int)av.getCharWidth();\r
int charHeight = av.getCharHeight();\r
Font f = av.getFont();\r
\r
\r
\r
\r
- if (av.getWrapAlignment()) {\r
+ if (av.getWrapAlignment())\r
+ {\r
starty = starty%av.getChunkHeight();\r
\r
int ypos = 0;\r
int rowstart = starty;\r
\r
- if (starty == 0) {\r
+ if (starty == 0)\r
ypos = 2*charHeight;\r
- } else if (starty == 1) {\r
+ else if (starty == 1)\r
+ {\r
starty = 0;\r
ypos = charHeight;\r
}\r
\r
for (int i = starty; i < endy; i++) {\r
SequenceI s = da.getSequenceAt(i);\r
- drawIdString(gg,s,i,starty,ypos);\r
+ drawIdString(gg,s,i,starty,ypos);\r
}\r
\r
ypos += av.getChunkHeight();\r
{\r
\r
// Selected sequence colours\r
-\r
- if (av.getSelection().contains(da.getSequenceAt(i))) {\r
- if (currentColor != Color.gray) {\r
+ if (av.getSelection().contains(da.getSequenceAt(i)))\r
+ {\r
currentColor = Color.gray;\r
currentTextColor = Color.black;\r
- }\r
}\r
- else if (da.getSequenceAt(i).getColor() != null)\r
+ else\r
{\r
currentColor = da.getSequenceAt(i).getColor();\r
currentTextColor = Color.black;\r
\r
gg.setColor(currentColor);\r
\r
- if (currentColor != Color.BLACK)\r
- {\r
- gg.fillRect(0,\r
+\r
+\r
+ gg.fillRect(0,\r
AlignmentUtil.getPixelHeight(starty,i,charHeight),\r
getWidth(),\r
charHeight);\r
- }\r
\r
gg.setColor(currentTextColor);\r
\r