X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=examples%2Fgroovy%2FcolourSchemes.groovy;h=eb40cc627dd9cb8b29277127b3ef47382a38dcee;hb=HEAD;hp=3f1f953ed50221898c677914114cf24514595f5c;hpb=1d0f5219658cdf6ad5e1a1cbe6e1bb8cd12e6d85;p=jalview.git diff --git a/examples/groovy/colourSchemes.groovy b/examples/groovy/colourSchemes.groovy index 3f1f953..eb40cc6 100644 --- a/examples/groovy/colourSchemes.groovy +++ b/examples/groovy/colourSchemes.groovy @@ -26,7 +26,7 @@ candy = { -> /* * to make a new instance for each alignment view */ - getInstance: { AlignViewportI view, AnnotatedCollectionI coll, Map 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) {