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;
* @param bs
* @return
*/
- static int findColumnsWithFeature(String featureType,
+ int findColumnsWithFeature(String featureType,
SequenceCollectionI sqcol, BitSet bs)
{
+ FeatureRendererModel fr = (FeatureRendererModel) alignPanel
+ .getFeatureRenderer();
+ List<String> visibleFeatures = fr.getDisplayedFeatureTypes();
+
final int startColumn = sqcol.getStartRes() + 1; // converted to base 1
final int endColumn = sqcol.getEndRes() + 1;
List<SequenceI> seqs = sqcol.getSequences();
for (SequenceFeature sf : sfs)
{
+ {
+ if (!visibleFeatures.contains(sf.getType())
+ || fr.getColour(sf) == null) // could pull up getColour to FeatureRenderer interface
+ {
+ continue;
+ }
+ }
int sfStartCol = sq.findIndex(sf.getBegin());
int sfEndCol = sq.findIndex(sf.getEnd());