v2
[jalview.git] / src / jalview / schemes / ColourSchemeProperty.java
index 1e2db76..fc6d536 100755 (executable)
@@ -86,6 +86,7 @@ public class ColourSchemeProperty
 
   public static final int TCOFFEE = 15;
 
+  public static final int RNAINTERACTION = 16;
 
   /**
    * index of first colourscheme (includes 'None')
@@ -167,6 +168,11 @@ public class ColourSchemeProperty
     {
       ret = PURINEPYRIMIDINE;
     }
+    
+    else if (name.equalsIgnoreCase("RNA Interaction type"))
+    {
+      ret = RNAINTERACTION;
+    }
     // else if (name.equalsIgnoreCase("Covariation"))
     // {
     // ret = COVARIATION;
@@ -240,6 +246,12 @@ public class ColourSchemeProperty
     {
       index = TCOFFEE;
     }
+    else if (cs instanceof RNAInteractionColourScheme)
+    {
+      index = RNAINTERACTION;
+    }
+    
+    
     /*
      * else if (cs instanceof CovariationColourScheme) { index = COVARIATION; }
      */
@@ -334,6 +346,11 @@ public class ColourSchemeProperty
       ret = "T-Coffee Scores";
 
       break;
+      
+    case RNAINTERACTION:
+        ret = "RNA Interaction type";
+
+        break;
     /*
      * case COVARIATION: ret = "Covariation";
      *
@@ -480,6 +497,12 @@ public class ColourSchemeProperty
 
     case TCOFFEE:
       cs = new TCoffeeColourScheme(coll);
+      break;
+      
+    case RNAINTERACTION:
+        cs = new RNAInteractionColourScheme();
+        break;
+      
     // case COVARIATION:
     // cs = new CovariationColourScheme(annotation);