+
+ @Override
+ public void showStructures(AlignViewportI av, boolean refocus)
+ {
+ StringBuilder cmd = new StringBuilder(128);
+
+ if (isShowAlignmentOnly())
+ {
+ cmd.append("hide *;");
+
+ AtomSpecModel model = getShownResidues(av);
+ String atomSpec = JmolCommands.getAtomSpec(model);
+
+ cmd.append("display ").append(atomSpec);
+ }
+ else
+ {
+ cmd.append("display *");
+ }
+ cmd.append("; cartoon");
+ if (refocus)
+ {
+ cmd.append("; zoom 100");
+ }
+ evalStateCommand(cmd.toString());
+ }
+
+ /**
+ * Answers a Jmol syntax style structure model specification. Model number 0, 1,
+ * 2... is formatted as "1.1", "2.1", "3.1" etc.
+ */
+ @Override
+ public String getModelSpec(int model)
+ {
+ return String.valueOf(model + 1) + ".1";
+ }