import jalview.io.DataSourceType;
import jalview.io.FeaturesFile;
import jalview.util.MessageManager;
-import jalview.viewmodel.seqfeatures.FeatureRendererModel;
import java.awt.Color;
import java.util.BitSet;
private AlignViewControllerGuiI avcg;
public AlignViewController(AlignViewControllerGuiI alignFrame,
- AlignViewportI viewport, AlignmentViewPanel alignPanel)
+ AlignViewportI vp, AlignmentViewPanel ap)
{
this.avcg = alignFrame;
- this.viewport = viewport;
- this.alignPanel = alignPanel;
+ this.viewport = vp;
+ this.alignPanel = ap;
}
@Override
- public void setViewportAndAlignmentPanel(AlignViewportI viewport,
- AlignmentViewPanel alignPanel)
+ public void setViewportAndAlignmentPanel(AlignViewportI vp,
+ AlignmentViewPanel ap)
{
- this.alignPanel = alignPanel;
- this.viewport = viewport;
-
+ this.alignPanel = ap;
+ this.viewport = vp;
}
@Override
int findColumnsWithFeature(String featureType,
SequenceCollectionI sqcol, BitSet bs)
{
- FeatureRendererModel fr = alignPanel == null ? null
- : (FeatureRendererModel) alignPanel.getFeatureRenderer();
- List<String> visibleFeatures = fr.getDisplayedFeatureTypes();
+ FeatureRenderer fr = alignPanel == null ? null : alignPanel
+ .getFeatureRenderer();
final int startColumn = sqcol.getStartRes() + 1; // converted to base 1
final int endColumn = sqcol.getEndRes() + 1;
boolean found = false;
for (SequenceFeature sf : sfs)
{
- {
- if (!visibleFeatures.contains(sf.getType())
- || fr.getColour(sf) == null) // could pull up getColour to FeatureRenderer interface
- {
- continue;
- }
+ if (fr.getColour(sf) == null)
+ {
+ continue;
}
if (!found)
{