From 6bd69f196a5bdb8bdbc329166485d5da60b27389 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 13 Jun 2005 11:28:11 +0000 Subject: [PATCH] Get colourScheme with seqs and width --- src/jalview/schemes/ColourSchemeProperty.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/jalview/schemes/ColourSchemeProperty.java b/src/jalview/schemes/ColourSchemeProperty.java index 6e7a711..0d5ecc7 100755 --- a/src/jalview/schemes/ColourSchemeProperty.java +++ b/src/jalview/schemes/ColourSchemeProperty.java @@ -164,18 +164,23 @@ public class ColourSchemeProperty { return ret; } - public static ColourSchemeI getColour(jalview.datamodel.AlignmentI al, + public static ColourSchemeI getColour(jalview.datamodel.AlignmentI al, String name) + { + return getColour(al.getSequences(), al.getWidth(), name); + } + + public static ColourSchemeI getColour(java.util.Vector seqs, int width, String name) { - return getColour(al, getColourIndexFromName(name)); + return getColour(seqs, width, getColourIndexFromName(name)); } - public static ColourSchemeI getColour(jalview.datamodel.AlignmentI al, + public static ColourSchemeI getColour(java.util.Vector seqs, int width, int index) { ColourSchemeI cs = null; switch (index) { case CLUSTAL: - cs = new ClustalxColourScheme(al.getSequences(), al.getWidth()); + cs = new ClustalxColourScheme(seqs, width); break; -- 1.7.10.2