*/
package jalview.api;
+import jalview.datamodel.features.FeatureMatcherSetI;
+
import java.util.Comparator;
/**
FeatureColourI getFeatureColour(String type);
/**
+ * Returns any filters defined for the feature type, or null if not known
+ *
+ * @param type
+ * @return
+ */
+
+ FeatureMatcherSetI getFeatureFilters(String type);
+
+ /**
* Returns the transparency value, from 0 (fully transparent) to 1 (fully
* opaque)
*
import jalview.datamodel.SearchResultsI;
import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
+import jalview.datamodel.features.FeatureMatcherSetI;
import jalview.renderer.ResidueShader;
import jalview.schemes.ColourSchemeI;
import jalview.schemes.ColourSchemeProperty;
{
FeatureColourI preferredColour = featureSettings
.getFeatureColour(type);
+ FeatureMatcherSetI preferredFilters = featureSettings
+ .getFeatureFilters(type);
+
FeatureColourI origColour = fr.getFeatureStyle(type);
if (!mergeOnly || (!origRenderOrder.contains(type)
|| origColour == null
{
fr.setColour(type, preferredColour);
}
+ if (preferredFilters != null
+ && (!mergeOnly || fr.getFeatureFilter(type) != null))
+ {
+ fr.setFeatureFilter(type, preferredFilters);
+ }
if (featureSettings.isFeatureDisplayed(type))
{
displayed.setVisible(type);
import jalview.api.FeatureColourI;
import jalview.api.FeatureSettingsModelI;
+import jalview.datamodel.features.FeatureMatcherSetI;
/**
* An adapter class that may be extended to instantiate feature colour schemes
return false;
}
+ @Override
+ public FeatureMatcherSetI getFeatureFilters(String type)
+ {
+ return null;
+ }
+
}