package jalview.api;
import jalview.datamodel.SequenceFeature;
-import jalview.util.matcher.KeyedMatcherSetI;
import java.awt.Color;
Color getMaxColour();
/**
+ * Returns the 'no value' colour (used when a feature lacks score, or the
+ * attribute, being used for colouring)
+ *
+ * @return
+ */
+ Color getNoColour();
+
+ /**
* Answers true if the feature has a single colour, i.e. if isColourByLabel()
* and isGraduatedColour() both answer false
*
Color getColor(SequenceFeature feature);
/**
- * Update the min-max range for a graduated colour scheme
+ * Update the min-max range for a graduated colour scheme. Note that the
+ * colour scheme may be configured to colour by feature score, or a
+ * (numeric-valued) attribute - the caller should ensure that the correct
+ * range is being set.
*
* @param min
* @param max
String toJalviewFormat(String featureType);
/**
- * Sets the attribute filter conditions, or removes them if the argument is
- * null
+ * Answers true if colour is by attribute text or numerical value
*
- * @param filter
+ * @return
+ */
+ boolean isColourByAttribute();
+
+ /**
+ * Answers the name of the attribute used for colouring if any, or null
+ *
+ * @return
*/
- public void setAttributeFilters(KeyedMatcherSetI filter);
+ String getAttributeName();
/**
- * Answers the attribute value filters for the colour scheme, or null if no
- * filters are set
+ * Sets the name of the attribute used for colouring if any, or null to remove
+ * this property
*
* @return
*/
- public KeyedMatcherSetI getAttributeFilters();
+ void setAttributeName(String name);
}