From: jprocter Date: Mon, 30 Apr 2007 13:24:07 +0000 (+0000) Subject: convenient creation of 'score only' annotation. X-Git-Tag: Release_2_3~109 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=908ebb43785033af3ed12d5214c3ac3fbba6e932;p=jalview.git convenient creation of 'score only' annotation. --- diff --git a/src/jalview/datamodel/AlignmentAnnotation.java b/src/jalview/datamodel/AlignmentAnnotation.java index bd50cd7..d3d36d2 100755 --- a/src/jalview/datamodel/AlignmentAnnotation.java +++ b/src/jalview/datamodel/AlignmentAnnotation.java @@ -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); + } }