Merge branch 'releases/Release_2_11_3_Branch'
[jalview.git] / examples / groovy / colourSchemes.groovy
index 3f1f953..eb40cc6 100644 (file)
@@ -26,7 +26,7 @@ candy = { ->
     /*
      * to make a new instance for each alignment view
      */
-    getInstance: { AlignViewportI view, AnnotatedCollectionI coll, Map<SequenceI, SequenceCollectionI> map -> candy() },
+    getInstance: { view, coll -> candy() },
     
     /*
      * method only needed if colour scheme has to recalculate
@@ -86,7 +86,7 @@ byWeight = { ->
     // this colour scheme is peptide-specific:
     isApplicableTo: { coll -> !coll.isNucleotide() },
     alignmentChanged: { coll, map -> },
-    getInstance: { coll, map -> byWeight() },
+    getInstance: { view, coll -> byWeight() },
     isSimple: { true },
     findColour: {res, col, seq, consensus, pid -> 
         switch (res) {