StringBuffer buffer = new StringBuffer();\r
for(int i=0; i<annotations.length; i++)\r
{\r
- buffer.append( annotations[i].value );\r
+ if(annotations[i]!=null)\r
+ {\r
+ if(isGraph)\r
+ buffer.append(annotations[i].value);\r
+ else if(hasIcons)\r
+ buffer.append(annotations[i].secondaryStructure);\r
+ else\r
+ buffer.append(annotations[i].displayCharacter);\r
+\r
+ }\r
buffer.append(", ");\r
}\r
+ if(label.equals("Consensus"))\r
+ {\r
+ buffer.append("\n");\r
+ for (int i = 0; i < annotations.length; i++)\r
+ {\r
+ if (annotations[i] != null)\r
+ buffer.append(annotations[i].description);\r
+ buffer.append(", ");\r
+ }\r
+ }\r
return buffer.toString();\r
}\r
\r