*/
public class PymolCommands extends StructureCommandsBase
{
+ private static final StructureCommand CLOSE_PYMOL = new StructureCommand("quit");
+
private static final StructureCommand COLOUR_BY_CHAIN = new StructureCommand("spectrum", "chain");
private static final List<StructureCommandI> COLOR_BY_CHARGE = new ArrayList<>();
@Override
public StructureCommandI focusView()
{
- // TODO what?
- return null;
+ // https://pymol.org/dokuwiki/doku.php?id=command:zoom
+ // not currently documented on https://pymolwiki.org/index.php/Category:Commands
+ return new StructureCommand("zoom");
}
@Override
return new StructureCommand("load", filepath, "", "0", "pse");
}
+ @Override
+ public StructureCommandI closeViewer()
+ {
+ // https://pymolwiki.org/index.php/Quit
+ return CLOSE_PYMOL;
+ }
+
}