X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjson%2Fbinding%2Fbiojson%2Fv1%2FAnnotationPojo.java;h=f01dd5215308bff1824cd76462d4a9428adc2e7f;hb=3d0101179759ef157b088ea135423cd909512d9f;hp=9b693fa3f0559a6d6cffa953538d2d3579398f99;hpb=4d7f98a6dd54d9863ba449ec79dcd95d25ed863d;p=jalview.git diff --git a/src/jalview/json/binding/biojson/v1/AnnotationPojo.java b/src/jalview/json/binding/biojson/v1/AnnotationPojo.java index 9b693fa..f01dd52 100644 --- a/src/jalview/json/binding/biojson/v1/AnnotationPojo.java +++ b/src/jalview/json/binding/biojson/v1/AnnotationPojo.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.json.binding.biojson.v1; import com.github.reinert.jjschema.Attributes; @@ -16,13 +36,19 @@ public class AnnotationPojo @Attributes( required = true, - enums = { "E", "H", "\u0000", ")", "(" }, + enums = + { "E", "H", "\u0000", ")", "(" }, description = "Determines what is rendered for the secondary
structure
For RNA Helix (only shown when working with
nucleotide sequences): ") private char secondaryStructure; @Attributes(required = false, description = "Value of the annotation") private float value; + @Attributes( + required = false, + description = "Colour of the annotation position in hex string.") + private String colour; + public String getDisplayCharacter() { return displayCharacter; @@ -63,4 +89,14 @@ public class AnnotationPojo this.value = value; } + public String getColour() + { + return colour; + } + + public void setColour(String colour) + { + this.colour = colour; + } + }