From 908ebb43785033af3ed12d5214c3ac3fbba6e932 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 30 Apr 2007 13:24:07 +0000 Subject: [PATCH] convenient creation of 'score only' annotation. --- src/jalview/datamodel/AlignmentAnnotation.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); + } } -- 1.7.10.2