X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fext%2Frbvi%2Fchimera%2FChimeraCommands.java;h=bfad8fb7e1dee597505a432f184cceff622d6646;hb=0b6e9403e96ee9f0d41211b2f90130ff850c4e98;hp=43cdeb16bcef70c0aacaf27ae170ad5c7528a4e2;hpb=d87b55e45cc1e6a5b7df3865ded1b87a0e3dc7ff;p=jalview.git diff --git a/src/jalview/ext/rbvi/chimera/ChimeraCommands.java b/src/jalview/ext/rbvi/chimera/ChimeraCommands.java index 43cdeb1..bfad8fb 100644 --- a/src/jalview/ext/rbvi/chimera/ChimeraCommands.java +++ b/src/jalview/ext/rbvi/chimera/ChimeraCommands.java @@ -20,6 +20,8 @@ */ package jalview.ext.rbvi.chimera; +import java.util.Locale; + import java.awt.Color; import java.util.ArrayList; import java.util.Arrays; @@ -181,7 +183,7 @@ public class ChimeraCommands extends StructureCommandsBase * Chimera treats an attribute name ending in 'color' as colour-valued; * Jalview doesn't, so prevent this by appending an underscore */ - if (attName.toUpperCase().endsWith("COLOR")) + if (attName.toUpperCase(Locale.ROOT).endsWith("COLOR")) { attName += "_"; } @@ -257,7 +259,7 @@ public class ChimeraCommands extends StructureCommandsBase @Override public List superposeStructures(AtomSpecModel ref, - AtomSpecModel spec) + AtomSpecModel spec, boolean isNucleotide) { /* * Form Chimera match command to match spec to ref @@ -388,33 +390,6 @@ public class ChimeraCommands extends StructureCommandsBase return new StructureCommand("open " + file); } - /** - * Overrides the default method to concatenate colour commands into one - */ - @Override - public List colourBySequence( - Map colourMap) - { - List commands = new ArrayList<>(); - StringBuilder sb = new StringBuilder(colourMap.size() * 20); - boolean first = true; - for (Object key : colourMap.keySet()) - { - Color colour = (Color) key; - final AtomSpecModel colourData = colourMap.get(colour); - StructureCommandI command = getColourCommand(colourData, colour); - if (!first) - { - sb.append(getCommandSeparator()); - } - first = false; - sb.append(command.getCommand()); - } - - commands.add(new StructureCommand(sb.toString())); - return commands; - } - @Override public StructureCommandI openSession(String filepath) {