JAL-4375 JAL-4381 Removal of AnnotationColouring and associated code
[jalview.git] / src / jalview / datamodel / annotations / AlphaFoldAnnotationRowBuilder.java
index d805a21..4e9553e 100644 (file)
@@ -2,6 +2,7 @@ package jalview.datamodel.annotations;
 
 import jalview.datamodel.Annotation;
 import jalview.structure.StructureImportSettings;
+import jalview.structure.StructureImportSettings.TFType;
 
 public class AlphaFoldAnnotationRowBuilder extends AnnotationRowBuilder
 {
@@ -19,9 +20,24 @@ public class AlphaFoldAnnotationRowBuilder extends AnnotationRowBuilder
   @Override
   public void processAnnotation(Annotation annotation)
   {
-    AnnotationColouringI ac = new AnnotationColouringPLDDT();
-    annotation.setAnnotationColouring(ac);
-    annotation.colour = ac.valueToColour(annotation.value);
+    if (annotation.value > 90)
+    {
+      // Very High
+      annotation.colour = new java.awt.Color(0, 83, 214);
+    }
+    if (annotation.value <= 90)
+    {
+      // High
+      annotation.colour = new java.awt.Color(101, 203, 243);
+    }
+    if (annotation.value <= 70)
+    {
+      // Confident
+      annotation.colour = new java.awt.Color(255, 219, 19);
+    }
+    if (annotation.value < 50)
+    {
+      annotation.colour = new java.awt.Color(255, 125, 69);
+    }
   }
-
 }
\ No newline at end of file