import jalview.structure.StructureCommandsBase;
import jalview.structure.StructureMapping;
import jalview.structure.StructureSelectionManager;
-import jalview.structure.StructureCommandsI.AtomSpecType;
import jalview.util.Comparison;
import jalview.util.Platform;
.append("|");
sb.append(getAtomSpec(refAtoms, AtomSpecType.RESIDUE_ONLY))
.append(getCommandSeparator()).append("cartoons");
+ return Arrays.asList(new StructureCommand(sb.toString()));
+ }
+ @Override
+ public List<StructureCommandI> centerViewOn(List<AtomSpecModel> residues)
+ {
+ StringBuilder sb = new StringBuilder(64);
+ sb.append("center ");
+ for (AtomSpecModel ranges : residues)
+ {
+ if (sb.length() > 9)
+ {
+ sb.append(" or ");
+ }
+ sb.append(getAtomSpec(ranges, AtomSpecType.RESIDUE_ONLY));
+ }
return Arrays.asList(new StructureCommand(sb.toString()));
}