+ if (sequence.getDescription() != null)
+ {
+ tooltiptext.append(sequence.getDescription());
+ tooltiptext.append("\n");
+ }
+
+ SequenceFeature sf[] = sequence.getSequenceFeatures();
+ for (int sl = 0; sf != null && sl < sf.length; sl++)
+ {
+ if (sf[sl].begin == sf[sl].end && sf[sl].begin == 0)
+ {
+ boolean nl = false;
+ if (sf[sl].getFeatureGroup() != null)
+ {
+ tooltiptext.append(sf[sl].getFeatureGroup());
+ nl = true;
+ }
+ ;
+ if (sf[sl].getType() != null)
+ {
+ tooltiptext.append(" ");
+ tooltiptext.append(sf[sl].getType());
+ nl = true;
+ }
+ ;
+ if (sf[sl].getDescription() != null)
+ {
+ tooltiptext.append(" ");
+ tooltiptext.append(sf[sl].getDescription());
+ nl = true;
+ }
+ ;
+ if (sf[sl].getScore() != Float.NaN && sf[sl].getScore() != 0f)
+ {
+ tooltiptext.append(" Score = ");
+ tooltiptext.append(sf[sl].getScore());
+ nl = true;
+ }
+ ;
+ if (sf[sl].getStatus() != null && sf[sl].getStatus().length() > 0)
+ {
+ tooltiptext.append(" (");
+ tooltiptext.append(sf[sl].getStatus());
+ tooltiptext.append(")");
+ nl = true;
+ }
+ ;
+ if (nl)
+ {
+ tooltiptext.append("\n");
+ }
+ }
+ }
+ }
+ if (tooltiptext.length() == 0)
+ {
+ // nothing to display - so clear tooltip if one is visible