- public void drawIdString(Graphics g,SequenceI ds,int i, int starty, int ypos) {\r
- int charHeight = av.getCharHeight();\r
-\r
- if (av.getSelection().contains(ds)) {\r
- gg.setColor(Color.gray);\r
- gg.fillRect(0,AlignmentUtil.getPixelHeight(starty,i,charHeight)+ ypos,getWidth(),charHeight);\r
- gg.setColor(Color.white);\r
- } else {\r
- gg.setColor(ds.getColor());\r
- gg.fillRect(0,AlignmentUtil.getPixelHeight(starty,i,charHeight)+ ypos,getWidth(),charHeight);\r
- gg.setColor(Color.black);\r
- }\r
+ /**\r
+ * DOCUMENT ME!\r
+ *\r
+ * @param gg DOCUMENT ME!\r
+ * @param s DOCUMENT ME!\r
+ * @param i DOCUMENT ME!\r
+ * @param starty DOCUMENT ME!\r
+ * @param ypos DOCUMENT ME!\r
+ */\r
+ public void drawIdString(Graphics2D gg, SequenceI s, int i, int starty,\r
+ int ypos)\r
+ {\r
+ int xPos = 0;\r
+ int panelWidth = getWidth();\r
+ int charHeight = av.charHeight;\r
+\r
+ if ( (searchResults != null) && searchResults.contains(s))\r
+ {\r
+ gg.setColor(Color.black);\r
+ gg.fillRect(0, ( (i - starty) * charHeight) + ypos, getWidth(),\r
+ charHeight);\r
+ gg.setColor(Color.white);\r
+ }\r
+ else if ( (av.getSelectionGroup() != null) &&\r
+ av.getSelectionGroup().getSequences(null).contains(s))\r
+ {\r
+ gg.setColor(Color.lightGray);\r
+ gg.fillRect(0, ( (i - starty) * charHeight) + ypos, getWidth(),\r
+ charHeight);\r
+ gg.setColor(Color.white);\r
+ }\r
+ else\r
+ {\r
+ gg.setColor(av.getSequenceColour(s));\r
+ gg.fillRect(0, ( (i - starty) * charHeight) + ypos, getWidth(),\r
+ charHeight);\r
+ gg.setColor(Color.black);\r
+ }\r