return new StructureCommand("open " + file);
}
- /**
- * Overrides the default method to concatenate colour commands into one
- */
- @Override
- public List<StructureCommandI> colourBySequence(
- Map<Object, AtomSpecModel> colourMap)
- {
- List<StructureCommandI> 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)
{