+ int y = e.getY();\r
+\r
+ if (av.getWrapAlignment())\r
+ {\r
+ y = getWrappedY(y);\r
+ }\r
+\r
+ int seq = av.getIndex(y);\r
+ if(seq!=-1)\r
+ {\r
+ StringBuffer tip = new StringBuffer("<html>");\r
+ tip.append(av.alignment.getSequenceAt(seq).getDisplayId(true));\r
+ if (av.alignment.getSequenceAt(seq).getDescription() != null)\r
+ {\r
+ tip.append("<table width=250 border=0><tr><td><i>");\r
+ tip.append(av.alignment.getSequenceAt(seq).getDescription());\r
+ tip.append("</i></td></tr></table>");\r
+ }\r
+ tip.append("</html>");\r
+ setToolTipText(tip.toString());\r
+ }\r
+\r
+ }\r
+\r
+ int getWrappedY(int y)\r
+ {\r
+ int hgap = av.charHeight;\r
+ if (av.scaleAboveWrapped)\r
+ hgap += av.charHeight;\r
+\r
+ return y - hgap;\r