- if ((annotations[i] != null) &&
- ((annotations[i].secondaryStructure == 'H') ||
- (annotations[i].secondaryStructure == 'E')))
- {
- hasIcons = true;
- }
+ hasIcons = true;
+ }
+
+ if (annotations[i].secondaryStructure != 'H'
+ && annotations[i].secondaryStructure != 'E')
+ {
+ nonSSLabel = true;
+ }
+
+ if (annotations[i].displayCharacter.length() > 0)
+ {
+ hasText = true;
+ }
+ }
+
+ if(nonSSLabel)
+ {
+ hasIcons = false;
+ for (int j = 0; j < annotations.length; j++)
+ {
+ if(annotations[j] !=null && annotations[j].secondaryStructure!=' ')
+ {
+ annotations[j].displayCharacter
+ =String.valueOf(annotations[j].secondaryStructure);
+ annotations[j].secondaryStructure = ' ';
+ if(annotations[j].description.length()<1)
+ annotations[j].description = annotations[j].displayCharacter;
+ }