JAL-1705 first pass at applying preset feature colouring for EnsemblGene
[jalview.git] / src / jalview / api / FeatureSettingsI.java
index 55f52d2..ddb5edc 100644 (file)
@@ -1,5 +1,7 @@
 package jalview.api;
 
+import java.util.Comparator;
+
 /**
  * An interface that describes the settings configurable in the Feature Settings
  * dialog.
@@ -7,7 +9,7 @@ package jalview.api;
  * @author gmcarstairs
  *
  */
-public interface FeatureSettingsI
+public interface FeatureSettingsI extends Comparator<String>
 {
   // note Java 8 will allow default implementations of these methods in the
   // interface, simplifying instantiating classes
@@ -53,7 +55,8 @@ public interface FeatureSettingsI
    * @param feature2
    * @return
    */
-  int compareTo(String feature1, String feature2);
+  @Override
+  int compare(String feature1, String feature2);
 
   /**
    * Answers true if features should be initially sorted so that features with a