X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FColourSchemeProperty.java;h=e680e04740333735522c076519cf7168705d0fd4;hb=a8f483d04205bb8273ee311c12968b7e86d205fa;hp=c655fe2d63a7dfaf28369a44b824822b60073d42;hpb=133ad29f7714577fdf75762a9d023f4c1af60fd0;p=jalview.git diff --git a/src/jalview/schemes/ColourSchemeProperty.java b/src/jalview/schemes/ColourSchemeProperty.java index c655fe2..e680e04 100755 --- a/src/jalview/schemes/ColourSchemeProperty.java +++ b/src/jalview/schemes/ColourSchemeProperty.java @@ -1,5 +1,5 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1) + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) * Copyright (C) 2014 The Jalview Authors * * This file is part of Jalview. @@ -86,13 +86,17 @@ public class ColourSchemeProperty public static final int COVARIATION = 14; public static final int TCOFFEE = 15; + + public static final int RNAHELIX = 16; + + public static final int RNAINTERACTION = 17; /** * index of first colourscheme (includes 'None') */ public static final int FIRST_COLOUR = NONE; - public static final int LAST_COLOUR = NUCLEOTIDE; + public static final int LAST_COLOUR = RNAINTERACTION; /** * DOCUMENT ME! @@ -167,6 +171,14 @@ public class ColourSchemeProperty { ret = PURINEPYRIMIDINE; } + else if (name.equalsIgnoreCase("RNA Interaction type")) + { + ret = RNAINTERACTION; + } + else if (name.equalsIgnoreCase("RNA Helices")) + { + ret = RNAHELIX; + } // else if (name.equalsIgnoreCase("Covariation")) // { // ret = COVARIATION; @@ -240,6 +252,10 @@ public class ColourSchemeProperty { index = TCOFFEE; } + else if (cs instanceof RNAHelicesColour) + { + index = RNAHELIX; + } /* * else if (cs instanceof CovariationColourScheme) { index = COVARIATION; } */ @@ -334,6 +350,15 @@ public class ColourSchemeProperty ret = "T-Coffee Scores"; break; + + case RNAINTERACTION: + ret = "RNA Interaction type"; + + break; + case RNAHELIX: + ret = "RNA Helices"; + + break; /* * case COVARIATION: ret = "Covariation"; * @@ -486,11 +511,14 @@ public class ColourSchemeProperty case TCOFFEE: cs = new TCoffeeColourScheme(coll); break; + + case RNAHELIX: + cs = new RNAHelicesColour(coll); + break; // case COVARIATION: // cs = new CovariationColourScheme(annotation); - - // break; + // break; case USER_DEFINED: Color[] col = new Color[24];