AnnotationId is hashcode of object
authoramwaterhouse <Andrew Waterhouse>
Fri, 26 Jan 2007 17:31:51 +0000 (17:31 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 26 Jan 2007 17:31:51 +0000 (17:31 +0000)
src/jalview/datamodel/AlignmentAnnotation.java

index 6803e9f..6dcf23b 100755 (executable)
@@ -31,7 +31,7 @@ public class AlignmentAnnotation
    * eg consensus, quality or conservation graphs */
   public boolean autoCalculated = false;
 
-  public String annotationId = Math.random() +"";
+  public String annotationId;
 
     public SequenceI sequenceRef;
 
@@ -160,6 +160,7 @@ public class AlignmentAnnotation
 
       }
 
+      annotationId  = this.hashCode()+"";
     }
 
     /**
@@ -293,9 +294,11 @@ public class AlignmentAnnotation
                                         int startRes,
                                         boolean alreadyMapped)
       {
+
         if(seqRef == null)
           return;
 
+
         sequenceMapping = new java.util.Hashtable();
 
         sequenceRef = seqRef;
@@ -314,7 +317,6 @@ public class AlignmentAnnotation
             }
          }
 
-        adjustForAlignment();
       }
 
       public void adjustForAlignment()