viewport.getAlignment().addGroup(gps[g]);
if (colours != null)
{
- gps[g].setColourScheme(colours.getInstance(viewport, gps[g],
- viewport.getHiddenRepSequences()));
+ gps[g].setColourScheme(colours.getInstance(viewport, gps[g]));
}
Color col = new Color((int) (Math.random() * 255),
(int) (Math.random() * 255), (int) (Math.random() * 255));
continue;
}
sg.setColourScheme(
- acg.getInstance(av, sg, ap.av.getHiddenRepSequences()));
+ acg.getInstance(av, sg));
}
}
}
// Propagate group colours in each view
if (viewport.getGlobalColourScheme() != null)
{
- cs = viewport.getGlobalColourScheme().getInstance(viewport, sg,
- null);
+ cs = viewport.getGlobalColourScheme().getInstance(viewport, sg);
sg.setColourScheme(cs);
sg.getGroupColourScheme().setThreshold(
viewport.getResidueShading().getThreshold(),
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI sg,
- Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+ AnnotatedCollectionI sg)
{
AnnotationColourGradient acg = new AnnotationColourGradient(annotation,
getColourScheme(), aboveAnnotationThreshold);
import jalview.api.AlignViewportI;
import jalview.api.analysis.PairwiseScoreModelI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
import jalview.datamodel.SequenceI;
import jalview.util.Comparison;
import java.awt.Color;
-import java.util.Map;
public class Blosum62ColourScheme extends ResidueColourScheme
{
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new Blosum62ColourScheme();
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
import java.awt.Color;
-import java.util.Map;
/**
* DOCUMENT ME!
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new BuriedColourScheme();
}
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI sg,
- Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+ AnnotatedCollectionI sg)
{
ClustalxColourScheme css = new ClustalxColourScheme(sg,
- hiddenRepSequences);
+ view.getHiddenRepSequences());
css.includeGaps = includeGaps;
return css;
}
* - the parent viewport
* @param sg
* - the collection of sequences to be coloured
- * @param hiddenRepSequences
* @return copy of current scheme with any inherited settings transferred
*/
ColourSchemeI getInstance(AlignViewportI viewport,
- AnnotatedCollectionI sg,
- Map<SequenceI, SequenceCollectionI> hiddenRepSequences);
+ AnnotatedCollectionI sg);
/**
* Answers true if the colour scheme is suitable for the given data, else
}
ColourSchemeI cs = schemes.get(name.toLowerCase());
return cs == null ? null
- : cs.getInstance(viewport, forData, hiddenRepSequences);
+ : cs.getInstance(viewport, forData);
}
/**
import jalview.api.AlignViewportI;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
import jalview.util.ColorUtils;
import java.awt.Color;
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new CovariationColourScheme(coll.getAlignmentAnnotation()[0]);
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
-
-import java.util.Map;
/**
* Colourscheme that takes its colours from some other colourscheme
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new FollowerColourScheme();
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
import java.awt.Color;
-import java.util.Map;
public class HelixColourScheme extends ScoreColourScheme
{
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new HelixColourScheme();
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
import java.awt.Color;
-import java.util.Map;
/**
* DOCUMENT ME!
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new HydrophobicColourScheme();
}
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new IdColourScheme(view, coll);
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
-
-import java.util.Map;
/**
* DOCUMENT ME!
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new NucleotideColourScheme();
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
import jalview.util.Comparison;
import java.awt.Color;
-import java.util.Map;
public class PIDColourScheme extends ResidueColourScheme
{
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new PIDColourScheme();
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
-
-import java.util.Map;
/**
* Class is based off of NucleotideColourScheme
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new PurinePyrimidineColourScheme();
}
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI sg,
- Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+ AnnotatedCollectionI sg)
{
return new RNAHelicesColour(sg);
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
import jalview.datamodel.SequenceI;
import java.awt.Color;
-import java.util.Map;
public class RNAInteractionColourScheme extends ResidueColourScheme
{
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new RNAInteractionColourScheme();
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
import jalview.datamodel.SequenceI;
import jalview.util.Comparison;
import java.awt.Color;
-import java.util.Map;
/**
* DOCUMENT ME!
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new ScoreColourScheme(symbolIndex, scores, min, max);
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
import java.awt.Color;
-import java.util.Map;
/**
* DOCUMENT ME!
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new StrandColourScheme();
}
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI sg,
- Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+ AnnotatedCollectionI sg)
{
return new TCoffeeColourScheme(sg);
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
-
-import java.util.Map;
public class TaylorColourScheme extends ResidueColourScheme
{
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new TaylorColourScheme();
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
import java.awt.Color;
-import java.util.Map;
/**
* DOCUMENT ME!
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new TurnColourScheme();
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
import jalview.util.ColorUtils;
import jalview.util.StringUtils;
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI sg,
- Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+ AnnotatedCollectionI sg)
{
return new UserColourScheme(this);
}
import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
-import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceI;
-
-import java.util.Map;
/**
* DOCUMENT ME!
*/
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI coll,
- Map<SequenceI, SequenceCollectionI> hrs)
+ AnnotatedCollectionI coll)
{
return new ZappoColourScheme();
}
{
AnnotationColourGradient testee = new AnnotationColourGradient(ann,
minColour, maxColour, AnnotationColourGradient.ABOVE_THRESHOLD);
- testee = (AnnotationColourGradient) testee.getInstance(null, al, null);
+ testee = (AnnotationColourGradient) testee.getInstance(null, al);
for (int col = 0; col < WIDTH; col++)
{
{
AnnotationColourGradient testee = new AnnotationColourGradient(ann,
minColour, maxColour, AnnotationColourGradient.BELOW_THRESHOLD);
- testee = (AnnotationColourGradient) testee.getInstance(null, al, null);
+ testee = (AnnotationColourGradient) testee.getInstance(null, al);
for (int col = 0; col < WIDTH; col++)
{
{
AnnotationColourGradient testee = new AnnotationColourGradient(ann,
minColour, maxColour, AnnotationColourGradient.NO_THRESHOLD);
- testee = (AnnotationColourGradient) testee.getInstance(null, al, null);
+ testee = (AnnotationColourGradient) testee.getInstance(null, al);
for (int col = 0; col < WIDTH; col++)
{
{
AnnotationColourGradient testee = new AnnotationColourGradient(ann,
minColour, maxColour, AnnotationColourGradient.NO_THRESHOLD);
- testee = (AnnotationColourGradient) testee.getInstance(null, al, null);
+ testee = (AnnotationColourGradient) testee.getInstance(null, al);
/*
* flag corresponding to 'use original colours' checkbox
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI sg,
- Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+ AnnotatedCollectionI sg)
{
final ColourSchemeI cs1 = ColourSchemes.getInstance()
.getColourScheme(JalviewColourScheme.Taylor.toString(),
@Override
public ColourSchemeI getInstance(AlignViewportI view,
- AnnotatedCollectionI sg,
- Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+ AnnotatedCollectionI sg)
{
- return new MyClustal(sg, hiddenRepSequences);
+ return new MyClustal(sg, view.getHiddenRepSequences());
}
@Override