JAL-2808 add attribute filter(s) to FeatureColour
[jalview.git] / src / jalview / api / FeatureColourI.java
index 0ded079..9644831 100644 (file)
@@ -21,6 +21,7 @@
 package jalview.api;
 
 import jalview.datamodel.SequenceFeature;
+import jalview.util.matcher.KeyedMatcherI;
 
 import java.awt.Color;
 
@@ -169,4 +170,20 @@ public interface FeatureColourI
    * @return
    */
   String toJalviewFormat(String featureType);
+
+  /**
+   * Sets the attribute filter conditions, or removes them if the argument is
+   * null
+   * 
+   * @param filter
+   */
+  public void setAttributeFilters(KeyedMatcherI filter);
+
+  /**
+   * Answers the attribute value filters for the colour scheme, or null if no
+   * filters are set
+   * 
+   * @return
+   */
+  public KeyedMatcherI getAttributeFilters();
 }