*/
package jalview.structures.models;
+import jalview.api.AlignViewportI;
import jalview.api.AlignmentViewPanel;
import jalview.api.SequenceRendererI;
import jalview.api.StructureSelectionManagerProvider;
import java.util.BitSet;
import java.util.List;
-import org.springframework.web.filter.ShallowEtagHeaderFilter;
-
/**
*
* A base class to hold common function for protein structure model binding.
public void colourBySequence(AlignmentViewPanel alignmentv, SequenceRendererI sr, boolean showFeats)
{
showFeatures = showFeats;
+ colourBy = ColourBy.Sequence;
+
if (!isLoadingFinished())
{
return;
{
return;
}
- if (!showFeatures && (colourScheme == null || colourScheme.isSimple()))
+ if (!isColourBySequence() && !showFeatures &&
+ (colourScheme == null || colourScheme.isSimple()))
{
return;
}
if (!isLoadingFromArchive())
{
+ AlignViewportI av = ap.getAlignViewport();
if (isColourBySequence())
{
- colourBySequence(ap, new SequenceRenderer(ap.getAlignViewport()),
+ showFeatures = av.isShowSequenceFeatures();
+ colourBySequence(ap, new SequenceRenderer(av),
showFeatures);
}
else
{
- colourBySequence(ap, new SequenceRenderer(ap.getAlignViewport(),
+ colourBySequence(ap, new SequenceRenderer(av,
colourScheme), showFeatures);
}
}