JAL-3049 JAL-2069 colour icon tooltip including by attribute
[jalview.git] / src / jalview / api / FeatureColourI.java
index 3eebf6c..0e45675 100644 (file)
@@ -72,7 +72,8 @@ public interface FeatureColourI
   boolean isSimpleColour();
 
   /**
-   * Answers true if the feature is coloured by label (description)
+   * Answers true if the feature is coloured by label (description) or by text
+   * value of an attribute
    * 
    * @return
    */
@@ -101,18 +102,6 @@ public interface FeatureColourI
   void setAboveThreshold(boolean b);
 
   /**
-   * Answers true if the threshold is the minimum value (when
-   * isAboveThreshold()) or maximum value (when isBelowThreshold()) of the
-   * colour range; only applicable when isGraduatedColour and either
-   * isAboveThreshold() or isBelowThreshold() answers true
-   * 
-   * @return
-   */
-  boolean isThresholdMinMax();
-
-  void setThresholdMinMax(boolean b);
-
-  /**
    * Returns the threshold value (if any), else zero
    * 
    * @return
@@ -189,17 +178,26 @@ public interface FeatureColourI
   boolean isColourByAttribute();
 
   /**
-   * Answers the name of the attribute used for colouring if any, or null
+   * Answers the name of the attribute (and optional sub-attribute...) used for
+   * colouring if any, or null
+   * 
+   * @return
+   */
+  String[] getAttributeName();
+
+  /**
+   * Sets the name of the attribute (and optional sub-attribute...) used for
+   * colouring if any, or null to remove this property
    * 
    * @return
    */
-  String getAttributeName();
+  void setAttributeName(String... name);
 
   /**
-   * Sets the name of the attribute used for colouring if any, or null to remove
-   * this property
+   * Answers a human-readable text description of the colour, suitable for
+   * display as a tooltip, possibly internationalised for the user's locale.
    * 
    * @return
    */
-  void setAttributeName(String name);
+  String getDescription();
 }