Clover icon

Coverage Report

  1. Project Clover database Thu Nov 7 2024 10:11:34 GMT
  2. Package jalview.json.binding.biojson.v1

File AlignmentAnnotationPojo.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart9.png
12% of files have more coverage

Code metrics

0
16
16
1
150
102
16
1
1
16
1

Classes

Class Line # Actions
AlignmentAnnotationPojo 28 16 16
0.812581.2%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    /*
2    * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3    * Copyright (C) $$Year-Rel$$ The Jalview Authors
4    *
5    * This file is part of Jalview.
6    *
7    * Jalview is free software: you can redistribute it and/or
8    * modify it under the terms of the GNU General Public License
9    * as published by the Free Software Foundation, either version 3
10    * of the License, or (at your option) any later version.
11    *
12    * Jalview is distributed in the hope that it will be useful, but
13    * WITHOUT ANY WARRANTY; without even the implied warranty
14    * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15    * PURPOSE. See the GNU General Public License for more details.
16    *
17    * You should have received a copy of the GNU General Public License
18    * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19    * The Jalview Authors are detailed in the 'AUTHORS' file.
20    */
21    package jalview.json.binding.biojson.v1;
22   
23    import java.util.ArrayList;
24    import java.util.List;
25   
26    import com.github.reinert.jjschema.Attributes;
27   
 
28    public class AlignmentAnnotationPojo
29    {
30   
31    @Attributes(
32    required = false,
33    description = "Label for the alignment annotation")
34    private String label;
35   
36    @Attributes(
37    required = false,
38    description = "Description for the alignment annotation")
39    private String description;
40   
41    @Attributes(required = false)
42    private List<AnnotationPojo> annotations = new ArrayList<AnnotationPojo>();
43   
44    @Attributes(
45    required = false,
46    enums =
47    { "0", "1", "2" },
48    description = "Determines the rendering for the annotation<br><ul><li>0 - No graph</li><li>1 - Bar Graph</li><li>2 - Line graph</li></ul>")
49    private int graphType;
50   
51    @Attributes(
52    required = false,
53    description = "Reference to the sequence in the alignment<br> if per-sequence annotation")
54    private String sequenceRef;
55   
56    @Attributes(
57    required = false,
58    description = "Stores display settings for an annotation")
59    private AnnotationDisplaySettingPojo annotationSettings;
60   
61    @Attributes(required = false, description = "Score of the annotation")
62    private double score;
63   
64    @Attributes(
65    required = false,
66    description = "The annotation generation source")
67    private String calcId;
68   
 
69  5 toggle public String getLabel()
70    {
71  5 return label;
72    }
73   
 
74  5 toggle public void setLabel(String label)
75    {
76  5 this.label = label;
77    }
78   
 
79  5 toggle public String getDescription()
80    {
81  5 return description;
82    }
83   
 
84  5 toggle public void setDescription(String annotationId)
85    {
86  5 this.description = annotationId;
87    }
88   
 
89  180 toggle public List<AnnotationPojo> getAnnotations()
90    {
91  180 return annotations;
92    }
93   
 
94  0 toggle public void setAnnotations(List<AnnotationPojo> annotations)
95    {
96  0 this.annotations = annotations;
97    }
98   
 
99  5 toggle public String getSequenceRef()
100    {
101  5 return sequenceRef;
102    }
103   
 
104  0 toggle public void setSequenceRef(String sequenceRef)
105    {
106  0 this.sequenceRef = sequenceRef;
107    }
108   
 
109  5 toggle public int getGraphType()
110    {
111  5 return graphType;
112    }
113   
 
114  5 toggle public void setGraphType(int graphType)
115    {
116  5 this.graphType = graphType;
117    }
118   
 
119  5 toggle public AnnotationDisplaySettingPojo getAnnotationSettings()
120    {
121  5 return annotationSettings;
122    }
123   
 
124  5 toggle public void setAnnotationSettings(
125    AnnotationDisplaySettingPojo annotationSettings)
126    {
127  5 this.annotationSettings = annotationSettings;
128    }
129   
 
130  5 toggle public double getScore()
131    {
132  5 return score;
133    }
134   
 
135  0 toggle public void setScore(double score)
136    {
137  0 this.score = score;
138    }
139   
 
140  5 toggle public String getCalcId()
141    {
142  5 return calcId;
143    }
144   
 
145  5 toggle public void setCalcId(String calcId)
146    {
147  5 this.calcId = calcId;
148    }
149   
150    }