+ private String getPhyreToolTipFromDynamicData(
+ List<DynamicData> dynamicDataList)
+ {
+ StringBuilder phyre2InfoBuilder = new StringBuilder();
+ phyre2InfoBuilder
+ .append("<html><table border=\"1\" width=100%>")
+ .append("<tr><td colspan=\"2\"><strong>Phyre2 Template Info</strong></td></tr>");
+ for (DynamicData data : dynamicDataList)
+ {
+ if (data.isDisplay())
+ {
+ phyre2InfoBuilder.append("<tr><td>").append(data.getFieldTitle())
+ .append("</td><td>").append(data.getFieldValue())
+ .append("</td></tr>");
+ }
+ }
+ phyre2InfoBuilder.append("</table></html>");
+ return phyre2InfoBuilder.toString();
+ }
+
+ public void createTooltipAnnotationReport(final StringBuilder tip,
+ SequenceI sequence, boolean showDbRefs, boolean showNpFeats,
+ Map<String, float[][]> minmax)
+ {
+ int maxWidth = createSequenceAnnotationReport(tip, sequence,
+ showDbRefs, showNpFeats, minmax, true);
+
+ if (maxWidth > 60)
+ {
+ // ? not sure this serves any useful purpose
+ // tip.insert(0, "<table width=350 border=0><tr><td>");
+ // tip.append("</td></tr></table>");
+ }