Merge branch 'develop' into menard
[jalview.git] / src / jalview / schemes / ColourSchemeProperty.java
index 47dbde2..4132f32 100755 (executable)
@@ -86,6 +86,8 @@ public class ColourSchemeProperty
 
   public static final int TCOFFEE = 15;
 
+  public static final int RNAINTERACTION = 16;
+
   /**
    * index of first colourscheme (includes 'None')
    */
@@ -166,6 +168,11 @@ public class ColourSchemeProperty
     {
       ret = PURINEPYRIMIDINE;
     }
+    
+    else if (name.equalsIgnoreCase("RNA Interaction type"))
+    {
+      ret = RNAINTERACTION;
+    }
     // else if (name.equalsIgnoreCase("Covariation"))
     // {
     // ret = COVARIATION;
@@ -239,6 +246,12 @@ public class ColourSchemeProperty
     {
       index = TCOFFEE;
     }
+    else if (cs instanceof RNAInteractionColourScheme)
+    {
+      index = RNAINTERACTION;
+    }
+    
+    
     /*
      * else if (cs instanceof CovariationColourScheme) { index = COVARIATION; }
      */
@@ -333,6 +346,11 @@ public class ColourSchemeProperty
       ret = "T-Coffee Scores";
 
       break;
+      
+    case RNAINTERACTION:
+        ret = "RNA Interaction type";
+
+        break;
     /*
      * case COVARIATION: ret = "Covariation";
      * 
@@ -484,8 +502,14 @@ public class ColourSchemeProperty
 
     case TCOFFEE:
       cs = new TCoffeeColourScheme(coll);
-      // case COVARIATION:
-      // cs = new CovariationColourScheme(annotation);
+      break;
+      
+    case RNAINTERACTION:
+        cs = new RNAInteractionColourScheme();
+        break;
+      
+    // case COVARIATION:
+    // cs = new CovariationColourScheme(annotation);
 
       // break;