From: amwaterhouse Date: Mon, 13 Jun 2005 11:28:11 +0000 (+0000) Subject: Get colourScheme with seqs and width X-Git-Tag: Release_2_0~66 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6bd69f196a5bdb8bdbc329166485d5da60b27389;p=jalview.git Get colourScheme with seqs and width --- 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;