Get colourScheme with seqs and width
authoramwaterhouse <Andrew Waterhouse>
Mon, 13 Jun 2005 11:28:11 +0000 (11:28 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 13 Jun 2005 11:28:11 +0000 (11:28 +0000)
src/jalview/schemes/ColourSchemeProperty.java

index 6e7a711..0d5ecc7 100755 (executable)
@@ -164,18 +164,23 @@ public class ColourSchemeProperty {
         return ret;\r
     }\r
 \r
-    public static ColourSchemeI getColour(jalview.datamodel.AlignmentI al,\r
+    public static ColourSchemeI getColour(jalview.datamodel.AlignmentI al, String name)\r
+    {\r
+     return getColour(al.getSequences(), al.getWidth(), name);\r
+    }\r
+\r
+    public static ColourSchemeI getColour(java.util.Vector seqs, int width,\r
         String name) {\r
-        return getColour(al, getColourIndexFromName(name));\r
+        return getColour(seqs, width, getColourIndexFromName(name));\r
     }\r
 \r
-    public static ColourSchemeI getColour(jalview.datamodel.AlignmentI al,\r
+    public static ColourSchemeI getColour(java.util.Vector seqs, int width,\r
         int index) {\r
         ColourSchemeI cs = null;\r
 \r
         switch (index) {\r
         case CLUSTAL:\r
-            cs = new ClustalxColourScheme(al.getSequences(), al.getWidth());\r
+            cs = new ClustalxColourScheme(seqs, width);\r
 \r
             break;\r
 \r