import jalview.datamodel.AnnotatedCollectionI;
import jalview.datamodel.SequenceI;
import jalview.datamodel.SequenceCollectionI;
+import jalview.api.AlignViewportI
/*
* Example script that registers two new alignment colour schemes
/*
* to make a new instance for each alignment view
*/
- getInstance: { AnnotatedCollectionI coll, Map<SequenceI, SequenceCollectionI> map -> candy() },
+ getInstance: { view, coll -> candy() },
/*
* method only needed if colour scheme has to recalculate
// 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) {