a0befe09274483c22a67a7838b680fcc71a5a556
[jalview.git] / src / jalview / datamodel / annotations / AlphaFoldAnnotationRowBuilder.java
1 package jalview.datamodel.annotations;
2
3 import jalview.datamodel.Annotation;
4
5 public class AlphaFoldAnnotationRowBuilder extends AnnotationRowBuilder
6 {
7   public AlphaFoldAnnotationRowBuilder()
8   {
9     super("Alphafold Reliability");
10     min = 0;
11     max = 100;
12     hasMinMax = true;
13   }
14
15   @Override
16   public void processAnnotation(Annotation annotation)
17   {
18     if (annotation.value > 90)
19     {
20       // Very High
21       annotation.colour = new java.awt.Color(0, 83, 214);
22     }
23     if (annotation.value <= 90)
24     {
25       // High
26       annotation.colour = new java.awt.Color(101, 203, 243);
27     }
28     if (annotation.value <= 70)
29     {
30       // Confident
31       annotation.colour = new java.awt.Color(255, 219, 19);
32     }
33     if (annotation.value < 50)
34     {
35       annotation.colour = new java.awt.Color(255, 125, 69);
36     }
37   }
38 }