convenient creation of 'score only' annotation.
authorjprocter <Jim Procter>
Mon, 30 Apr 2007 13:24:07 +0000 (13:24 +0000)
committerjprocter <Jim Procter>
Mon, 30 Apr 2007 13:24:07 +0000 (13:24 +0000)
src/jalview/datamodel/AlignmentAnnotation.java

index bd50cd7..d3d36d2 100755 (executable)
@@ -639,4 +639,15 @@ Loading...
   {
     return hasScore || !Double.isNaN(score);
   }
+  /**
+   * Score only annotation
+   * @param label
+   * @param description
+   * @param score
+   */
+  public AlignmentAnnotation(String label, String description, double score)
+  {
+    this(label, description, null);
+    setScore(score);
+  }
 }