}\r
}\r
\r
- if(!drawValues)\r
- {\r
- for (int i = 0; i < annotations.length; i++)\r
- {\r
- if (annotations[i] != null)\r
- annotations[i].displayCharacter = "";\r
- }\r
- }\r
-\r
graphMin = min;\r
graphMax = max;\r
\r
for (int i = 0; i < annotations.length; i++)\r
{\r
- if ((annotations[i] != null) &&\r
- ((annotations[i].secondaryStructure == 'H') ||\r
+ if (!hasIcons\r
+ && annotations[i] != null\r
+ && ((annotations[i].secondaryStructure == 'H') ||\r
(annotations[i].secondaryStructure == 'E')))\r
{\r
hasIcons = true;\r
}\r
\r
- if ((annotations[i] != null) &&\r
- (annotations[i].displayCharacter.length() > 0))\r
+ if (!hasText\r
+ && annotations[i]!=null\r
+ && annotations[i].displayCharacter.length() > 0)\r
{\r
hasText = true;\r
}\r
}\r
+\r
+ if(!drawValues && graphType!=NO_GRAPH)\r
+ {\r
+ for (int i = 0; i < annotations.length; i++)\r
+ {\r
+ if (annotations[i] != null)\r
+ annotations[i].displayCharacter = "";\r
+ }\r
+ }\r
}\r
\r
/**\r
{\r
int a=0, aSize = sequenceRef.getLength();\r
\r
+ if(aSize == 0)\r
+ {\r
+ //Its been deleted\r
+ return;\r
+ }\r
+\r
int position;\r
Annotation[] temp = new Annotation[aSize];\r
Integer index;\r
+\r
for (a = sequenceRef.getStart(); a <= sequenceRef.getEnd(); a++)\r
{\r
index = new Integer(a);\r