X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjson%2Fbinding%2Fbiojson%2Fv1%2FAlignmentAnnotationPojo.java;h=673b09db26f639a7b3b45384f0fa1c2937d563e7;hb=3587df3dbcbd892eedd41a42d9f4e02a8b1e96ce;hp=ab350eb72c8d14be119e6d41fb8accb233408fe4;hpb=17e77c3f2949a0729322b4a8d907f3f34b6a9914;p=jalview.git diff --git a/src/jalview/json/binding/biojson/v1/AlignmentAnnotationPojo.java b/src/jalview/json/binding/biojson/v1/AlignmentAnnotationPojo.java index ab350eb..673b09d 100644 --- a/src/jalview/json/binding/biojson/v1/AlignmentAnnotationPojo.java +++ b/src/jalview/json/binding/biojson/v1/AlignmentAnnotationPojo.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -30,17 +30,42 @@ public class AlignmentAnnotationPojo @Attributes( required = false, - description = "Label for the Alignment Annotation") + description = "Label for the alignment annotation") private String label; @Attributes( required = false, - description = "Description for the Alignment Annotation") + description = "Description for the alignment annotation") private String description; @Attributes(required = false) private List annotations = new ArrayList(); + @Attributes( + required = false, + enums = + { "0", "1", "2" }, + description = "Determines the rendering for the annotation
") + private int graphType; + + @Attributes( + required = false, + description = "Reference to the sequence in the alignment
if per-sequence annotation") + private String sequenceRef; + + @Attributes( + required = false, + description = "Stores display settings for an annotation") + private AnnotationDisplaySettingPojo annotationSettings; + + @Attributes(required = false, description = "Score of the annotation") + private double score; + + @Attributes( + required = false, + description = "The annotation generation source") + private String calcId; + public String getLabel() { return label; @@ -71,4 +96,55 @@ public class AlignmentAnnotationPojo this.annotations = annotations; } + public String getSequenceRef() + { + return sequenceRef; + } + + public void setSequenceRef(String sequenceRef) + { + this.sequenceRef = sequenceRef; + } + + public int getGraphType() + { + return graphType; + } + + public void setGraphType(int graphType) + { + this.graphType = graphType; + } + + public AnnotationDisplaySettingPojo getAnnotationSettings() + { + return annotationSettings; + } + + public void setAnnotationSettings( + AnnotationDisplaySettingPojo annotationSettings) + { + this.annotationSettings = annotationSettings; + } + + public double getScore() + { + return score; + } + + public void setScore(double score) + { + this.score = score; + } + + public String getCalcId() + { + return calcId; + } + + public void setCalcId(String calcId) + { + this.calcId = calcId; + } + }