JAL-3675 release notes for JAL-3750 JAL-3751
[jalview.git] / src / jalview / schemes / TCoffeeColourScheme.java
index 6f55204..db85cc8 100644 (file)
@@ -20,6 +20,7 @@
  */
 package jalview.schemes;
 
+import jalview.api.AlignViewportI;
 import jalview.datamodel.AlignmentAnnotation;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.AnnotatedCollectionI;
@@ -83,11 +84,12 @@ public class TCoffeeColourScheme extends ResidueColourScheme
 
     // assume only one set of TCOFFEE scores - but could have more than one
     // potentially.
-    List<AlignmentAnnotation> annots = new ArrayList<AlignmentAnnotation>();
+    List<AlignmentAnnotation> annots = new ArrayList<>();
     // Search alignment to get all tcoffee annotation and pick one set of
     // annotation to use to colour seqs.
-    seqMap = new IdentityHashMap<SequenceI, Color[]>();
-    AnnotatedCollectionI alcontext = alignment instanceof AlignmentI ? alignment
+    seqMap = new IdentityHashMap<>();
+    AnnotatedCollectionI alcontext = alignment instanceof AlignmentI
+            ? alignment
             : alignment.getContext();
     if (alcontext == null)
     {
@@ -142,8 +144,8 @@ public class TCoffeeColourScheme extends ResidueColourScheme
   }
 
   @Override
-  public ColourSchemeI getInstance(AnnotatedCollectionI sg,
-          Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+  public ColourSchemeI getInstance(AlignViewportI view,
+          AnnotatedCollectionI sg)
   {
     return new TCoffeeColourScheme(sg);
   }
@@ -154,8 +156,8 @@ public class TCoffeeColourScheme extends ResidueColourScheme
   @Override
   public boolean isApplicableTo(AnnotatedCollectionI ac)
   {
-    AnnotatedCollectionI alcontext = ac instanceof AlignmentI ? ac : ac
-            .getContext();
+    AnnotatedCollectionI alcontext = ac instanceof AlignmentI ? ac
+            : ac.getContext();
     if (alcontext == null)
     {
       return false;
@@ -170,4 +172,10 @@ public class TCoffeeColourScheme extends ResidueColourScheme
   {
     return JalviewColourScheme.TCoffee.toString();
   }
+
+  @Override
+  public boolean isSimple()
+  {
+    return false;
+  }
 }