toString method added
authoramwaterhouse <Andrew Waterhouse>
Wed, 25 May 2005 16:34:04 +0000 (16:34 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 25 May 2005 16:34:04 +0000 (16:34 +0000)
src/jalview/datamodel/AlignmentAnnotation.java

index 8635505..8326c3a 100755 (executable)
@@ -53,8 +53,6 @@ public class AlignmentAnnotation
         if(annotations[i].value<min)\r
           min = annotations[i].value;\r
       }\r
-\r
-\r
     }\r
 \r
     graphMin = min;\r
@@ -70,8 +68,17 @@ public class AlignmentAnnotation
       if (annotations[i]!=null && annotations[i].displayCharacter.length()>0)\r
         hasText = true;\r
     }\r
+  }\r
 \r
-\r
+  public String toString()\r
+  {\r
+    StringBuffer buffer = new StringBuffer();\r
+    for(int i=0; i<annotations.length; i++)\r
+   {\r
+     buffer.append( annotations[i].value );\r
+     buffer.append(", ");\r
+   }\r
+   return buffer.toString();\r
   }\r
 \r
 }\r