JAL-3437 Desktop File...Load Project fails in JalviewJS
[jalview.git] / src / jalview / schemes / AnnotationColourGradient.java
index 54eaeb0..5461ec0 100755 (executable)
@@ -20,6 +20,7 @@
  */
 package jalview.schemes;
 
+import jalview.api.AlignViewportI;
 import jalview.datamodel.AlignmentAnnotation;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.AnnotatedCollectionI;
@@ -76,8 +77,8 @@ public class AnnotationColourGradient extends FollowerColourScheme
   private IdentityHashMap<SequenceI, AlignmentAnnotation> seqannot = null;
 
   @Override
-  public ColourSchemeI getInstance(AnnotatedCollectionI sg,
-          Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+  public ColourSchemeI getInstance(AlignViewportI view,
+          AnnotatedCollectionI sg)
   {
     AnnotationColourGradient acg = new AnnotationColourGradient(annotation,
             getColourScheme(), aboveAnnotationThreshold);
@@ -166,8 +167,8 @@ public class AnnotationColourGradient extends FollowerColourScheme
     if (annotation.isRNA())
     {
       // reset colour palette
-      ColourSchemeProperty.resetRnaHelicesShading();
-      ColourSchemeProperty.initRnaHelicesShading(1 + (int) aamax);
+      ColourSchemes.resetRnaHelicesShading();
+      ColourSchemes.initRnaHelicesShading(1 + (int) aamax);
     }
   }
 
@@ -217,7 +218,7 @@ public class AnnotationColourGradient extends FollowerColourScheme
       }
       if (rna)
       {
-        ColourSchemeProperty.initRnaHelicesShading(1 + (int) aamax);
+        ColourSchemes.initRnaHelicesShading(1 + (int) aamax);
       }
     }
   }
@@ -354,7 +355,7 @@ public class AnnotationColourGradient extends FollowerColourScheme
         {
           if (ann.isRNA())
           {
-            result = ColourSchemeProperty.rnaHelices[(int) aj.value];
+            result = ColourSchemes.getInstance().rnaHelices[(int) aj.value];
           }
           else
           {