ap,
new AlignmentAnnotation[]
{aa[selectedRow]},
- null
+ null, null
);
}
else if (evt.getActionCommand().equals(COPYCONS_SEQ))
getSelectedRow(evt.getY() - scrollOffset);
+
if (selectedRow > -1
&& ap.av.alignment.getAlignmentAnnotation().length > selectedRow)
{
- String desc = ap.av.alignment.
- getAlignmentAnnotation()[selectedRow].description;
+ AlignmentAnnotation aa = ap.av.alignment.
+ getAlignmentAnnotation()[selectedRow];
+
+ StringBuffer desc = new StringBuffer("<html>");
- if (desc != null && !desc.equals("New description"))
+ if (aa.description != null && !aa.description.equals("New description"))
{
- setToolTipText(ap.av.alignment.
- getAlignmentAnnotation()[selectedRow].description);
+ desc.append(aa.description+"<br>");
}
+ if(!Float.isNaN(aa.score))
+ {
+ desc.append("Score: "+aa.score);
+ }
+
+ if(desc.length()!=6)
+ {
+ desc.append("</html>");
+ this.setToolTipText(desc.toString());
+ }
+ else
+ this.setToolTipText(null);
}
}
}
else
{
+ if(aa[i].belowAlignment)
+ g.setColor(Color.ORANGE);
+ else
+ g.setColor(Color.red);
+
g.drawString(aa[i].label, x, y +offset);
+
}
}
}